@Api(allMethods=true) @UserImplemented public interface VectorLayer extends Layer<VectorLayerInfo>
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Object feature)
Creates a new feature.
|
void |
delete(String featureId)
Deletes a feature of the model.
|
com.vividsolutions.jts.geom.Envelope |
getBounds()
Return the bounds of this model.
|
com.vividsolutions.jts.geom.Envelope |
getBounds(Filter filter)
Retrieve the bounds of the specified features.
|
Iterator<?> |
getElements(Filter filter,
int offset,
int maxResultSize)
Retrieve all the features from the model that this filter accepts.
|
FeatureModel |
getFeatureModel()
Return the feature model of this layer model.
|
boolean |
isCreateCapable()
Indicate whether the layer is capable of creating new features.
|
boolean |
isDeleteCapable()
Indicate whether the layer is capable of creating new features.
|
boolean |
isUpdateCapable()
Indicate whether the layer is capable of updating features.
|
Object |
read(String featureId)
Reads an existing feature of the model.
|
Object |
saveOrUpdate(Object feature)
Update an existing feature of the model or creates a new feature.
|
getCrs, getId, getLayerInfoboolean isCreateCapable()
boolean isUpdateCapable()
boolean isDeleteCapable()
FeatureModel getFeatureModel()
Object create(Object feature) throws LayerException
feature - feature value objectLayerException - oopsObject saveOrUpdate(Object feature) throws LayerException
feature - feature value objectLayerException - oopsObject read(String featureId) throws LayerException
ExceptionCode.LAYER_MODEL_FEATURE_NOT_FOUND is thrown.featureId - unique id of the featureLayerException - when reading failed, for example ExceptionCode.LAYER_MODEL_FEATURE_NOT_FOUNDvoid delete(String featureId) throws LayerException
featureId - unique id of the featureLayerException - oopsIterator<?> getElements(Filter filter, int offset, int maxResultSize) throws LayerException
Note that not all vector layers may support the offset or maxResultSize parameters! Check the individual layer documentation to be certain.
filter - filter to be appliedoffset - Skip the first 'offset' features in the result. This is meant for paging.maxResultSize - Limit the result to a maximum number of features. Used for paging. Zero for unlimited.LayerException - oopscom.vividsolutions.jts.geom.Envelope getBounds(Filter filter) throws LayerException
filter - filter to be appliedLayerException - oopscom.vividsolutions.jts.geom.Envelope getBounds()
throws LayerException
LayerException - oopsCopyright © 2015 Geosparc. All Rights Reserved.