<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
</head>
<body bidimailui-charset-is-forced="true"
bidimailui-detected-decoding-type="preferred-charset" text="#000000"
bgcolor="#ffffff">
<p style="margin-bottom: 0cm; margin-top: 0pt;">On 04/19/2011 08:17
PM, Marcello Benigno wrote:<br>
</p>
<blockquote
cite="mid:BANLkTi=y_71KgsNf6-kmY3Mb8-WHbRwoxg@mail.gmail.com"
type="cite">Hi All,<br>
<br>
I'm trying export a layer overwriting the table in PostGIS
fortmat:<span id="result_box" class="short_text" lang="en"><span
title="Clique para mostrar traduções alternativas" class="hps"></span></span><br>
<br>
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<br>
<br>
but the prompt show the message: <br>
<br>
ERROR 1: Layer bacia_1 already exists, CreateLayer failed.<br>
Use the layer creation option OVERWRITE=YES to replace it.<br>
ERROR: Unable to create OGR layer<br>
<br>
So I tried using this commands, with no results:<br>
<br>
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 <b>--overwrite</b><br>
<br clear="all">
v.out.ogr -c <b>OVERWRITE=YES</b> input="bacia_usuario" type=area
'dsn=PG:host=localhost dbname=gis user=marcello password=mypass'
olayer=bacia_1 layer=1 format=PostgreSQL<br>
<br>
What is the correct way to do this?<br>
</blockquote>
<br>
v.out.ogr .... lco="OVERWRITE=YES"<br>
might do it<br>
<br>
<blockquote
cite="mid:BANLkTi=y_71KgsNf6-kmY3Mb8-WHbRwoxg@mail.gmail.com"
type="cite"><br>
Thanks in advance,<br>
-- <br>
<b>Marcello Benigno B. de Barros Filho</b><br>
<font size="1">Prof. do Curso Superior de Tecnologia em
Geoprocessamento - IFPB<br>
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação -
UFPE<br>
<a moz-do-not-send="true"
href="http://profmarcello.blogspot.com" target="_blank">http://profmarcello.blogspot.com</a></font>
<div><a moz-do-not-send="true"
href="http://about.me/marcello.benigno" target="_blank"><font
size="1">http://about.me/marcello.benigno</font></a></div>
<br>
<br>
This mail was received via Mail-SeCure System.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
Arava Development Co. +972-52-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
</body>
</html>