[Gdal-dev] Override geom column name in ogr PostgreSQL driver
Frank Warmerdam
warmerdam at pobox.com
Wed Mar 1 15:33:33 EST 2006
Ari Jolma wrote:
> rob at dataflowdesign.com kirjoitti:
>> In OGR, is there a way to override the name of the wkb_geometry column
>> in the PostgreSQL driver? Bug 769 addresses a similar issue for
>> the oracle driver. But there doesn't appear to be a way in pg from
>> looking at the code.
>> If there is a way, please let me know and I will use it. If not, I
>> will gladly submit a simple patch that I wrote which accepts the
>> following argument:
>>
>> -lco GEOM_FNAME=the_geom
>>
>
> I thought there was no need to specify the name, i.e., OGR looks at the
> schema and picks the column with geometry type. Or am I missing
> something? I have tables which have differing names for the geometry
> column and everything works.
Ari,
The GEOMETRY_NAME thing is for creating new tables.
You are correct that the geometry column should be automatically
recognised in existing tables.
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 OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list