Simplify an informed track using resultset. Each register of the resultset indicaes a point of the track.
The column 1 of the resultset must contain the latitude and the column 2 the length of the point.
1 geo.getSimplifiedTrack
<geo.getSimplifiedTrack tolerance='tolerance'>
<rs /> +
</geo.getSimplifiedTrack>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atolerance | decimal | Tolerance parameter used in the algorithm. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ers | ResultSet with the columns latitude and length. |
Example
Simplify a track.
Copy
<xsql-script> <body> <return> <geo.getSimplifiedTrack tolerance="0.01"> <select> <columns> lat, lng </columns> <from table='mships' /> </select> </geo.getSimplifiedTrack> </return> </body> </xsql-script>
Notas
The algorithm used is:
http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm