| java.lang.Object org.geotools.gml2.bindings.GML2ParsingUtils
GML2ParsingUtils | public class GML2ParsingUtils (Code) | | Utility methods used by gml2 bindings when parsing.
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
Method Summary | |
public static Collection | asCollection(GeometryCollection gc) Wraps the elements of a geometry collection in a normal collection. | public static CoordinateReferenceSystem | crs(Node node) | public static Feature | feature(FeatureType fType, String fid, Node node) | public static FeatureType | featureType(Node node) Turns a parse node instance into a geotools feature type.
For each child element and attribute of the node a geotools attribute
type is created. | public static FeatureType | featureType(XSDElementDeclaration element, BindingWalkerFactory bwFactory) Turns a xml type definition into a geotools feature type.
Parameters: type - The xml schema tupe. | public static Feature | parseFeature(ElementInstance instance, Node node, Object value, FeatureTypeCache ftCache, BindingWalkerFactory bwFactory) Utility method to implement Binding.parse for a binding which parses
into A feature.
Parameters: instance - The instance being parsed. Parameters: node - The parse tree. Parameters: value - The value from the last binding in the chain. Parameters: ftCache - The feature type cache. Parameters: bwFactory - Binding walker factory. |
asCollection | public static Collection asCollection(GeometryCollection gc)(Code) | | Wraps the elements of a geometry collection in a normal collection.
|
crs | public static CoordinateReferenceSystem crs(Node node)(Code) | | |
featureType | public static FeatureType featureType(Node node) throws Exception(Code) | | Turns a parse node instance into a geotools feature type.
For each child element and attribute of the node a geotools attribute
type is created. AttributeType#getName() is derived from the name of
the child element / attribute. Attribute#getType() is derived from the
class of the value of the child element / attribute.
Attribute types for the mandatory properties of any gml feature type
(description,name,boundedBy) are also created.
Parameters: node - The parse node / tree for the feature. A geotools feature type |
featureType | public static FeatureType featureType(XSDElementDeclaration element, BindingWalkerFactory bwFactory) throws Exception(Code) | | Turns a xml type definition into a geotools feature type.
Parameters: type - The xml schema tupe. The corresponding geotools feature type. |
parseFeature | public static Feature parseFeature(ElementInstance instance, Node node, Object value, FeatureTypeCache ftCache, BindingWalkerFactory bwFactory) throws Exception(Code) | | Utility method to implement Binding.parse for a binding which parses
into A feature.
Parameters: instance - The instance being parsed. Parameters: node - The parse tree. Parameters: value - The value from the last binding in the chain. Parameters: ftCache - The feature type cache. Parameters: bwFactory - Binding walker factory. A feature type. |
|
|