[postgis-devel] [PostGIS] #1902: [raster] GDAL Surfer export creates files with minY and maxY swapped in header.
PostGIS
trac at osgeo.org
Thu Jul 5 14:10:22 PDT 2012
#1902: [raster] GDAL Surfer export creates files with minY and maxY swapped in
header.
------------------------------+---------------------------------------------
Reporter: febi | Owner: pracine
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.2
Component: raster | Version: 2.0.x
Keywords: raster GSBG GSAG |
------------------------------+---------------------------------------------
Comment(by dustymugs):
PostGIS Raster (and most other raster tools I've used) follows the
definitions of the World File...
[http://en.wikipedia.org/wiki/World_file]
So, top to bottom is expected to be negative (negative Y scale) and left
to right is expected to be positive (positive X scale). I'm guessing that
your raster's Y scale is positive and the upper-left corner of the raster
is really the raster's lower-left corner. So, you need to swap the Y
coordinates of the lower-left and upper-left and make the Y scale
negative. I think that's right...
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1902#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list