Skip to main content
Solved

XMLTemplater and geo data functions

  • November 14, 2013
  • 1 reply
  • 3 views

jorge_vidinha
Contributor
Forum|alt.badge.img+2
Hi all,

 

Some help with an XML chalenge would be great appreciated.

 

 

Geometry Data Functions

 

What geometry function or functions would you use when feeding a polyline into XMLTemplater to get a final result like:

 

 

<Point>

 

<LAT>{value Y}</LAT>

 

<LON>value X}</LON>

 

</Point>

 

<Point>

 

<LAT>{value Y}</LAT>

 

<LON>{value X}</LON>

 

</Point>

 

<Point>

 

<LAT>{value Y}</LAT>

 

<LON>{value X}</LON>

 

</Point>

 

 

geom:get-x-coord() and geom:get-y-coord() only works on Point geo, im feeding polylines and want to stay with them preferably.

 

 

Using a SUB Template like:

 

<Point>

 

    <LAT>{geom:get-points("y")}</LAT>

 

    <LON>{geom:get-points("x")}</LON>

 

</Point>

 

 

Results in ==>

 

<Point>

 

    <LAT>{value Y} {value Y} {value Y}</LAT>

 

    <LON>{value X} {value X} {value X}</LON>

 

</Point>

 

 

 

Any help appreciated

 

Jorge Vidinha

Best answer by fmelizard

Hi Jorge,

 

 

Since the lines will be preserved in the XML, if created acoordingly, you can chop your lines and feed them as points to the SUB template.

 

 

Itay

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • November 14, 2013
Hi Jorge,

 

 

Since the lines will be preserved in the XML, if created acoordingly, you can chop your lines and feed them as points to the SUB template.

 

 

Itay

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings