public class FeatureShapes extends Object
| Constructor and Description |
|---|
FeatureShapes()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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,List<GoogleMapShape>>>> |
getDatabases()
Get the mapping between databases and tables
|
int |
getDatabasesCount()
Get the databases count
|
Map<Long,List<GoogleMapShape>> |
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
|
List<GoogleMapShape> |
getShapes(String database,
String table,
long featureId)
Get the map shapes for the database, table, and feature id
|
int |
getShapesCount(String database,
String table,
long featureId)
Get the map shapes count for the database, table, and feature id
|
Map<String,Map<Long,List<GoogleMapShape>>> |
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
|
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 |
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
|
public Map<String,Map<String,Map<Long,List<GoogleMapShape>>>> getDatabases()
public int getDatabasesCount()
public Map<String,Map<Long,List<GoogleMapShape>>> getTables(String database)
database - GeoPackage databasepublic int getTablesCount(String database)
database - GeoPackage databasepublic Map<Long,List<GoogleMapShape>> getFeatureIds(String database, String table)
database - GeoPackage databasetable - table namepublic int getFeatureIdsCount(String database, String table)
database - GeoPackage databasetable - table namepublic List<GoogleMapShape> getShapes(String database, String table, long featureId)
database - GeoPackage databasetable - table namefeatureId - feature idpublic int getShapesCount(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 boolean exists(long featureId,
String database,
String table)
featureId - feature iddatabase - GeoPackage databasetable - table namepublic int removeShapes()
public int removeShapes(String database)
database - GeoPackage databasepublic int removeShapes(String database, String table)
database - GeoPackage databasetable - table namepublic 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 void clear()