2

I'm trying to compute zonal statistics but get an error saying that "negative dimensions are not allowed". I'm assuming its because my raster file extends into negative coordinates. Extent of the file is xmin: 0, xmax: 21600, ymin: -8700, ymax: 0. (The top left corner of the image is 0, 0). I want to move this up so that ymin: 0 and ymax: 8700. Alternatively, if there is another way to avoid this error that is welcome. enter image description here

  • 1
    What format is the raster? You could create a world file for most formats which would be recognized by most GIS software assuming you know the origin and cell size. webhelp.esri.com/arcims/9.3/General/topics/… – Michael Stimson Apr 26 '17 at 21:20
  • Does it have a defined coordinate reference system? If it's set to a geographic coordinate system, QGIS may be smart enough to see that the coordinates don't match. Right now, this raster is not georeferenced. – mkennedy Apr 27 '17 at 22:56
  • Resolved by just downloading original raster from data source which had normal coordinates. For some reason in the file I was provided coordinates corresponded to pixels in the raster. – Simon May 1 '17 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.