[gdal-dev] Re: Dump Shapefile into DB using ogr2ogr

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri Aug 19 11:59:23 EDT 2011


That should work just fine.

On Fri, Aug 19, 2011 at 9:23 PM, Hermann Peifer <peifer at gmx.eu> wrote:

> On 19/08/2011 15:05, Ingo Weinzierl wrote:
>
>> Thanks for the quick reply, but the "-select" option only solves one
>> of the two parts of my problem. I still need to append a further
>> column that does not exist in the shapefile and which should be
>> defined manually.
>>
>
> I am not sure if I fully understood the issue, but... what about:
>
> ... -sql "select cast(999 as integer(3)) as field from ..."
>
> (If you want an additional integer column with name `field', where all
> values are defined to be 999)
>
> Hermann
>
>
> ______________________________**_________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110819/2324d4c8/attachment.html


More information about the gdal-dev mailing list