Skip to main content
Question

GeometryExtractor or Geometry Template in XMLTemplater

  • July 29, 2014
  • 4 replies
  • 96 views

Hi,

 

 

I use XMLTemplater to make my GML file. But I can not cope with Geometry templates (I am new in using this and cann't find some tutorials for it). Because I cann't get geometry (point, curve, surface and multi-surface) from my feature, I used GeometryExtractor to extract my geometry into new attribute and then I simply store it where I need.

 

But GeometryExtractor gives me this:

 

 

<gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsDimension="2">

 

<gml:surfaceMember>

 

<gml:Surface>

 

<gml:patches>

 

<gml:PolygonPatch>

 

<gml:exterior>

 

<gml:LinearRing>

 

<gml:posList>6436765.27 4948428.28 6436763.31 4948427.66 6436766.45 4948422.08 6436770.67 4948418.79 ...  6436765.27 4948428.28</gml:posList>

 

</gml:LinearRing>

 

</gml:exterior>

 

</gml:PolygonPatch>

 

</gml:patches>

 

</gml:Surface>

 

</gml:surfaceMember>

 

</gml:MultiSurface>

 

 

I don't have point separators here, as well as the appropriate signs (< >). What I need to do and how, to succeed in this? Does anyone has some tutorial (not FME Help) for this).

 

 

Thanks
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.

4 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 29, 2014
Hi,

 

 

You can use  for instance a StringReplacer opn the geomtry attribute to replace &lt; with < and &gt: with >

 

If you then use GeomteryExtractor you get this:

 


  • Author
  • July 29, 2014
And point separator is irrelevant?

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 29, 2014
Coordinates are tuples.

 

There is no seperator between them.

 

Or is this not what u ment by "point separator"?

 

 

it says aggregate but also invalid geometry...because the bit u posted is not complete i guess. The pic is from your posted bit.

 


  • Author
  • July 29, 2014
Yes, I deleted part of the points because there is too many of them.

 

The thing is that I cann't decode &lt; with < and &gt: with > (I use textdecoders unsuccessfully).