[gdal-dev] OGR2OGR - Define output naming from concatenated queries from a DB

D eloquence2 at gmail.com
Thu Aug 7 02:53:47 EDT 2008


Hi,

I have a question about the usage of OGR2OGR in defining an ESRI Shapefile
output name. I am exporting Spatial data from Oracle Spatial (11g) from a
single table to an ESRI Shapefile and would like to get the following naming
syntax for my Shapefile:


[select distinct FIELD1 from SHEMA.TABLE][select distinct FIELD2 from
SHEMA.TABLE][fixed value -> 01]

.. the output would look like

50000002806200701.shp
50000002806200701.shx
50000002806200701.dbf

The naming parts/chunks that are concatenated here are actually queries in
the source database (Oracle).

Any examples (sample scripts, procedures) or hints on how to implement this,
would be very helpful.

Thanks!

Best regards,
Dejan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080807/4e0c0f4f/attachment.html


More information about the gdal-dev mailing list