public final class RoundingFilter extends Object implements org.locationtech.jts.geom.CoordinateSequenceFilter
Round each coordinate value to an integer.
Mapbox vector tiles have fixed precision. This filter can be useful for reducing precision to the extent of a MVT.
| Modifier and Type | Field and Description |
|---|---|
static RoundingFilter |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(org.locationtech.jts.geom.CoordinateSequence seq,
int i) |
boolean |
isDone() |
boolean |
isGeometryChanged() |
public static final RoundingFilter INSTANCE
public void filter(org.locationtech.jts.geom.CoordinateSequence seq,
int i)
filter in interface org.locationtech.jts.geom.CoordinateSequenceFilterpublic boolean isDone()
isDone in interface org.locationtech.jts.geom.CoordinateSequenceFilterpublic boolean isGeometryChanged()
isGeometryChanged in interface org.locationtech.jts.geom.CoordinateSequenceFilterCopyright © 2022. All rights reserved.