[gdal-dev] gdal_contour with OCI table names and append

Frank Warmerdam warmerdam at pobox.com
Wed Jan 23 13:20:28 EST 2008


Miller, Joseph [USA] wrote:
> Hey all,
> I am trying to use gdal_contour (version 1.5.0) to output my contours 
> directly into oracle spatial layers.  The command below creates a table 
> called "contour" in my instance:
> gdal_contour.exe -a GLC test.asc  -i 2 -f OCI "OCI:user/password at mydatabase"
>  
> The problem is that I am unable to specify an alternate table name or 
> pass in an overwrite or append flag.  I have tried using "-nln", "-lco 
> OVERWRITE=yes", and even specifying a dst_filename, but nothing seems to 
> work.
>  
> Has anyone had any success with this?  If so, can you send me an example 
> of the command syntax?

Joe,

Good point!  I have added a -nln switch to define the layer name on
the commandline.  Currently it is hardcoded to "contour".

If you are building from source, replace gdal/apps/gdal_contour.cpp with
http://svn.osgeo.org/gdal/trunk/gdal/apps/gdal_contour.cpp and rebuild/install.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list