[GRASS-dev] [GRASS GIS] #322: Exporting centroids

GRASS GIS trac at osgeo.org
Wed Oct 8 11:13:37 EDT 2008


#322: Exporting centroids
------------------------------+---------------------------------------------
 Reporter:  gridcell          |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect            |      Status:  new                      
 Priority:  minor             |   Milestone:  6.4.0                    
Component:  default           |     Version:  6.3.0                    
 Keywords:  v.out.ogr export  |    Platform:  Linux                    
      Cpu:  x86-32            |  
------------------------------+---------------------------------------------
 Unable to export centroids to PostGIS (or Shapefile) using v.out.ogr...

 v.out.ogr input=blk at PERMANENT type=point,centroid 'dsn=PG: host=localhost
 user=postgres dbname=test' olayer=blk layer=1 format=PostgreSQL

 I get the following in my output...

 6 Boundary(ies) found, but not requested to be exported. Verify 'type'
 parameter.

 Exporting 9 points/lines...

 ERROR 1: INSERT command for new feature failed.
 ERROR:  geometry requires more points

 Command: INSERT INTO "blk" (wkb_geometry , "cat", "comments") VALUES
 (GeomFromEWKT('SRID=32768;LINESTRING (1361422.480504325358197
 586604.790284495218657)'::TEXT) , 1, 'Polygon 1')
 ERROR 1: INSERT command for new feature failed.
 ERROR:  geometry requires more points

 Command: INSERT INTO "blk" (wkb_geometry , "cat", "comments") VALUES
 (GeomFromEWKT('SRID=32768;LINESTRING (1361632.899105372838676
 586307.90450647752732)'::TEXT) , 2, 'Polygon 2')

 ERROR 1: INSERT command for new feature failed.
 ERROR:  geometry requires more points

 Command: INSERT INTO "blk" (wkb_geometry , "cat", "comments") VALUES
 (GeomFromEWKT('SRID=32768;LINESTRING (1361538.573653233936056
 586446.606141098076478)'::TEXT) , 1, 'Polygon 1')
 ERROR 1: INSERT command for new feature failed.
 ERROR:  geometry requires more points

 Command: INSERT INTO "blk" (wkb_geometry , "cat", "comments") VALUES
 (GeomFromEWKT('SRID=32768;LINESTRING (1361538.573653233936056
 586446.606141098076478)'::TEXT) , 2, 'Polygon 2')

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/322>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list