public class FeatureImpl extends ComplexAttributeImpl implements Feature
NOTE this is work in progress and at this time not really being used throughout the library.
iddescriptor, userData, value| Constructor and Description |
|---|
FeatureImpl(Collection<Property> properties,
AttributeDescriptor desc,
FeatureId id)
Create a Feature with the following content.
|
FeatureImpl(Collection<Property> properties,
FeatureType type,
FeatureId id)
Create a Feature with the following content.
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBounds()
Get the total bounds of this feature which is calculated by doing a union of the bounds of
each geometry this feature is associated with.
|
GeometryAttribute |
getDefaultGeometryProperty()
The default geometric attribute of the feature.
|
FeatureId |
getIdentifier()
Unique Identifier for the attribute.
|
FeatureType |
getType()
The type of the property.
|
void |
setDefaultGeometryProperty(GeometryAttribute defaultGeometry)
Sets the default geometric attribute of the feature.
|
getProperties, getProperties, getProperties, getProperty, getProperty, getValue, properties, setValue, setValueequals, getDescriptor, hashCode, parse, toString, validategetName, getUserData, isNillablegetProperties, getProperties, getProperties, getProperty, getProperty, getValue, setValue, validategetDescriptorgetName, getUserData, isNillable, setValuepublic FeatureImpl(Collection<Property> properties, AttributeDescriptor desc, FeatureId id)
properties - Collectio of Properties (aka Attributes and/or Associations)desc - Nested descriptorid - Feature IDpublic FeatureImpl(Collection<Property> properties, FeatureType type, FeatureId id)
properties - Collectio of Properties (aka Attributes and/or Associations)type - Type of feature to be createdid - Feature IDpublic FeatureType getType()
PropertyThe type contains information about the value or content of the property such as its java class.
This value is also available via getDescriptor().getType().
getType in interface AttributegetType in interface ComplexAttributegetType in interface FeaturegetType in interface PropertygetType in class ComplexAttributeImplProperty.getType()public FeatureId getIdentifier()
AttributeThis value is non-null in the case that getType().isIdentifiable() is
true.
getIdentifier in interface AttributegetIdentifier in interface FeaturegetIdentifier in class AttributeImplnull if the attribute is
non-identifiable.public BoundingBox getBounds()
getBounds in interface Featurepublic GeometryAttribute getDefaultGeometryProperty()
FeatureThis method returns null in the case where no such attribute exists.
getDefaultGeometryProperty in interface Featurenull.public void setDefaultGeometryProperty(GeometryAttribute defaultGeometry)
FeatureThis value must be an attribute which is already defined for the feature. In other words, this method can not be used to add a new attribute to the feature.
setDefaultGeometryProperty in interface FeaturedefaultGeometry - The new geomtric attribute.Copyright © 1996–2019 Geotools. All rights reserved.