public interface GeometryAttribute extends Attribute
The type of the value of the attribute is an arbitrary object and is implementation dependent.
Implementations of this interface may wish to type narrow
Property.getValue() to be
specific about the type geometry. For instance to return explicitly a JTS geometry.
Past a regular attribute, GeometryAttribute provides a method for obtaining the bounds of the
setBounds(BoundingBox) method is used to
explicitly set the bounds which can be useful in situations where the data source stores the
bounds explicitly along with the geometry.
|Modifier and Type||Method and Description|
The bounds of the attribute.
Override and type narrow to GeometryDescriptor.
Override and type narrow to GeometryType.
Sets the bounds of the geometry.
This value should be derived unless explicitly set via
In the case that the underlying geometry is
null, this method should return
an empty bounds as opposed to returning
void setBounds(BoundingBox bounds)
This method should be used when the bounds is pre-computed and there is no need to derive it from scratch. This is mostly only relevant to data sources which store the bounds along with the geometry.
Setting the bounds to
null is allowed and will force the bounds to be derived
manually on the next call to
bounds- The bounds of the attribute.
Copyright © 1996–2022 Geotools. All rights reserved.