|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.spatial.SpatialDataset
public class SpatialDataset
Class providing direct read/write access to the persistent spatial cache.
| Constructor Summary | |
|---|---|
SpatialDataset()
empty constructor for SpatialDataset |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String geomType,
org.geotools.feature.Feature feature)
Adds a new feature (from a SpatialDocument) This is faster than insertOrUpdate but relying on this method might cause duplication of docids in the spatial cache. |
void |
delete(java.lang.String geomType,
java.lang.String docid)
Deletes given docid from the spatial cache. |
void |
insertOrUpdate(java.lang.String geomType,
org.geotools.feature.Feature feature,
java.lang.String docid)
Either inserts or updates the spatial cache with the new spatial document depending on if it currently exists. |
void |
save()
Saves the SpatialDataset object to the spatial cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialDataset()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void add(java.lang.String geomType,
org.geotools.feature.Feature feature)
geomType - The kind of feature to be added. Currently "polygon" and "point" supported.feature - The geotools feature to be added to the spatial cache.
public void delete(java.lang.String geomType,
java.lang.String docid)
throws java.io.IOException
geomType - The kind of feature to be added. Currently "polygon" and "point" supported.docid - The document to be deleted from the spatial cache.
java.io.IOException
public void insertOrUpdate(java.lang.String geomType,
org.geotools.feature.Feature feature,
java.lang.String docid)
throws java.io.IOException
geomType - The kind of feature to be added. Currently "polygon" and "point" supported.feature - The geotools feature to be added to the spatial cache.docid - The document id to be inserted or updated. Used to filter for existing features.
java.io.IOExceptionpublic void save()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||