[GRASS-dev] Re: [GRASS GIS] #322: Exporting centroids
GRASS GIS
trac at osgeo.org
Sun Feb 21 07:20:21 EST 2010
#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
Resolution: | Keywords: v.out.ogr export
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by hamish):
Replying to [ticket:322 gridcell]:
> 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
}}}
centroids being send at type LINESTRING()? (which then wants at least 2
points to make a line)
what if you extract the centoids to their own map first?
do PostGIS/Shapefile/Simple Features have any concept of centroids?
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/322#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list