Package mil.nga.geopackage.map.geom
Class FeatureShape
- java.lang.Object
-
- mil.nga.geopackage.map.geom.FeatureShape
-
public class FeatureShape extends Object
Map shapes and metadata shapes for a single feature shape- Since:
- 3.2.0
-
-
Constructor Summary
Constructors Constructor Description FeatureShape(long featureId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetadataShape(GoogleMapShape shape)Add a metadata map shapevoidaddShape(GoogleMapShape shape)Add a map shapeintcount()Get the count of map shapesintcountMetadataShapes()Get the count of map metadata shapeslonggetFeatureId()Get feature idList<GoogleMapShape>getMetadataShapes()Get the map metadata shapesList<GoogleMapShape>getShapes()Get the map shapesbooleanhasMetadataShapes()Determine if there are map metadata shapesbooleanhasShapes()Determine if there are map shapesvoidremove()Remove all map shapes and metadata map shapes from the map and feature shapevoidremoveMetadataShapes()Remove the map metadata shapes from the map and feature shapevoidremoveShapes()Remove the map shapes from the map and feature shape
-
-
-
Method Detail
-
getFeatureId
public long getFeatureId()
Get feature id- Returns:
- feature id
-
getShapes
public List<GoogleMapShape> getShapes()
Get the map shapes- Returns:
- map shapes
-
getMetadataShapes
public List<GoogleMapShape> getMetadataShapes()
Get the map metadata shapes- Returns:
- map metadata shapes
-
addShape
public void addShape(GoogleMapShape shape)
Add a map shape- Parameters:
shape- map shape
-
addMetadataShape
public void addMetadataShape(GoogleMapShape shape)
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
-
-