public abstract class AbstractIndexedDataSet
extends java.lang.Object
| Constructor and Description |
|---|
AbstractIndexedDataSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFeature(AbstractFeature feature)
Adds a new feature to index data set.
|
boolean |
appendFeature(AbstractFeature feature)
Appends a feature to index data set.
|
AbstractFeature |
getAbstractFeature(java.lang.String featKey)
Returns the feature associated to the given key Returns the abstract feature
|
AbstractDataSet |
getDataSet() |
AbstractDataSetLayer |
getDataSetLayer()
Returns the layer owning this object
|
java.util.Set<GeoObject> |
getFeatures(java.awt.geom.Area area)
Returns all the features that interact with the given area
|
java.util.List<GeoObject> |
getFeatures(java.awt.geom.Point2D point, double tolerance)
Returns all the features interacting with the given point used the specified tolerance as buffer around the point
|
java.util.List<GeoObject> |
getFeatures(java.awt.geom.Rectangle2D mbr)
Returns all the features that interact with the given MBR
|
java.util.List<GeoObject> |
getFeaturesByAttribute(java.awt.geom.Rectangle2D mbr, Field attribute)
Returns the feature that interact with input mbr and have an attribute value equal to input attribute.
|
AbstractSpatialIndex |
getSpatialindex() |
abstract AbstractFeature |
identify(java.awt.geom.Point2D point, double tolerance, int granularity)
Returns a feature that is located at the given point using the specified tolerance
|
void |
redo(EditChangeEvent change)
Restores the last edit operation.
|
boolean |
removeFeature(AbstractFeature feature)
Removes feature from index data set.
|
void |
setDataSetLayer(AbstractDataSetLayer dataSetLayer) |
void |
setSpatialIndex(AbstractSpatialIndex index) |
void |
undo(EditChangeEvent change)
Removes the last edit operation.
|
boolean |
updateSpatialAttribute(java.lang.Object key, java.lang.Object spatialChange)
Updates feature of index data set.
|
public AbstractDataSet getDataSet()
public AbstractSpatialIndex getSpatialindex()
public void setSpatialIndex(AbstractSpatialIndex index)
index -public boolean addFeature(AbstractFeature feature) throws java.lang.Exception
feature -java.lang.Exceptionpublic boolean appendFeature(AbstractFeature feature) throws java.lang.Exception
feature -java.lang.Exceptionpublic boolean removeFeature(AbstractFeature feature) throws java.lang.Exception
feature -java.lang.Exception
public boolean updateSpatialAttribute(java.lang.Object key,
java.lang.Object spatialChange)
throws java.lang.Exception
key -spatialChange -java.lang.Exceptionpublic java.util.List<GeoObject> getFeatures(java.awt.geom.Point2D point, double tolerance)
point -tolerance -public java.util.List<GeoObject> getFeatures(java.awt.geom.Rectangle2D mbr)
mbr -public java.util.Set<GeoObject> getFeatures(java.awt.geom.Area area)
area -public AbstractFeature getAbstractFeature(java.lang.String featKey)
featKey - a feature or null if the feature was not found for the key
public void undo(EditChangeEvent change)
throws java.lang.Exception
change -java.lang.Exception
public void redo(EditChangeEvent change)
throws java.lang.Exception
change -java.lang.Exceptionpublic abstract AbstractFeature identify(java.awt.geom.Point2D point, double tolerance, int granularity)
point -tolerance -granularity -public void setDataSetLayer(AbstractDataSetLayer dataSetLayer)
public AbstractDataSetLayer getDataSetLayer()
public java.util.List<GeoObject> getFeaturesByAttribute(java.awt.geom.Rectangle2D mbr, Field attribute)
mbr -attribute - should of same type as feature attribute.