|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCatalogManager
public class CatalogManager
An utility class which allows to create schema, catalogs, and populate them.
Constructor Summary | |
---|---|
CatalogManager()
|
Method Summary | |
---|---|
static GranuleCatalog |
createCatalog(CatalogBuilderConfiguration runConfiguration)
Create a GranuleCatalog on top of the provided configuration |
static GranuleCatalog |
createCatalog(CatalogBuilderConfiguration runConfiguration,
boolean create)
Create or load a GranuleCatalog on top of the provided configuration |
static GranuleCatalog |
createGranuleCatalogFromDatastore(File parent,
File datastoreProperties,
boolean create,
Hints hints)
Create a granule catalog from a datastore properties file |
static Properties |
createGranuleCatalogProperties(File datastoreProperties)
|
static SimpleFeatureType |
createSchema(CatalogBuilderConfiguration runConfiguration,
String name,
CoordinateReferenceSystem actualCRS)
Create a SimpleFeatureType from the specified configuration. |
static String |
getRelativePath(String targetPath,
String basePath,
String pathSeparator)
Get the relative path from one file to another, specifying the directory separator. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatalogManager()
Method Detail |
---|
public static GranuleCatalog createCatalog(CatalogBuilderConfiguration runConfiguration) throws IOException
runConfiguration
-
IOException
public static GranuleCatalog createCatalog(CatalogBuilderConfiguration runConfiguration, boolean create) throws IOException
runConfiguration
- create
- if true create a new catalog, otherwise it is loaded
IOException
public static Properties createGranuleCatalogProperties(File datastoreProperties) throws IOException
IOException
public static GranuleCatalog createGranuleCatalogFromDatastore(File parent, File datastoreProperties, boolean create, Hints hints) throws IOException
parent
- datastoreProperties
- create
- hints
-
IOException
public static SimpleFeatureType createSchema(CatalogBuilderConfiguration runConfiguration, String name, CoordinateReferenceSystem actualCRS)
SimpleFeatureType
from the specified configuration.
configurationBean
- actualCRS
-
public static String getRelativePath(String targetPath, String basePath, String pathSeparator)
targetPath
- targetPath is calculated to this filebasePath
- basePath is calculated from this filepathSeparator
- directory separator. The platform default is not assumed so that
we can test Unix behaviour when running on Windows (for example)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |