public class ShapeFeature extends Feature
Feature.FeatureType
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.List<Location>> |
interiorRingLocationArray
Optional interior rings (polygon holes).
|
java.util.List<Location> |
locations
The list of locations (exterior ring).
|
properties
Constructor and Description |
---|
ShapeFeature(Feature.FeatureType type)
Creates a shape feature with the type.
|
Modifier and Type | Method and Description |
---|---|
void |
addInteriorRing(java.util.List<Location> interiorRingLocations)
Adds a list of locations as interior ring.
|
void |
addLocation(Location location)
Adds a location to this shape feature.
|
java.util.List<java.util.List<Location>> |
getInteriorRings()
Returns all interior rings of the shape.
|
java.util.List<Location> |
getLocations()
Returns all locations of this shape feature.
|
addProperty, getId, getIntegerProperty, getProperties, getProperty, getStringProperty, getType, putProperty, setId, setProperties
public java.util.List<Location> locations
public java.util.List<java.util.List<Location>> interiorRingLocationArray
public ShapeFeature(Feature.FeatureType type)
type
- The type. Should be either Feature.FeatureType.LINES
or Feature.FeatureType.POLYGON
.public java.util.List<Location> getLocations()
public void addLocation(Location location)
location
- A location.public void addInteriorRing(java.util.List<Location> interiorRingLocations)
interiorRingLocations
- The locations of the interior ring.public java.util.List<java.util.List<Location>> getInteriorRings()