Skip to main content
Solved

Create Geometry from XML (GML)

  • March 21, 2019
  • 6 replies
  • 290 views

pflegpet
Contributor
Forum|alt.badge.img+8

Hi,

I am trying to create geometry from a coordinate list in GML but it does not work with the GeometryReplacer (GML). I don't know if I did anything wrong with exposing the XML attribute containing the geo or if the format is the problem.

The following template contains the workspace and the XML source. The coordinates are stored in the XML tag "Building.geometry2D.BuildingGeometry2D.geometry.Polygon.exterior.LinearRing.posList

Thanks in advance for any help!

Best answer by itay

Hi @kasparlov,

Use the xml_fragment attribute in the GeometryReplacer, this will work like a charm.

Itay

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • Best Answer
  • March 21, 2019

Hi @kasparlov,

Use the xml_fragment attribute in the GeometryReplacer, this will work like a charm.

Itay


pflegpet
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 62 replies
  • March 22, 2019

Hi @kasparlov,

Use the xml_fragment attribute in the GeometryReplacer, this will work like a charm.

Itay

It does work but the xml_fragment only contains one point coordinate. I want to create polygon features from the "....posList" attribute that contains multiple coordinates.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • March 22, 2019

It does work but the xml_fragment only contains one point coordinate. I want to create polygon features from the "....posList" attribute that contains multiple coordinates.

There doesn't appear to be any polygon geometry within your xml, only points...


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • March 22, 2019

It does work but the xml_fragment only contains one point coordinate. I want to create polygon features from the "....posList" attribute that contains multiple coordinates.

What @itay describes works very well, just use a GeometryFilter to split the points from the areas, as they are hard to find.


pflegpet
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 62 replies
  • March 22, 2019

What @itay describes works very well, just use a GeometryFilter to split the points from the areas, as they are hard to find.

Thank you, that works beautifully!


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • March 22, 2019

@kasparlov

 

The member file wich is 564087.xml. Is zipped with fonts.

The canvas does not recognise it as a gml, which it is.

If you pull out the 564087.xml and put it on the canvas and choose gml, you get the geometry.

 

No geometryreplacer or anything needed.