[GRASS5] v.out.ogr, OVERWRITE=YES

Dear developers,

after fiddeling around with v.out.ogr writing to a PostGIS-DB I
realised, that it is not possible to "update" an existing dataset in
PostGIS.
ogr2ogr has the -update-switch, which allows to update
datasets with the same name (giving aditionally -lco OVERWRITE=YES).

Would it be possible to add this switch also to v.out.ogr to update
existing datasets in PostGIS?

My workaround is exporting to shape and then using ogr2ogr as written
above, but a straitforward import in PG would be nice too :slight_smile:

Thanks for any comments in this.

Cheers
  Stephan Holl

btw, are the ogr-driver specific documentations for -lco-parameters in
ogr2ogr somewhere?

--
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

Stephan Holl wrote:

Dear developers,

after fiddeling around with v.out.ogr writing to a PostGIS-DB I
realised, that it is not possible to "update" an existing dataset in
PostGIS.
ogr2ogr has the -update-switch, which allows to update
datasets with the same name (giving aditionally -lco OVERWRITE=YES).

Would it be possible to add this switch also to v.out.ogr to update
existing datasets in PostGIS?

Folks,

For effective use of OGR, you will need a way of passing user supplied
dataset and layer creation options (-dsco and -lco in ogr2ogr). Likewise
something similar to the ogr2ogr -update and -append flags would be useful.

My workaround is exporting to shape and then using ogr2ogr as written
above, but a straitforward import in PG would be nice too :slight_smile:

Thanks for any comments in this.

Cheers
  Stephan Holl

btw, are the ogr-driver specific documentations for -lco-parameters in
ogr2ogr somewhere?

Format driver specific parameters are only documented in the format web pages.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent

Hello Frank,

On Wed, 07 Apr 2004 12:53:28 -0400 Frank Warmerdam <warmerdam@pobox.com>
wrote:

Stephan Holl wrote:
> Dear developers,
>
> after fiddeling around with v.out.ogr writing to a PostGIS-DB I
> realised, that it is not possible to "update" an existing dataset in
> PostGIS.
> ogr2ogr has the -update-switch, which allows to update
> datasets with the same name (giving aditionally -lco OVERWRITE=YES).
>
> Would it be possible to add this switch also to v.out.ogr to update
> existing datasets in PostGIS?

For effective use of OGR, you will need a way of passing user supplied
dataset and layer creation options (-dsco and -lco in ogr2ogr).
Likewise something similar to the ogr2ogr -update and -append flags
would be useful.

I would like to see this kind of option in v.[in|out].ogr for GRASS...

Format driver specific parameters are only documented in the format
web pages.

Does anybody know if something usefull is on someones TODO-list or is
there no need for any developer to implement this feature?

Thanks anyway!

  Stephan

--
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

For effective use of OGR, you will need a way of passing user supplied
dataset and layer creation options (-dsco and -lco in ogr2ogr). Likewise something similar to the ogr2ogr -update and -append flags
would be useful.

I would like to see this kind of option in v.[in|out].ogr for GRASS...

Format driver specific parameters are only documented in the format
web pages.

Does anybody know if something usefull is on someones TODO-list or is
there no need for any developer to implement this feature?

Stephan,

I don't think the extensions to v.out.ogr are in anyones todo list. I
would suggest you file an enhancement request via the GRASS bug system.

Note that v.in.ogr does not need the extra options. They are really
export issues.

It also wasn't clear if you were asking about the format driver specific
parameter documentation. I have no intention to document them anywhere
other than the OGR format driver pages.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent