org.deegree.services.wpvs.io.db
Class PostgisBackend
java.lang.Object
org.deegree.services.wpvs.io.ModelBackend<G>
org.deegree.services.wpvs.io.db.DBBackend<org.postgis.PGgeometry>
org.deegree.services.wpvs.io.db.PostgisBackend
- All Implemented Interfaces:
- org.deegree.rendering.r3d.persistence.RenderableStore
public class PostgisBackend
- extends DBBackend<org.postgis.PGgeometry>
The PostgisBackend
class adds postgis specific methods to the model backend.
- Version:
- $Revision: 25504 $, $Date: 2010-07-26 17:02:08 +0200 (Mo, 26. Jul 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Method Summary |
org.postgis.PGgeometry |
createBackendEnvelope(org.deegree.geometry.Envelope geometry,
int dimension)
|
org.deegree.geometry.Envelope |
createEnvelope(org.postgis.PGgeometry geometry)
Create an envelope from the given Geometry type. |
protected org.deegree.geometry.Envelope |
getDatasetEnvelope(java.sql.Connection con,
java.lang.String tableName,
java.lang.String geomColumn)
Should return the envelope in WPVS scene coordinates, not in world coordinates. |
protected java.lang.String |
getDriverPrefix()
|
Methods inherited from class org.deegree.services.wpvs.io.db.DBBackend |
delete, flush, getBackendInfo, getConnection, getDeSerializedObjectForUUID, getDeSerializedObjectsForSQL, insert, isBillboard, loadBuildings, loadEntities, loadProtoTypes, loadTrees |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgisBackend
public PostgisBackend(java.lang.String connectionID,
ModelBackend.Type type)
- Parameters:
connectionID
- pointing to the configured database connection.type
-
createEnvelope
public org.deegree.geometry.Envelope createEnvelope(org.postgis.PGgeometry geometry)
- Description copied from class:
ModelBackend
- Create an envelope from the given Geometry type.
- Specified by:
createEnvelope
in class ModelBackend<org.postgis.PGgeometry>
- Returns:
- the envelope
createBackendEnvelope
public org.postgis.PGgeometry createBackendEnvelope(org.deegree.geometry.Envelope geometry,
int dimension)
- Specified by:
createBackendEnvelope
in class ModelBackend<org.postgis.PGgeometry>
dimension
- of the result geometry
- Returns:
- an envelope created from the given geometry
getDriverPrefix
protected java.lang.String getDriverPrefix()
- Specified by:
getDriverPrefix
in class ModelBackend<org.postgis.PGgeometry>
- Returns:
- the prefix of the backend, which should be prefixed to the hosturl.
getDatasetEnvelope
protected org.deegree.geometry.Envelope getDatasetEnvelope(java.sql.Connection con,
java.lang.String tableName,
java.lang.String geomColumn)
throws java.sql.SQLException
- Description copied from class:
DBBackend
- Should return the envelope in WPVS scene coordinates, not in world coordinates.
- Specified by:
getDatasetEnvelope
in class DBBackend<org.postgis.PGgeometry>
- Returns:
- the envelope of the given dataset.
- Throws:
java.sql.SQLException
Copyright © 2011. All Rights Reserved.