public final class MvtReader extends Object
Geometry. Feature tags may be converted
to user data via ITagConverter.| Modifier and Type | Class and Description |
|---|---|
static interface |
MvtReader.RingClassifier
Classifies Polygon and MultiPolygon rings.
|
| Modifier and Type | Field and Description |
|---|---|
static MvtReader.RingClassifier |
RING_CLASSIFIER_V1
Area for surveyor formula may be positive or negative for exterior rings.
|
static MvtReader.RingClassifier |
RING_CLASSIFIER_V2_1
Area from surveyor formula must be positive for exterior rings.
|
| Constructor and Description |
|---|
MvtReader() |
| Modifier and Type | Method and Description |
|---|---|
static JtsMvt |
loadMvt(File file,
org.locationtech.jts.geom.GeometryFactory geomFactory,
ITagConverter tagConverter)
Convenience method for loading MVT from file.
|
static JtsMvt |
loadMvt(File file,
org.locationtech.jts.geom.GeometryFactory geomFactory,
ITagConverter tagConverter,
MvtReader.RingClassifier ringClassifier)
Convenience method for loading MVT from file.
|
static JtsMvt |
loadMvt(InputStream is,
org.locationtech.jts.geom.GeometryFactory geomFactory,
ITagConverter tagConverter)
Load an MVT to JTS geometries using coordinates.
|
static JtsMvt |
loadMvt(InputStream is,
org.locationtech.jts.geom.GeometryFactory geomFactory,
ITagConverter tagConverter,
MvtReader.RingClassifier ringClassifier)
Load an MVT to JTS geometries using coordinates.
|
public static final MvtReader.RingClassifier RING_CLASSIFIER_V1
public static final MvtReader.RingClassifier RING_CLASSIFIER_V2_1
public static JtsMvt loadMvt(File file, org.locationtech.jts.geom.GeometryFactory geomFactory, ITagConverter tagConverter) throws IOException
loadMvt(InputStream, GeometryFactory, ITagConverter, RingClassifier).
Uses RING_CLASSIFIER_V2_1 for forming Polygons and MultiPolygons.file - path to the MVTgeomFactory - allows for JTS geometry creationtagConverter - converts MVT feature tags to JTS user data objectIOException - failure reading MVT from pathloadMvt(InputStream, GeometryFactory, ITagConverter, RingClassifier),
Geometry,
Geometry.getUserData(),
MvtReader.RingClassifierpublic static JtsMvt loadMvt(File file, org.locationtech.jts.geom.GeometryFactory geomFactory, ITagConverter tagConverter, MvtReader.RingClassifier ringClassifier) throws IOException
loadMvt(InputStream, GeometryFactory, ITagConverter, RingClassifier).file - path to the MVTgeomFactory - allows for JTS geometry creationtagConverter - converts MVT feature tags to JTS user data objectringClassifier - determines how rings are parsed into Polygons and MultiPolygonsIOException - failure reading MVT from pathloadMvt(InputStream, GeometryFactory, ITagConverter, RingClassifier),
Geometry,
Geometry.getUserData(),
MvtReader.RingClassifierpublic static JtsMvt loadMvt(InputStream is, org.locationtech.jts.geom.GeometryFactory geomFactory, ITagConverter tagConverter) throws IOException
tagConverter to create user data
from feature properties.is - stream with MVT datageomFactory - allows for JTS geometry creationtagConverter - converts MVT feature tags to JTS user data object.IOException - failure reading MVT from streamGeometry,
Geometry.getUserData(),
MvtReader.RingClassifierpublic static JtsMvt loadMvt(InputStream is, org.locationtech.jts.geom.GeometryFactory geomFactory, ITagConverter tagConverter, MvtReader.RingClassifier ringClassifier) throws IOException
tagConverter to create user data
from feature properties.is - stream with MVT datageomFactory - allows for JTS geometry creationtagConverter - converts MVT feature tags to JTS user data object.ringClassifier - determines how rings are parsed into Polygons and MultiPolygonsIOException - failure reading MVT from streamGeometry,
Geometry.getUserData(),
MvtReader.RingClassifierCopyright © 2022. All rights reserved.