[Gdal-dev] ogr2ogr more GML 3.1 compatible
Frank Warmerdam
warmerdam at pobox.com
Fri Jan 27 09:03:07 EST 2006
On 1/27/06, Jørn Vegard Røsnes <jorn at spacetec.no> wrote:
> Hi,
>
> I'm continuing my experiments with ogr2ogr and GML.
>
> GML 3.1 is not using gml:coordinates anymore (deprecated)
> Instead is this used in GML 3.1:
> <gml:pos>17.0 69.0</gml:pos>
> Unfortunately isn't this supported by ogr2ogr. Could this be implemented soon?
Jørn,
I wouldn't mind doing this. Please submit a bugreport against OGR
with an example of a GML 3.1 file that you think would work if the
gml:pos handling was added. I will attempt to add it in the fairly
near future.
> Another thing I notice is that only direct childs of the <feature> element is
> extracted to PostGIS. Is it possible to implement so that all childs and
> sub-elements are extracted?
This is possible, but I have avoided it in the past due to the
complexity. I am assuming that nested elements would be
treated as having unrolled column names?
so
<date>
<year>2005</year>
<month>December</month>
<day>25</day>
</date>
would appear in the result as attributes:
date_year: 2005
date_month: December
date_day: 25
Does that seem reasonable? Please file a separate bug
report with this suggestion but I don't have any plans to
do it in the near term.
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 | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list