Timeline for Crop a raster layer given lat/lon ranges in QGIS 3.2?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30, 2018 at 13:03 | vote | accept | Andrew | ||
Oct 30, 2018 at 12:57 | comment | added | Andrew | Or sorry that is what I meant (not well versed in the terminology). I used the Warp (reproject) option in the Raster drop-down menu. | |
Oct 30, 2018 at 12:54 | comment | added | Erik | Simply assigning a different CRS to a layer usually does not do the trick, you often have to transform/reproject. Changing the projects CRS can prove more helpful sometims. | |
Oct 30, 2018 at 12:52 | comment | added | Andrew | Got it! It was georeferenced but had to change the CRS to WGS 84. Thanks! | |
Oct 30, 2018 at 12:39 | comment | added | Erik | Did you make sure your raster is a) georeferenced and b) in the same CRS as your coordinates (presumably WGS 84)? | |
Oct 30, 2018 at 12:33 | comment | added | Andrew | Thank you for your solution! So I tried going to Raster -> Extraction -> Clip Raster by Extent. I then choose my raster layer and specify (xmin, xmax, ymin, ymax) as -77.7139, -76.3450, 38.7669, 39.5488. Then I click "run in background". However, I get an error saying "ERROR 1: Error: Computed -srcwin -7413 147549 0 0 has negative width and/or height. Input file size is 7821, 7951." It seems that I am incorrectly choosing my ranges? But I am certain the raster layer is comprised of the ranges I gave. | |
Oct 30, 2018 at 12:20 | history | answered | Erik | CC BY-SA 4.0 |