[postgis-tickets] [PostGIS] #2248: ST_AsGDALRaster Missing Spatial Reference
PostGIS
trac at osgeo.org
Tue Mar 26 04:27:33 PDT 2013
#2248: ST_AsGDALRaster Missing Spatial Reference
-----------------------+----------------------------------------------------
Reporter: digimap2k | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone:
Component: postgis | Version: 2.0.x
Keywords: |
-----------------------+----------------------------------------------------
I have a table full of rasters imported through the raster2pgsql script.
They all index fine, they report metadatam and SRID correctly, they work
as expected with intersect statements, they transform into other SRS
projections just fine. I can export them using ST_AsPNG and they look
perfect.
The problem is when I export to GTiff using....
ST_AsGDALRaster(rast, 'GTiff')
I write the resulting file out to disk and run gdalinfo on it. The co-
ordinates are all fine BUT the projection is written out as an unnamed
LOCAL_CS rather than the expected PROJ_CS corresponding to the SRID of the
raster. Is this expected behaviour?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2248>
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-tickets
mailing list