Question

GeometryExtractor or Geometry Template in XMLTemplater


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

4 replies

Badge +3
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:

 

And point separator is irrelevant?
Badge +3
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.

 

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

 

Reply