| java.lang.Object org.vfny.geoserver.util.DataStoreUtils
DataStoreUtils | abstract public class DataStoreUtils (Code) | | A collecitno of utilties for dealing with GeotTools DataStore.
author: Richard Gould, Refractions Research, Inc. author: $Author: cholmesny $ (last modification) version: $Id: DataStoreUtils.java 7428 2007-08-14 15:01:59Z aaime $ |
acquireDataStore | public static DataStore acquireDataStore(Map params, ServletContext sc) throws IOException(Code) | | Uses the standard datastore factory mechanism, but first manipulates the
specified parameters so that data dir relative paths gets turned into
absolute ones
Parameters: params - Parameters: sc - throws: IOException - |
aquireFactory | public static DataStoreFactorySpi aquireFactory(Map params)(Code) | | When loading from DTO use the params to locate factory.
bleck
Parameters: params - |
aquireFactory | public static DataStoreFactorySpi aquireFactory(String displayName)(Code) | | After user has selected Description can aquire Factory based on
display name.
Use factory for:
-
List of Params (attrb name, help text)
-
Checking user's input with factory.canProcess( params )
Parameters: diplayName - |
defaultParams | public static Map defaultParams(DataStoreFactorySpi factory)(Code) | | |
find | public static Param find(DataStoreFactorySpi factory, String key)(Code) | | Utility method for finding Params
Parameters: factory - DOCUMENT ME! Parameters: key - DOCUMENT ME! DOCUMENT ME! |
find | public static Param find(Param[] params, String key)(Code) | | Utility methods for find param by key
Parameters: params - DOCUMENT ME! Parameters: key - DOCUMENT ME! DOCUMENT ME! |
getBoundingBoxEnvelope | public static Envelope getBoundingBoxEnvelope(FeatureSource fs) throws IOException(Code) | | org.geoserver.feature.FeatureSourceUtils# |
getDataStore | public static DataStore getDataStore(Map params) throws IOException(Code) | | Looks up the datastore using the given params, verbatim, and then
eventually wraps it into a renaming wrapper so that feature type
names are good ones from the wfs point of view (that is, no ":" in the type names)
Parameters: params - |
getParams | protected static Map getParams(Map m, String baseDir)(Code) | | Get Connect params.
This is used to smooth any relative path kind of issues for any
file URLS. This code should be expanded to deal with any other context
sensitve isses dataStores tend to have.
|
listDataStoresDescriptions | public static List listDataStoresDescriptions()(Code) | | Returns the descriptions for the available DataStores.
Arrrg! Put these in the select box.
Descriptions for user to choose from |
toConnectionParams | public static Map toConnectionParams(DataStoreFactorySpi factory, Map params) throws IOException(Code) | | Convert map to real values based on factory Params.
The resulting map should still be checked with factory.acceptsMap( map )
Parameters: factory - Parameters: params - Map with real values that may be acceptable to Factory throws: IOException - DOCUMENT ME! |
|
|