public class JtsLayer extends Object
JTS model of a Mapbox Vector Tile (MVT) layer.
A layer contains a subset of all geographic geometries in the tile.
| Constructor and Description |
|---|
JtsLayer(String name)
Create an empty JTS layer.
|
JtsLayer(String name,
Collection<org.locationtech.jts.geom.Geometry> geometries)
Create a JTS layer with geometries.
|
JtsLayer(String name,
Collection<org.locationtech.jts.geom.Geometry> geometries,
int extent)
Create a JTS layer with geometries.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getExtent()
Get the layer extent.
|
Collection<org.locationtech.jts.geom.Geometry> |
getGeometries()
Get a read-only collection of geometry.
|
String |
getName()
Get the layer name.
|
int |
hashCode() |
String |
toString() |
public JtsLayer(String name)
name - layer nameIllegalArgumentException - when name is nullpublic JtsLayer(String name, Collection<org.locationtech.jts.geom.Geometry> geometries)
name - layer namegeometries - IllegalArgumentException - when name or geometries are nullpublic JtsLayer(String name, Collection<org.locationtech.jts.geom.Geometry> geometries, int extent)
name - layer namegeometries - extent - IllegalArgumentException - when name or geometries are null
or extent is less than or equal to 0public Collection<org.locationtech.jts.geom.Geometry> getGeometries()
public String getName()
public int getExtent()
Copyright © 2022. All rights reserved.