|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeometryAttributeType
A CoordinateSystem aware Geometry AttributeType.
This class is the bridge between our FeatureType/AttributeType classes and the CoordianteSystem.
This also allows access to the GeometryFactory used by this GeometryAttributeType parse( Object ) method.
With JTS14 you can use GeometryFactory to to provide your own CoordianteSequence representation. CoordinateSystem is given the responsiblity of providing this class for the GeometryAttributeType as only it knows the CoordianteSequence class and PercisionModel mosted suitable. It also may know an SRID number suitable for the GeometryFactory to use when constructing new Geometry objects.
It is recomended that the CoordinateSystem GeometryFactory also supply the CoordinateSystem as the value for Geometry.getUserData().
Method Summary | |
---|---|
Class |
getBinding()
Type must be an sub type of Geometry.class. |
CoordinateReferenceSystem |
getCoordinateSystem()
Retrieve the CS_CoordinateSystem used by this GeometryAttributeType. |
GeometryFactory |
getGeometryFactory()
Deprecated. Please use GeometrFactory associated with your FeatureFactory using the hinting system. |
Filter |
getRestriction()
Restriction is assumed to be in agreement with Geometry class indicated. |
boolean |
isGeometry()
Deprecated. replace with type instnaceof GeometryAttribtueType |
Methods inherited from interface GeometryDescriptor |
---|
getCoordinateReferenceSystem, getType |
Method Detail |
---|
Class getBinding()
If this was java I would say Class
getBinding
in interface AttributeType
AttributeType.getBinding()
Filter getRestriction()
getRestriction
in interface AttributeType
getRestriction
in interface PrimativeAttributeType
AttributeType.getRestriction()
CoordinateReferenceSystem getCoordinateSystem()
OUT OF DATE: The class CoordinateSystem holds a GeometryFactory that is used for creating new content. By extension this includes the SRID, PercisionModel and CoordinateSequenceFactory information.
GeometryFactory getGeometryFactory()
Replace with the following code:
Map hints = new HashMap();
hints.put( CoordinateReferneceSystem.class, type.getCoordinateSystem() );
GeometryFactory gf = FactoryFinder.getGeometryFactory( Map hints );
// You can now use gf create methods
boolean isGeometry()
true
org.geotools.feature.AttributeType#isGeometry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |