Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srsDimension is not read from parent element #11

Open
xdml opened this issue Jul 15, 2024 · 0 comments
Open

srsDimension is not read from parent element #11

xdml opened this issue Jul 15, 2024 · 0 comments

Comments

@xdml
Copy link

xdml commented Jul 15, 2024

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.

@xdml xdml changed the title srsDimension is not read from parent emelement srsDimension is not read from parent element Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant