[Gdal-dev] Override geom column name in ogr PostgreSQL driver

Ari Jolma ari.jolma at tkk.fi
Wed Mar 1 14:51:46 EST 2006


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

> Regards,
> Rob
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>   


-- 
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma





More information about the Gdal-dev mailing list