[gdal-dev] Select a geometry attribute from multiple geometry input?

Frank Warmerdam warmerdam at pobox.com
Wed Jan 30 15:57:40 EST 2008


Stefan Keller wrote:
> Frank,
>  
> I can imagine that adding multiple geometries to OGR would touch some 
> core components.
>  
>  > The OGR data model assumes at most one geometry per feature.
>  
> I assumed that. My proposal rather would be, that users have at least a 
> choice which geometry the input driver takes. This would restrict the 
> solution to the input drivers (GML, Interlis 1, Interlis 2, others?). I 
> would simply add a (common) format specific option (e.g. -dsco 
> GeometryField=fieldname). What do you think?

Stefan,

-dsco (DataSource Creation Option) applies only when creating a datasource,
not when opening an existing datasource for read access.

In theory it could be supported via an environment/config variable, or
perhaps encoded into the datasource name in some funky way.

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