On 04/19/2011 08:17 PM, Marcello Benigno wrote:

Hi All,

I'm trying export a layer overwriting the table in PostGIS fortmat:

v.out.ogr -c input="bacia_usuario" type=area 'dsn=PG:host=localhost dbname=gis user=marcello password=mypass' olayer=bacia_1 layer=1 format=PostgreSQL

but the prompt show the message:

ERROR 1: Layer bacia_1 already exists, CreateLayer failed.
Use the layer creation option OVERWRITE=YES to replace it.
ERROR: Unable to create OGR layer

So I tried using this commands, with no results:

v.out.ogr -c input="bacia_usuario" type=area 'dsn=PG:host=localhost dbname=gis user=marcello password=mypass' olayer=bacia_1 layer=1 format=PostgreSQL --overwrite

v.out.ogr -c OVERWRITE=YES input="bacia_usuario" type=area 'dsn=PG:host=localhost dbname=gis user=marcello password=mypass' olayer=bacia_1 layer=1 format=PostgreSQL

What is the correct way to do this?

v.out.ogr .... lco="OVERWRITE=YES"
might do it


Thanks in advance,
--
Marcello Benigno B. de Barros Filho
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
http://profmarcello.blogspot.com


This mail was received via Mail-SeCure System.
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.




-- 
Micha Silver
Arava Development Co. +972-52-3665918
http://www.surfaces.co.il
 
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to