| org.geotools.data.jdbc.JDBCFeatureStore org.geotools.data.postgis.PostgisFeatureStore
All known Subclasses: org.geotools.data.postgis.PostgisFeatureLocking,
PostgisFeatureStore | public class PostgisFeatureStore extends JDBCFeatureStore (Code) | | Implementation of a Postgis specific FeatureStore.
This mostly just rips off code from PostgisDataSource
It could definitely use some nice code reuse with PostgisDataStore, as they
have a number of similar if not identical methods right now.
Approaching deadlines, however, mean that
we're sticking with the code that works, instead of getting all kinds of
nice reuse. This'll hopefully change. This bypasses the writers used in
JDBCFeatureStore, as I'm just not yet confident in them. We also should
do some solid tests to see which is actually faster.
author: Chris Holmes, TOPP version: $Id: PostgisFeatureStore.java 29383 2008-02-19 16:39:16Z aaime $ |
CONN_ERROR | final protected static String CONN_ERROR(Code) | | Error message prefix for sql connection errors
|
fidMapper | protected FIDMapper fidMapper(Code) | | the name of the column to use for the featureId
|
geometryFactory | protected static GeometryFactory geometryFactory(Code) | | Factory for producing geometries (from JTS).
|
geometryReader | protected static WKTReader geometryReader(Code) | | Well Known Text reader (from JTS).
|
geometryWriter | protected static WKTWriter geometryWriter(Code) | | Well Known Text writer (from JTS).
|
getBounds | public Envelope getBounds(Query query) throws IOException(Code) | | Retrieve Bounds of Query results.
Currently returns null, consider getFeatures( query ).getBounds()
instead.
Subclasses may override this method to perform the appropriate
optimization for this result.
Parameters: query - Query we are requesting the bounds of null representing the lack of an optimization throws: IOException - DOCUMENT ME! |
getPostgisDataStore | protected PostgisDataStore getPostgisDataStore()(Code) | | Performs the setFeautres operation by removing all and then adding the
full collection. This is not efficient, the add, modify and remove
operations should be used instead, this is just to follow the
interface.
DOCUMENT ME! |
makeSql | public String makeSql(SQLUnpacker unpacker, Query query) throws IOException(Code) | | Creates a SQL statement for the PostGIS database.
Parameters: unpacker - the object to get the encodable filter. Parameters: query - the getFeature query - for the tableName, properties andmaxFeatures. throws: IOException - if there are problems encoding the sql. |
makeSql | public String makeSql(Query query) throws IOException(Code) | | Creates a SQL statement for the PostGIS database.
Full SQL statement. throws: IOException - if there are problems encoding the sql. |
modifyFeatures | public void modifyFeatures(AttributeType[] type, Object[] value, Filter filter) throws IOException(Code) | | Modifies the passed attribute types with the passed objects in all
features that correspond to the passed OGS filter.
Parameters: type - The attributes to modify. Parameters: value - The values to put in the attribute types. Parameters: filter - An OGC filter to note which attributes to modify. throws: IOException - If modificaton is not supported, if the attributeand object arrays are not eqaul length, or if the object typesdo not match the attribute types. throws: DataSourceException - DOCUMENT ME! |
modifyFeatures | public void modifyFeatures(AttributeType type, Object value, Filter filter) throws IOException(Code) | | Modifies the passed attribute types with the passed objects in all
features that correspond to the passed OGS filter. A convenience
method for single attribute modifications.
Parameters: type - The attributes to modify. Parameters: value - The values to put in the attribute types. Parameters: filter - An OGC filter to note which attributes to modify. throws: IOException - If modificaton is not supported, if the object typedo not match the attribute type. |
removeFeatures | public void removeFeatures(Filter filter) throws IOException(Code) | | Removes the features specified by the passed filter from the PostGIS
database.
Parameters: filter - An OpenGIS filter; specifies which features to remove. throws: IOException - If anything goes wrong or if deleting is notsupported. throws: DataSourceException - DOCUMENT ME! |
|
|