Hi,
2016-02-04 0:00 GMT+01:00 Martin Landa <[email protected]>:
>> Have a look at the "Getting XML attributes as OGR fields" section of
>> http://gdal.org/drv_gml.html
>
> oh, thanks, I overlooked this part. Ma
after various experiments I still must miss something. The input data:
<ucastnici>
<uca id="0" />
<uca id="1" />
</ucastnici>
GFS:
<GMLFeatureClassList>
<!-- ucastnici -->
<GMLFeatureClass>
<Name>ucastnici</Name>
<ElementPath>ucastnici|uca</ElementPath>
<GeometryType>100</GeometryType>
<PropertyDefn>
<Name>id</Name>
<ElementPath>@id</ElementPath>
<Type>Integer</Type>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>
I tried:
<ElementPath>uca@id</ElementPath>
But the attribute is still null.
When I try
<ElementPath>ucastnici|uca</ElementPath>
...
<ElementPath>uca@id</ElementPath>
then I am still getting 0 features.
Thanks, Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev