span8
span4
span8
span4
Hallo!
I have the problem that i have to get every point in a lane to calculate the heading and the distance between this points. But i have no idea how i could get the size of points which are in the lanes and how i get the right coordinates in the right direction (point 1, point 2,...) out of it. I work with an template and tried to give him the lanes, but i couldn't take the nodes one by one to work with them which step i have to do before to give my template just the points/nodes of my line ?
the subtemplate-code is:
<geometry s="{fme:get-attribute("s")}" x="{geom:get-start-x()}" y="{geom:get-start-y()}" hdg="@atan2(@YValue(),@XValue())" length="{fme:get-attribute("_length")}"> <line/> </geometry>
I also give some pictures to show how my template work at least.
I hope anyone could help me.
{geom:get-x-coord()}But he give no value because i give the template a line and not a point. How could i change the geometry type that i get all notes from a line?
Have you tried extracting coordinates into a list prior to the templater and then accessing those values within the query?
{ let $x := fme:get-list-attribute("_indices{}.x") let $y := fme:get-list-attribute("_indices{}.y") for $i in (1 to fn:count($x)) return <geometry> x="{$x[$i]}" y="{$y[$i]}" </geometry> }
{ let $x := fme:get-list-attribute("_indices{}.x") let $y := fme:get-list-attribute("_indices{}.y") for $i in (1 to fn:count($x)) return <geometry x="{$x[$i]}" y="{$y[$i]}"><line/> </geometry> }
then my textfile is empty on this position.
Workflow to get the right nodes 1 Answer
How to snapping edges endpoints to node? 3 Answers
SVG Template Examples 2 Answers
Write to Excel template header into specific cells 2 Answers
Export ArcFM data to GeoJSON 1 Answer
© 2019 Safe Software Inc | Legal