|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEmfAppSchemaParser
public class EmfAppSchemaParser
Utility class to parse FeatureType given by an XML schema location and the name of the Feature Element whose type is the one needed.
Currently only simple FeatureTypes are supported. In the feature, complex schemas may be
supported by porting the EmfAppSchemaParser class in the community schema datastore module, depending on the
availability of complex Feature
support on the mainstream GeoTools distribution.
Constructor Summary | |
---|---|
EmfAppSchemaParser()
|
Method Summary | |
---|---|
static SimpleFeatureType |
parse(Configuration wfsConfiguration,
QName featureName,
URL schemaLocation,
CoordinateReferenceSystem crs,
Map<String,String> mappedURIs,
Map<QName,Class<?>> mappedBindings,
boolean ignoreMissingElementDeclaration)
Parses the FeatureType pointed out by the schemaLocation URL and returns it. |
static SimpleFeatureType |
parseSimpleFeatureType(Configuration wfsConfiguration,
QName featureName,
URL schemaLocation,
CoordinateReferenceSystem crs,
Map<String,String> mappedURIs,
Map<QName,Class<?>> mappedBindings,
boolean ignoreMissingElementDeclaration)
Parses the FeatureType pointed out by the schemaLocation URL and returns a subset
consisting only of the simple attributes found on the original schema. |
static SimpleFeatureType |
parseSimpleFeatureType(QName featureName,
URL schemaLocation,
CoordinateReferenceSystem crs,
Configuration wfsConfiguration,
Map<String,String> mappedURIs,
Map<QName,Class<?>> mappedBindings,
boolean ignoreMissingElementDeclaration)
|
static SimpleFeatureType |
toSimpleFeatureType(FeatureType realType)
Go through FeatureType description and convert to a SimpleFeatureType. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmfAppSchemaParser()
Method Detail |
---|
public static SimpleFeatureType parseSimpleFeatureType(QName featureName, URL schemaLocation, CoordinateReferenceSystem crs, Configuration wfsConfiguration, Map<String,String> mappedURIs, Map<QName,Class<?>> mappedBindings, boolean ignoreMissingElementDeclaration) throws IOException
IOException
public static SimpleFeatureType parseSimpleFeatureType(Configuration wfsConfiguration, QName featureName, URL schemaLocation, CoordinateReferenceSystem crs, Map<String,String> mappedURIs, Map<QName,Class<?>> mappedBindings, boolean ignoreMissingElementDeclaration) throws IOException
schemaLocation
URL and returns a subset
consisting only of the simple attributes found on the original schema.
Aditionally, the default properties inherited from gml:AbstractFeatureType
(ie,
gml:name, gml:location, etc), will be ignored.
The returned SimpleFeatureType
default geometry, thus, will be the first geometric
attribute distinct from gml:location
.
ParserHandler.startDocument()
wfsConfiguration
- the WFS configuration for the parser to grab Binding
s from.featureName
- the qualified name of the Feature element in the schema, for which the
feature type is to be parsed.schemaLocation
- the location of the root schema file from where to parse the feature
type.crs
- the CRS to be assigned to the geometric attributes in the parsed feature type.
This information shall be provided here as the schema itself has no knowledge of the
CRS used.
IOException
public static SimpleFeatureType toSimpleFeatureType(FeatureType realType) throws DataSourceException
realType
-
DataSourceException
public static SimpleFeatureType parse(Configuration wfsConfiguration, QName featureName, URL schemaLocation, CoordinateReferenceSystem crs, Map<String,String> mappedURIs, Map<QName,Class<?>> mappedBindings, boolean ignoreMissingElementDeclaration) throws IOException
schemaLocation
URL and returns it.
The returned FeatureType
default geometry, will be the first geometric attribute
distinct from gml:location
, or gml:location
if no additional geometric
property is found.
ParserHandler.startDocument()
wfsConfiguration
- the WFS configuration for the parser to grab Binding
s from.featureName
- the qualified name of the Feature element in the schema, for which the
feature type is to be parsed.schemaLocation
- the location of the root schema file from where to parse the feature
type.crs
- the CRS to be assigned to the geometric attributes in the parsed feature type.
This information shall be provided here as the schema itself has no knowledge of the
CRS used.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |