[GRASS-dev] [GRASS GIS] #795: v.out.ogr and centroids in GRASS
6.2.1 and PostGIS
GRASS GIS
trac at osgeo.org
Sat Oct 31 06:44:14 EDT 2009
#795: v.out.ogr and centroids in GRASS 6.2.1 and PostGIS
-----------------------------------------------------+----------------------
Reporter: hancar | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone:
Component: default | Version: unspecified
Keywords: v.out.ogr centroid grass postgis gentoo | Platform: Linux
Cpu: x86-32 |
-----------------------------------------------------+----------------------
= v.out.ogr and centroids in GRASS 6.2.1 and PostGIS =
As a gentoo user I used GRASS 6.2.1 and PostGIS 1.3.1
The problem is, this command:
{{{
v.out.ogr input=soils type=point,line,centroid dsn='PG:host=localhost
dbname=spearpg user=postgres' olayer=soils format=PostgreSQL
lco='OVERWRITE=YES'
}}}
produces many of these print-outs:
{{{
Command: INSERT INTO "soils" (wkb_geometry , "cat", "label") VALUES
(GeomFromEWKT('SRID=2;LINESTRING (599923.53439599997364
4925869.863033999688923)'::TEXT) , 11, 'CaE')
ERROR 1: INSERT command for new feature failed.
ERROR: geometry requires more points
}}}
whereas this:
{{{
v.out.ogr input=soils type=point,line,boundary dsn='PG:host=localhost
dbname=spearpg user=postgres' olayer=soils format=PostgreSQL
lco='OVERWRITE=YES'
}}}
is OK.
The problem appears when `type=cenroid` is among parameters. It produces
the print-outs and centroids are missing in the output table.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/795>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list