public class PostGISDB extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PostGISDB.Provider |
Constructor and Description |
---|
PostGISDB(Map<String,Object> manualParameters) |
PostGISDB(String dbType,
String host,
Integer port,
String schema,
String db,
String user,
String pwd,
int maxConnections) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getAllGeometriesInLayer(String layerName,
String refSysName) |
Set<String> |
getAllReferenceSystems()
Gets all loaded reference systems
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getBulkGeometriesInLayer(List<Integer> idList,
String layerName,
String refSysName) |
org.geotools.data.FeatureSource |
getFeatureSource() |
com.vividsolutions.jts.geom.Geometry |
getGeometry(int itemId,
String layerName,
String refSysName) |
String |
getGeometryAttributeName() |
String |
getItemIdAttributeName() |
String |
getLayerAttributeName() |
SpatialContainerMetadata |
getLayerMetadata(String layerName,
String refSysName) |
Set<String> |
getLayersInReferenceSystem(String refSysName)
Gets all the layers in a given reference system
|
org.geotools.data.Query |
getQuery() |
org.geotools.jdbc.JDBCDataStore |
getRawDataStore() |
String |
getRefSysAttributeName() |
org.opengis.feature.simple.SimpleFeatureType |
getSchema() |
void |
optimize() |
void |
removeLayer(String refSysName,
String layerName) |
protected static PostGISDB instance
public PostGISDB(String dbType, String host, Integer port, String schema, String db, String user, String pwd, int maxConnections) throws DaoException
DaoException
public PostGISDB(Map<String,Object> manualParameters) throws DaoException
DaoException
public com.vividsolutions.jts.geom.Geometry getGeometry(int itemId, String layerName, String refSysName) throws DaoException
DaoException
public SpatialContainerMetadata getLayerMetadata(String layerName, String refSysName) throws DaoException
DaoException
public Set<String> getLayersInReferenceSystem(String refSysName) throws DaoException
refSysName
- DaoException
public void removeLayer(String refSysName, String layerName) throws DaoException
DaoException
public Set<String> getAllReferenceSystems() throws DaoException
DaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getAllGeometriesInLayer(String layerName, String refSysName) throws DaoException
DaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getBulkGeometriesInLayer(List<Integer> idList, String layerName, String refSysName) throws DaoException
DaoException
public org.geotools.jdbc.JDBCDataStore getRawDataStore()
public org.geotools.data.Query getQuery()
public org.geotools.data.FeatureSource getFeatureSource() throws DaoException
DaoException
public org.opengis.feature.simple.SimpleFeatureType getSchema() throws DaoException
DaoException
public String getGeometryAttributeName()
public String getLayerAttributeName()
public String getRefSysAttributeName()
public String getItemIdAttributeName()
public void optimize() throws DaoException
DaoException
Copyright © 2014. All rights reserved.