[postgis-devel] [PostGIS] #297: Implement ST_AsPolygon function for raster

PostGIS trac at osgeo.org
Tue Nov 10 15:07:49 PST 2009


#297: Implement ST_AsPolygon function for raster
------------------------+---------------------------------------------------
  Reporter:  mloskot    |       Owner:  pracine        
      Type:  defect     |      Status:  new            
  Priority:  medium     |   Milestone:  wktraster 0.1.6
 Component:  wktraster  |     Version:                 
Resolution:             |    Keywords:                 
------------------------+---------------------------------------------------
Comment (by mloskot):

 Pierre,

 Technically, we can use GDAL function, namely
 [http://www.gdal.org/gdal__alg_8h.html GDALPolygonize].

 However, we have to keep in mind what steps it would require on various
 levels of use and deployment. It is, roughly:
  * GDAL requirement, compile-time and run-time
  * Translation of WKT Raster WKB to
 [http://www.gdal.org/classGDALDataset.html GDALDataset] with bands (likely
 using GDAL MEM driver)
  * Call to GDALPolygonize to generate
 [http://www.gdal.org/ogr/classOGRLayer.html OGRLayer]
  * Translation of [http://www.gdal.org/ogr/classOGRGeometry.html
 OGRGeometry] objects attached to OGRLayer to PostGIS geometry

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/297#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list