public interface SpatialDataDao
Modifier and Type | Method and Description |
---|---|
void |
beginSaveGeometries()
This should be called prior to any saveGeometry() calls.
|
void |
endSaveGeometries()
This should be called at the end of a spatial data loading process (when all the saveGeometry() calls are completed).
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getAllGeometriesInLayer(String layerName)
Gets all the geometries in a given layer, assumes 'earth' reference system
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getAllGeometriesInLayer(String layerName,
Precision.LatLonPrecision minPrecision)
Gets all the geometries in a given layer with a minimum precision, assumes 'earth' reference system
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getAllGeometriesInLayer(String layerName,
String refSysName)
Gets all the geometries in a given layer.
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getAllGeometriesInLayer(String layerName,
String[] notInLayers,
String refSysName)
Gets all geometries in layerName that are not in notInLayers
|
Iterable<String> |
getAllLayerNames(String refSysName)
Gets the names of all loaded layers.
|
Iterable<String> |
getAllRefSysNames()
Gets the names of all loaded reference systems.
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getBulkGeometriesInLayer(List<Integer> idList,
String layerName,
String refSysName) |
Iterable<com.vividsolutions.jts.geom.Geometry> |
getGeometries(int itemId)
Gets all geometries associated with a given Wikidata item id (all layers, all reference systems)
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(int itemId,
String layerName)
Gets a geometry by Wikidata item id and layer name.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(int itemId,
String layerName,
Precision.LatLonPrecision minPrecision)
Gets a geometry by Wikidata item id, layer name, and minimum precision.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(int itemId,
String layerName,
String refSysName)
Gets a geometry by Wikidata item id, layer name, and reference system name.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(String articleName,
Language language,
String layerName)
Gets a geometry by article name, language, and layer.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(String articleName,
Language language,
String layerName,
Precision.LatLonPrecision minPrecision)
Gets a geometry by article name, language, layer, and minimum precision.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(String articleName,
Language language,
String layerName,
String refSysName)
public Geometry getGeometry(String articleName, Language language, String layerName) throws DaoException;
|
SpatialContainerMetadata |
getLayerMetadata(String layerName,
String refSysName)
Gets the metadata for a given layer
|
SpatialContainerMetadata |
getReferenceSystemMetadata(String refSysName)
Gets the metadata for a given reference system.
|
void |
optimize()
Optimizes the database, if necessary.
|
void |
removeLayer(String refSysName,
String layerName)
Removes the layer with the given reference system.
|
void |
saveGeometry(int itemId,
String layerName,
String refSysName,
com.vividsolutions.jts.geom.Geometry g)
Saves a geometry.
|
com.vividsolutions.jts.geom.Geometry getGeometry(int itemId, String layerName, String refSysName) throws DaoException
itemId
- layerName
- refSysName
- DaoException
com.vividsolutions.jts.geom.Geometry getGeometry(int itemId, String layerName) throws DaoException
itemId
- layerName
- DaoException
com.vividsolutions.jts.geom.Geometry getGeometry(int itemId, String layerName, Precision.LatLonPrecision minPrecision) throws DaoException
itemId
- layerName
- minPrecision
- See definition of LatLonPrecisionDaoException
com.vividsolutions.jts.geom.Geometry getGeometry(String articleName, Language language, String layerName) throws DaoException
articleName
- (e.g. "Minnesota", "Minneapolis", "Kalifornien")language
- (e.g. Language.EN, Language.DE)layerName
- (e.g. Layers.STATE)DaoException
com.vividsolutions.jts.geom.Geometry getGeometry(String articleName, Language language, String layerName, Precision.LatLonPrecision minPrecision) throws DaoException
articleName
- language
- layerName
- minPrecision
- See definition of LatLonPrecisionDaoException
com.vividsolutions.jts.geom.Geometry getGeometry(String articleName, Language language, String layerName, String refSysName) throws DaoException
articleName
- (e.g. "Minnesota", "Minneapolis", "Kalifornien")language
- (e.g. Language.EN, Language.DE)layerName
- (e.g. Layers.STATE)refSysName
- (e.g. Layers.EARTH)DaoException
Iterable<com.vividsolutions.jts.geom.Geometry> getGeometries(int itemId) throws DaoException
itemId
- DaoException
Map<Integer,com.vividsolutions.jts.geom.Geometry> getAllGeometriesInLayer(String layerName, String refSysName) throws DaoException
layerName
- refSysName
- DaoException
Map<Integer,com.vividsolutions.jts.geom.Geometry> getAllGeometriesInLayer(String layerName) throws DaoException
layerName
- DaoException
Map<Integer,com.vividsolutions.jts.geom.Geometry> getAllGeometriesInLayer(String layerName, Precision.LatLonPrecision minPrecision) throws DaoException
layerName
- minPrecision
- See definition of LatLonPrecisionDaoException
Map<Integer,com.vividsolutions.jts.geom.Geometry> getAllGeometriesInLayer(String layerName, String[] notInLayers, String refSysName) throws DaoException
layerName
- notInLayers
- refSysName
- the reference system for both layerName and notInLayersDaoException
Map<Integer,com.vividsolutions.jts.geom.Geometry> getBulkGeometriesInLayer(List<Integer> idList, String layerName, String refSysName) throws DaoException
idList
- an iterable of ids of geometrieslayerName
- refSysName
- the reference system for both layerName and notInLayersDaoException
Iterable<String> getAllRefSysNames() throws DaoException
DaoException
Iterable<String> getAllLayerNames(String refSysName) throws DaoException
refSysName
- DaoException
SpatialContainerMetadata getReferenceSystemMetadata(String refSysName) throws DaoException
refSysName
- DaoException
SpatialContainerMetadata getLayerMetadata(String layerName, String refSysName) throws DaoException
layerName
- refSysName
- DaoException
void beginSaveGeometries() throws DaoException
DaoException
void endSaveGeometries() throws DaoException
DaoException
void saveGeometry(int itemId, String layerName, String refSysName, com.vividsolutions.jts.geom.Geometry g) throws DaoException
itemId
- layerName
- refSysName
- g
- DaoException
void removeLayer(String refSysName, String layerName) throws DaoException
refSysName
- layerName
- DaoException
void optimize() throws DaoException
DaoException
Copyright © 2014. All rights reserved.