public class GML3ParsingUtils extends Object
Constructor and Description |
---|
GML3ParsingUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
dimensions(Node node)
Returns the number of dimensions for the specified node, eventually recursing up to find the
parent node that has the indication of the dimensions (normally the top-most geometry element
has it, not the posList).
|
static SimpleFeatureType |
featureType(XSDElementDeclaration element,
BindingWalkerFactory bwFactory)
Turns a xml type definition into a geotools feature type.
|
static CurvedGeometryFactory |
getCurvedGeometryFactory(ArcParameters arcParameters,
GeometryFactory gFactory,
CoordinateSequence cs)
Returns a curved geometry factory given the linearization constraints, the original factory,
and a coordinate sequence representing the control points of a curved geometry
|
static SimpleFeature |
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.
|
public static SimpleFeature parseFeature(ElementInstance instance, Node node, Object value, FeatureTypeCache ftCache, BindingWalkerFactory bwFactory) throws Exception
instance
- The instance being parsed.node
- The parse tree.value
- The value from the last binding in the chain.ftCache
- The feature type cache.bwFactory
- Binding walker factory.Exception
public static SimpleFeatureType featureType(XSDElementDeclaration element, BindingWalkerFactory bwFactory) throws Exception
Exception
public static int dimensions(Node node)
public static CurvedGeometryFactory getCurvedGeometryFactory(ArcParameters arcParameters, GeometryFactory gFactory, CoordinateSequence cs)
Copyright © 1996–2023 Geotools. All rights reserved.