Package-level declarations
Types
Functions
convertGeometryAndClipLineToTile takes a line and converts it into a List of LineStrings. In the simplest case, the points are all within the tile and so there will just be a single LineString output. However, if the line goes off and on the tile (bouncing around in the buffer region) then there can be multiple segments returned. We also store all of the interpolated points that we've been created so that we can more easily connect them to the adjacent tiles in the grid.
getTileCrossingPoint returns the point at which the line connecting lastPoint and point crosses the tile boundary. If both points are outside the tile there can be two intersection points returned. Otherwise there can only be a single intersection point.
vectorTileToGeoJson generates a GeoJSON FeatureCollection from a Mapbox Vector Tile.