Geo Calculation
The adapter converts polylines or polygons, whose waypoints are defined in the formats GeoDecimal, GeoE5, GooglePoint, GoogleLine, PtvLine or PtvPoint into the formats GeoDecimal, GeoE5, GooglePoint or GoogleLine, it calculates the line (route) length and edge length of polygones, (edge) intersections between polylines/polygons for calcutions of territory boundaries, and it calculates bounding boxes for one or multiple polygons/polylines.
For a line that intersects a polygon, the line segments inside and outside of the polygon can be calculated, e. g. to differentiate between trips inside and outside of a territory. In addition, polylines or polygons can be simplified in order to remove some waypoints that are not necessary for a map view.
Limitations
When calculating polygons that span more than an earth hemisphere (more than 180°), unexpected results may occur. Line segments cannot span more than 170°. If you need to perform such operations, contact the SoftProject support via support@softproject.de.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: |
outputFormat | The calculated geodata output format Possible values:
|
percent | Only for operation Possible values:
|
kilometer | Only for operation Possible values:
|
Status values
1 (successful) | The adapter operation has been executed successfully |
0 (empty) | For operation |
-1 (failed) | The adapter input is no well-formed XML document |
Input
This adapter expects consistently specified geodata for points and lines within the input XML document. Geodecimally-encoded coordinates must be specified as follows:
<GeoDecimal>
<Latitude><!--Latitude with the format NN.NNNNN--></Latitude>
<Longitude><!--Longitute with the format EE.EEEEE--></Longitude>
</GeoDecimal>
Geo E5-encoded coordinates must be specified as integer values (geodecimally-encoded coordinate value multiplied by 100.000):
<GeoE5>
<Latitude><!--Latitude with the format NNNNNNN--></Latitude>
<Longitude><!--Longitute with the format EEEEEEE--></Longitude>
</GeoE5>
Google Point-encoded coordinates must be specified as follows:
<GooglePoint><!--GooglePoint code--></GooglePoint>
Google Line-encoded polylines must be specified as follows:
<GoogleLine><!--GoogleLine code--></GoogleLine>
PTV Point-encoded coordinates (in PTV Mercator projection) must be specified as follow:
<PtvPoint>
<X><!--Easting as number with optional comma separator--></X>
<Y><!--Northing as number with optional comma separator--></Y>
</PtvPoint>
<PtvLine><!--Easting1,Northing1,Easting..,Northing...--></PtvLine>