[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 13:48:00 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):

 The C code underlying ST_AsGDALRaster passes along your desired format and
 the PostGIS raster converted to a GDAL MEM dataset to GDALCreateCopy().
 GDALCreateCopy calls the appropriate format's CreateCopy function to do
 the actual conversion.

 Is the scale along the Y-axis positive or negative?  The values for minY
 and maxY may be flipped because the scale along the Y-axis is positive.
 Calling ST_ScaleY() on the raster will tell you the answer.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1902#comment:3>
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