public class FeatureShapes extends Object
| Constructor and Description |
|---|
FeatureShapes()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMapMetadataShape(GoogleMapShape mapShape,
long featureId,
String database,
String table)
Add a map metadata shape with the feature id, database, and table
|
void |
addMapShape(GoogleMapShape mapShape,
long featureId,
String database,
String table)
Add a map shape with the feature id, database, and table
|
void |
clear()
Clear
|
boolean |
exists(long featureId,
String database,
String table)
Check if map shapes exist for the feature id, database, and table
|
Map<String,Map<String,Map<Long,FeatureShape>>> |
getDatabases()
Get the mapping between databases and tables
|
int |
getDatabasesCount()
Get the databases count
|
Map<Long,FeatureShape> |
getFeatureIds(String database,
String table)
Get the mapping between feature ids and map shapes for the database and table
|
int |
getFeatureIdsCount(String database,
String table)
Get the feature ids count for the database and table
|
FeatureShape |
getFeatureShape(String database,
String table,
long featureId)
Get the feature shape for the database, table, and feature id
|
int |
getFeatureShapeCount(String database,
String table,
long featureId)
Get the feature shape count for the database, table, and feature id
|
Map<String,Map<Long,FeatureShape>> |
getTables(String database)
Get the mapping between tables and feature ids for the database
|
int |
getTablesCount(String database)
Get the tables count for the database
|
boolean |
removeFeatureShape(String database,
String table,
long featureId)
Remove the feature shape from the database and table
|
int |
removeShapes()
Remove all map shapes from the map
|
int |
removeShapes(String database)
Remove all map shapes in the database from the map
|
int |
removeShapes(String database,
String table)
Remove all map shapes in the database and table from the map
|
int |
removeShapesExcluding(GoogleMapShapeType... excludedTypes)
Remove all map shapes from the map, excluding shapes with the excluded types
|
int |
removeShapesExcluding(String database,
GoogleMapShapeType... excludedTypes)
Remove all map shapes in the database from the map, excluding shapes with the excluded types
|
int |
removeShapesExcluding(String database,
String table,
GoogleMapShapeType... excludedTypes)
Remove all map shapes in the database and table from the map, excluding shapes with the excluded types
|
int |
removeShapesNotWithinMap(GoogleMap map)
Remove all map shapes that are not visible in the map
|
int |
removeShapesNotWithinMap(GoogleMap map,
String database)
Remove all map shapes int the database that are not visible in the map
|
int |
removeShapesNotWithinMap(GoogleMap map,
String database,
String table)
Remove all map shapes in the database and table that are not visible in the map
|
int |
removeShapesWithExclusion(GoogleMapShapeType excludedType)
Remove all map shapes from the map, excluding shapes with the excluded type
|
int |
removeShapesWithExclusion(String database,
GoogleMapShapeType excludedType)
Remove all map shapes in the database from the map, excluding shapes with the excluded type
|
int |
removeShapesWithExclusion(String database,
String table,
GoogleMapShapeType excludedType)
Remove all map shapes in the database and table from the map, excluding shapes with the excluded type
|
int |
removeShapesWithExclusions(Set<GoogleMapShapeType> excludedTypes)
Remove all map shapes from the map, excluding shapes with the excluded types
|
int |
removeShapesWithExclusions(String database,
Set<GoogleMapShapeType> excludedTypes)
Remove all map shapes in the database from the map, excluding shapes with the excluded types
|
int |
removeShapesWithExclusions(String database,
String table,
Set<GoogleMapShapeType> excludedTypes)
Remove all map shapes in the database and table from the map, excluding shapes with the excluded types
|
public Map<String,Map<String,Map<Long,FeatureShape>>> getDatabases()
public int getDatabasesCount()
public Map<String,Map<Long,FeatureShape>> getTables(String database)
database - GeoPackage databasepublic int getTablesCount(String database)
database - GeoPackage databasepublic Map<Long,FeatureShape> getFeatureIds(String database, String table)
database - GeoPackage databasetable - table namepublic int getFeatureIdsCount(String database, String table)
database - GeoPackage databasetable - table namepublic FeatureShape getFeatureShape(String database, String table, long featureId)
database - GeoPackage databasetable - table namefeatureId - feature idpublic int getFeatureShapeCount(String database, String table, long featureId)
database - GeoPackage databasetable - table namefeatureId - feature idpublic void addMapShape(GoogleMapShape mapShape, long featureId, String database, String table)
mapShape - map shapefeatureId - feature iddatabase - GeoPackage databasetable - table namepublic void addMapMetadataShape(GoogleMapShape mapShape, long featureId, String database, String table)
mapShape - map metadata shapefeatureId - feature iddatabase - GeoPackage databasetable - table namepublic boolean exists(long featureId,
String database,
String table)
featureId - feature iddatabase - GeoPackage databasetable - table namepublic int removeShapes()
public int removeShapesWithExclusion(GoogleMapShapeType excludedType)
excludedType - Google Map Shape Type to exclude from map removalpublic int removeShapesExcluding(GoogleMapShapeType... excludedTypes)
excludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapesWithExclusions(Set<GoogleMapShapeType> excludedTypes)
excludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapes(String database)
database - GeoPackage databasepublic int removeShapesWithExclusion(String database, GoogleMapShapeType excludedType)
database - GeoPackage databaseexcludedType - Google Map Shape Type to exclude from map removalpublic int removeShapesExcluding(String database, GoogleMapShapeType... excludedTypes)
database - GeoPackage databaseexcludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapesWithExclusions(String database, Set<GoogleMapShapeType> excludedTypes)
database - GeoPackage databaseexcludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapes(String database, String table)
database - GeoPackage databasetable - table namepublic int removeShapesWithExclusion(String database, String table, GoogleMapShapeType excludedType)
database - GeoPackage databasetable - table nameexcludedType - Google Map Shape Type to exclude from map removalpublic int removeShapesExcluding(String database, String table, GoogleMapShapeType... excludedTypes)
database - GeoPackage databasetable - table nameexcludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapesWithExclusions(String database, String table, Set<GoogleMapShapeType> excludedTypes)
database - GeoPackage databasetable - table nameexcludedTypes - Google Map Shape Types to exclude from map removalpublic int removeShapesNotWithinMap(GoogleMap map)
map - mappublic int removeShapesNotWithinMap(GoogleMap map,
String database)
map - mapdatabase - GeoPackage databasepublic int removeShapesNotWithinMap(GoogleMap map,
String database,
String table)
map - mapdatabase - GeoPackage databasetable - table namepublic boolean removeFeatureShape(String database, String table, long featureId)
database - GeoPackage databasetable - table namefeatureId - feature idpublic void clear()