[gdal-dev] support for Czech Exchange Format for Land Consolidation

Martin Landa landa.martin at gmail.com
Thu Feb 4 01:30:55 PST 2016


Hi,

2016-02-04 0:00 GMT+01:00 Martin Landa <landa.martin at gmail.com>:
>> 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 at id</ElementPath>

But the attribute is still null.

When I try

    <ElementPath>ucastnici|uca</ElementPath>
...
      <ElementPath>uca at 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


More information about the gdal-dev mailing list