@Api(allMethods=true) public interface VectorLayerService extends LayerService, GeomajasConstant
PipelineService) to make them configurable.GeomajasConstant.GeomajasConstantImplCLASSPATH_URL_PREFIX, FEATURE_INCLUDE_ALL, FEATURE_INCLUDE_ATTRIBUTES, FEATURE_INCLUDE_GEOMETRY, FEATURE_INCLUDE_LABEL, FEATURE_INCLUDE_NONE, FEATURE_INCLUDE_STYLE| Modifier and Type | Method and Description |
|---|---|
List<Attribute<?>> |
getAttributes(String layerId,
String attributePath,
Filter filter)
Return the list of possible attribute values.
|
com.vividsolutions.jts.geom.Envelope |
getBounds(String layerId,
CoordinateReferenceSystem crs,
Filter filter)
Retrieve the bounds of the specified features.
|
List<InternalFeature> |
getFeatures(String layerId,
CoordinateReferenceSystem crs,
Filter filter,
NamedStyleInfo style,
int featureIncludes)
Retrieve all the features from the model that this filter accepts.
|
List<InternalFeature> |
getFeatures(String layerId,
CoordinateReferenceSystem crs,
Filter filter,
NamedStyleInfo style,
int featureIncludes,
int offset,
int maxResultSize)
Note that not all vector layers may support the offset or maxResultSize parameters! Check the individual
layer documentation to be certain.
|
List<InternalFeature> |
getFeatures(String layerId,
CoordinateReferenceSystem crs,
Filter filter,
NamedStyleInfo style,
int featureIncludes,
int offset,
int maxResultSize,
boolean forcePaging)
Note that not all vector layers may support the offset or maxResultSize parameters! Check the individual layer
documentation to be certain.
|
InternalTile |
getTile(TileMetadata tileMetadata)
Get a vector tile for the request tile.
|
void |
saveOrUpdate(String layerId,
CoordinateReferenceSystem crs,
List<InternalFeature> oldFeatures,
List<InternalFeature> newFeatures)
Update an existing feature of the model or creates a new feature.
|
getCrsvoid saveOrUpdate(String layerId, CoordinateReferenceSystem crs, List<InternalFeature> oldFeatures, List<InternalFeature> newFeatures) throws GeomajasException
layerId - id of layer which contains feature to updatecrs - crs which should be used for the geometry in the featureoldFeatures - old features to update or delete, in the same order as in newFeatures (delete when null in
newFeatures). The list may have some null elements added when it is shorter than newFeatures.newFeatures - new version of features, indicating a need to create or update (create when entry is null in
oldFeatures). The items in the list are updated with the updated InternalFeature. The list may have
some null elements added when it is shorter than oldFeatures.GeomajasException - oopsList<InternalFeature> getFeatures(String layerId, CoordinateReferenceSystem crs, Filter filter, NamedStyleInfo style, int featureIncludes) throws GeomajasException
layerId - id of layer to get features fromcrs - which should be used for the geometries in the featuresfilter - filter to be appliedstyle - style to applyfeatureIncludes - indicate which data to include in the featuresGeomajasException - oopsList<InternalFeature> getFeatures(String layerId, CoordinateReferenceSystem crs, Filter filter, NamedStyleInfo style, int featureIncludes, int offset, int maxResultSize) throws GeomajasException
Note that not all vector layers may support the offset or maxResultSize parameters! Check the individual layer documentation to be certain.
Retrieve all the features from the model that this filter accepts.
layerId - id of layer to get features fromcrs - which should be used for the geometries in the featuresfilter - filter to be appliedstyle - style to applyfeatureIncludes - indicate which data to include in the featuresoffset - Skip the first 'offset' features in the result. This is meant for paging.maxResultSize - Limit the result to a maximum number of features. Can be used for paging.GeomajasException - oopsList<InternalFeature> getFeatures(String layerId, CoordinateReferenceSystem crs, Filter filter, NamedStyleInfo style, int featureIncludes, int offset, int maxResultSize, boolean forcePaging) throws GeomajasException
Note that not all vector layers may support the offset or maxResultSize parameters! Check the individual layer documentation to be certain.
SECURITY WARNING: if paging is forced at the layer level (forcePaging=true), callers are able to count the number of invisible features, creating a possible security hazard !
Retrieve all the features from the model that this filter accepts.
layerId - id of layer to get features fromcrs - which should be used for the geometries in the featuresfilter - filter to be appliedstyle - style to applyfeatureIncludes - indicate which data to include in the featuresoffset - Skip the first 'offset' features in the result. This is meant for paging.maxResultSize - Limit the result to a maximum number of features. Can be used for paging.forcePaging - Forces paging at layer level. This optimizes performance at the expense of (possibly) fewer
results being returned than asked for because of subsequent security filtering.GeomajasException - oopscom.vividsolutions.jts.geom.Envelope getBounds(String layerId, CoordinateReferenceSystem crs, Filter filter) throws GeomajasException
layerId - id of layer to get bounds forcrs - crs which should be used for the bounding boxfilter - filter to be appliedGeomajasException - oopsList<Attribute<?>> getAttributes(String layerId, String attributePath, Filter filter) throws GeomajasException
layerId - id of layer to get objects fromattributePath - attribute path to get objects forfilter - filter to be appliedGeomajasException - oopsInternalTile getTile(TileMetadata tileMetadata) throws GeomajasException
tileMetadata - description of the tileGeomajasException - oopsCopyright © 2015 Geosparc. All Rights Reserved.