|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeometryAttribute
Represent a Geometry as an attribute content.
This class is cotton candy and does not add any new modelling ability beyond what could be accomplished by type narrowing an Attribute to return one of our Geometry classes based on the ISO 19107 specification.
What this class does allows is a bridge to applications making use of a more simple model of geometry. Two are in popular use:
Method Summary | |
---|---|
BoundingBox |
getBounds()
The bounds of this geometry. |
CoordinateReferenceSystem |
getCRS()
The Coordinate Reference System of this geometry. |
GeometryType |
getType()
GeometryType should be configured with a Geometry for getJavaType. |
Object |
getValue()
Retrieve Geometry. |
void |
setBounds(BoundingBox bounds)
Although this is tipically a derrived quantity of the contents, this value is often available in precomputed form from data providers. |
void |
setCRS(CoordinateReferenceSystem crs)
Sets the coordinate reference system for the attribute. |
void |
setValue(Object geom)
Set provided Geometry We may want to relax this to Object to allow for JTS or GeoAPI based objects for the first release. |
Methods inherited from interface Attribute |
---|
getDescriptor, getID, nillable, operation |
Methods inherited from interface Property |
---|
descriptor, name |
Method Detail |
---|
CoordinateReferenceSystem getCRS()
This may not be needed when using GeoAPI Geometry, it would be a simple helper method for: ((Geometry)getValue()).getCoordinateReferenceSystem().
As it stands this method will help transition code over from JTS as GeoAPI Geometry implementations are made avaialble.
void setCRS(CoordinateReferenceSystem crs)
BoundingBox getBounds()
This may not be needed when using GeoAPI Geometry, it would be a simple helper method for: ((Geometry)getValue()).getEnvelope().
As it stands this method will help transition code over from JTS as GeoAPI Geometry implementations are made avaialble.
void setBounds(BoundingBox bounds)
This method allows a data provider to store the bounds information associated with the contents of this geometry attribute.
bounds
- GeometryType getType()
Q: If needed a set of well-known GeometryType can be constructed, may be needed to report CRS and Bounds constraints on data? A: It was needed when we switched over to Attribute
getType
in interface Attribute
getType
in interface Property
Object getValue()
We may want to relax this to Object to allow for JTS or GeoAPI based objects for the first release.
getValue
in interface Attribute
void setValue(Object geom)
We may want to relax this to Object to allow for JTS or GeoAPI based objects for the first release.
setValue
in interface Attribute
geom
- Object of the class indicated by getType().getBinding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |