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>
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