public class SpatialDataset
extends java.lang.Object
Constructor and Description |
---|
SpatialDataset()
empty constructor for SpatialDataset
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String geomType,
org.opengis.feature.simple.SimpleFeature 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.opengis.feature.simple.SimpleFeature 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.
|
public SpatialDataset() throws java.io.IOException
java.io.IOException
public void add(java.lang.String geomType, org.opengis.feature.simple.SimpleFeature 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.opengis.feature.simple.SimpleFeature 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.IOException
public void save()
Copyright © 2020 Regents of the University of California. All Rights Reserved.