org.geotools.feature
Class FeatureImpl
java.lang.Object
org.geotools.feature.PropertyImpl
org.geotools.feature.AttributeImpl
org.geotools.feature.ComplexAttributeImpl
org.geotools.feature.FeatureImpl
- All Implemented Interfaces:
- org.opengis.feature.Attribute, org.opengis.feature.ComplexAttribute, org.opengis.feature.Feature, org.opengis.feature.Property
public class FeatureImpl
- extends ComplexAttributeImpl
- implements org.opengis.feature.Feature
Temptative implementation of Feature.
NOTE this is work in progress and at this time not really being used throughout the library.
- Author:
- jdeolive, jgarnett
Constructor Summary |
FeatureImpl(java.util.Collection<org.opengis.feature.Property> properties,
org.opengis.feature.type.AttributeDescriptor desc,
org.opengis.filter.identity.FeatureId id)
Create a Feature with the following content. |
FeatureImpl(java.util.Collection<org.opengis.feature.Property> properties,
org.opengis.feature.type.FeatureType type,
org.opengis.filter.identity.FeatureId id)
Create a Feature with the following content. |
Method Summary |
org.opengis.geometry.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. |
org.opengis.feature.GeometryAttribute |
getDefaultGeometryProperty()
|
org.opengis.filter.identity.FeatureId |
getIdentifier()
|
org.opengis.feature.type.FeatureType |
getType()
|
void |
setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute defaultGeometry)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.feature.ComplexAttribute |
getProperties, getProperties, getProperties, getProperty, getProperty, getValue, setValue, validate |
Methods inherited from interface org.opengis.feature.Attribute |
getDescriptor |
Methods inherited from interface org.opengis.feature.Property |
getName, getUserData, isNillable, setValue |
FeatureImpl
public FeatureImpl(java.util.Collection<org.opengis.feature.Property> properties,
org.opengis.feature.type.AttributeDescriptor desc,
org.opengis.filter.identity.FeatureId id)
- Create a Feature with the following content.
- Parameters:
properties
- Collectio of Properties (aka Attributes and/or Associations)desc
- Nested descriptorid
- Feature ID
FeatureImpl
public FeatureImpl(java.util.Collection<org.opengis.feature.Property> properties,
org.opengis.feature.type.FeatureType type,
org.opengis.filter.identity.FeatureId id)
- Create a Feature with the following content.
- Parameters:
properties
- Collectio of Properties (aka Attributes and/or Associations)type
- Type of feature to be createdid
- Feature ID
getType
public org.opengis.feature.type.FeatureType getType()
- Specified by:
getType
in interface org.opengis.feature.Attribute
- Specified by:
getType
in interface org.opengis.feature.ComplexAttribute
- Specified by:
getType
in interface org.opengis.feature.Feature
- Specified by:
getType
in interface org.opengis.feature.Property
- Overrides:
getType
in class ComplexAttributeImpl
getIdentifier
public org.opengis.filter.identity.FeatureId getIdentifier()
- Specified by:
getIdentifier
in interface org.opengis.feature.Attribute
- Specified by:
getIdentifier
in interface org.opengis.feature.Feature
- Overrides:
getIdentifier
in class AttributeImpl
getBounds
public org.opengis.geometry.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.
- Specified by:
getBounds
in interface org.opengis.feature.Feature
- Returns:
- An Envelope containing the total bounds of this Feature.
getDefaultGeometryProperty
public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
- Specified by:
getDefaultGeometryProperty
in interface org.opengis.feature.Feature
setDefaultGeometryProperty
public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute defaultGeometry)
- Specified by:
setDefaultGeometryProperty
in interface org.opengis.feature.Feature
Copyright © 1996-2010 Geotools. All Rights Reserved.