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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadataShape
(GoogleMapShape shape) Add a metadata map shapevoid
addShape
(GoogleMapShape shape) Add a map shapeint
count()
Get the count of map shapesint
Get the count of map metadata shapeslong
Get feature idGet the map metadata shapesGet the map shapesboolean
Determine if there are map metadata shapesboolean
Determine if there are map shapesvoid
remove()
Remove all map shapes and metadata map shapes from the map and feature shapevoid
Remove the map metadata shapes from the map and feature shapevoid
Remove 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
-