Skip to content

srsDimension is not read from parent element #11

@xdml

Description

@xdml

These are not read correctly by pygml

<gml:LineString gml:id="ID72000020000031699_02" srsDimension="3" srsName="EPSG:5514">
  <gml:posList>-526462.08 -1159545.84 233.57 -526465.43 -1159539.53 233.58 -526459.95 -1159536.59 233.61 -526462.21 -1159532.32 233.63 -526457.10 -1159529.63 233.60 -526451.47 -1159540.22 233.58 -526450.39 -1159542.21 233.56 -526453.53 -1159543.87 233.69 -526454.55 -1159541.86 233.59 -526462.08 -1159545.84 233.57</gml:posList>
</gml:LineString>
<gml:Polygon gml:id="ID72003010000016965_03" srsDimension="2" srsName="EPSG:5514">
  <gml:exterior>
    <gml:LinearRing>
      <gml:posList>-526375.68 -1159550.83 -526375.72 -1159553.36 -526381.42 -1159553.26 -526381.29 -1159545.66 -526375.59 -1159545.76 -526375.68 -1159550.83</gml:posList>
    </gml:LinearRing>
  </gml:exterior>
</gml:Polygon>
<gml:MultiCurve gml:id="ID72003010000016965_05" srsDimension="3" srsName="EPSG:5514">
  <gml:curveMember>
    <gml:LineString>
      <gml:posList>-526375.68 -1159550.83 223.99 -526375.72 -1159553.36 223.96 -526381.42 -1159553.26 224.08 -526381.29 -1159545.66 224.08 -526375.59 -1159545.76 224.06 -526375.68 -1159550.83 223.99</gml:posList>
    </gml:LineString>
  </gml:curveMember>
</gml:MultiCurve>

as srsDimension is specified for parent element and not for <gml:posList/> element...

The example <gml:Polygon/> polygon will result in correct object, as srsDimension="2", but the pygml should take care of parents srsDimension attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions