Operation: LineLength
With the operation LineLength
the length of polylines or the edge length of polygons can be calculated in kilometers.
Input
For the operation LineLength
the adapter expects the same input XML structure as for the operation LineConversion
, where polygones and/or polylines are specified as well as additional (optional) attributes.
Output
For the operation LineLength
an XML document with the following structure will be output. For each element Polygon
or Polyline
that has been defined within the input XML structure and that contains a polygon or polyline, an element Length
will be generated that specifies the polyline length or the polyline edge length in kilometers.
All attributes that were defined in the input XML within the elements Polygon
or Polyline
will be output without modification.
<Data>
<!-- For each polygon/polyline element -->
<Length attribut="value"><!--Length in kilometers (with 3 decimal places)--></Length>
</Data>