Package mil.nga.geopackage.map.geom
Class FeatureShape
java.lang.Object
mil.nga.geopackage.map.geom.FeatureShape
Map shapes and metadata shapes for a single feature shape
- Since:
- 3.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadataShape(GoogleMapShape shape) Add a metadata map shapevoidaddShape(GoogleMapShape shape) Add a map shapeintcount()Get the count of map shapesintGet the count of map metadata shapeslongGet feature idGet the map metadata shapesGet the map shapesbooleanDetermine if there are map metadata shapesbooleanDetermine if there are map shapesvoidremove()Remove all map shapes and metadata map shapes from the map and feature shapevoidRemove the map metadata shapes from the map and feature shapevoidRemove the map shapes from the map and feature shape
-
Constructor Details
-
FeatureShape
public FeatureShape(long featureId) Constructor- Parameters:
featureId- feature id
-
-
Method Details
-
getFeatureId
public long getFeatureId()Get feature id- Returns:
- feature id
-
getShapes
Get the map shapes- Returns:
- map shapes
-
getMetadataShapes
Get the map metadata shapes- Returns:
- map metadata shapes
-
addShape
Add a map shape- Parameters:
shape- map shape
-
addMetadataShape
Add a metadata map shape- Parameters:
shape- metadata map shape
-
count
public int count()Get the count of map shapes- Returns:
- map shapes count
-
hasShapes
public boolean hasShapes()Determine if there are map shapes- Returns:
- true if has map shapes
-
countMetadataShapes
public int countMetadataShapes()Get the count of map metadata shapes- Returns:
- map metadata shapes count
-
hasMetadataShapes
public boolean hasMetadataShapes()Determine if there are map metadata shapes- Returns:
- true if has map metadata shapes
-
remove
public void remove()Remove all map shapes and metadata map shapes from the map and feature shape -
removeShapes
public void removeShapes()Remove the map shapes from the map and feature shape -
removeMetadataShapes
public void removeMetadataShapes()Remove the map metadata shapes from the map and feature shape
-