Segmenting LineStrings of arbitrary length with GeoTools

Posted on May 26th, 2014 by Dalton Filho

This post demonstrates a simple algorithm implemented in GeoTools to divide LineString objects into segments of arbitrary length. Our task is to divide Montreal’s Grand Prix Track into segments of 100m. The implementation of this functionality will require the concept of interpolation of points within a line, which serves as the basis for several other GIS algorithms.