Operation: Line Conversion
With the LineConversion
operation, polylines or polygons whose waypoints have been specified in the formats GeoDecimal
, GeoE5
, GooglePoint
, GoogleLine
, PtvLine
, or PtvPoint
can be converted into the following formats: GeoDecimal
, GeoE5
, GooglePoint
, or GoogleLine.
Input
For the LineConversion
operation, the adapter expects an input XML structure with the following pattern that may contain any number of polygons (each within an element Polygon
) or polylines (each within an element Polyline
) and whose corner/waypoints are specified in the formats GeoDecimal, GeoE5, GooglePoint, GoogleLine, PtvLine
or PtvPoint
within a child element of the same name.
For each polygon or polyline you can define any attribute that will be output in the result XML document without modification.
<AnyRoot>
<!-- 0-n polylines-->
<Polyline attribute="value"> <!-- Any attributes -->
<!--1-n point definitions in the formats GeoDecimal, GeoE5, GooglePoint or PtvPoint-->
</Polyline>
<!-- 0-n polygones -->
<Polygon attribute="value"> <!-- Any attributes -->
<!--1-n point definitions in the formats GeoDecimal, GeoE5, GooglePoint or PtvPoint-->
</Polygon>
</AnyRoot>
Output
For the LineConversion
operation, an XML document will be output that has the same structure as the input document and each attribute that has been defined within the elements Polygon
or Polyline
will be output without modification. Depending on the selected output format, the point definitions in the corresponding elements are converted into the format GeoDecimal, GeoE5
or GooglePoint;
or polylines are converted into the GoogleLine
format.