public class ArcgisRestDataSource extends VectorDataSource
EMPTY_ATTRIBUTE_ARRAY, EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
ArcgisRestDataSource() |
Modifier and Type | Method and Description |
---|---|
AttributeStat[] |
calculateStats(QueryFilter[] queryFilters,
Attribute[] attributes) |
void |
close() |
void |
delete()
The
delete() method is called when a spatial data source is being deleted
in order to free and delete all resources used. |
DataSet |
extractAttributes(QueryFilter[] queryFilters,
Attribute[] attributes,
java.util.Map<java.lang.String,?> extraParameters)
This method is called when a user in JMAP ADMIN clicks on an attribute to
view the data.
|
JMapGeoElement[] |
extractElements(QueryFilter[] queryFilters,
Attribute[] attributes) |
Attribute[] |
getAttributeMetaData() |
int |
getCount(QueryFilter[] filters)
Uses REST to get the count from the esri service server and sets it to the
spatial datasource info
|
SpatialDataSourceInfo |
getDataSourceInfo()
Returns the spatial data source info that was used to initialize this spatial data source.
|
Rectangle |
getExtent() |
Rectangle |
getExtent(QueryFilter[] filter) |
java.lang.String |
getName()
Returns the name of the current spatial data source.
|
void |
init(SpatialDataSourceInfo info) |
void |
update() |
appendAttributeFilter, applyQueryFilters, extractElements
isCancelled, validateProjection
public void init(SpatialDataSourceInfo info) throws java.lang.Exception
init
in class SpatialDataSource
java.lang.Exception
public AttributeStat[] calculateStats(QueryFilter[] queryFilters, Attribute[] attributes) throws java.lang.Exception
calculateStats
in class VectorDataSource
java.lang.Exception
public JMapGeoElement[] extractElements(QueryFilter[] queryFilters, Attribute[] attributes) throws java.lang.Exception
extractElements
in class VectorDataSource
java.lang.Exception
public int getCount(QueryFilter[] filters) throws java.lang.Exception
getCount
in class VectorDataSource
java.lang.Exception
public void close() throws java.lang.Exception
close
in class SpatialDataSource
java.lang.Exception
public void delete() throws java.lang.Exception
SpatialDataSource
delete()
method is called when a spatial data source is being deleted
in order to free and delete all resources used.delete
in class SpatialDataSource
java.lang.Exception
public DataSet extractAttributes(QueryFilter[] queryFilters, Attribute[] attributes, java.util.Map<java.lang.String,?> extraParameters) throws java.lang.Exception
extractAttributes
in class SpatialDataSource
java.lang.Exception
public Attribute[] getAttributeMetaData() throws java.lang.Exception
getAttributeMetaData
in class SpatialDataSource
java.lang.Exception
public SpatialDataSourceInfo getDataSourceInfo()
SpatialDataSource
getDataSourceInfo
in class SpatialDataSource
public Rectangle getExtent() throws java.lang.Exception
getExtent
in class SpatialDataSource
java.lang.Exception
public java.lang.String getName()
SpatialDataSource
getName
in class SpatialDataSource
public void update() throws java.lang.Exception
update
in class SpatialDataSource
java.lang.Exception
public Rectangle getExtent(QueryFilter[] filter) throws java.lang.Exception
getExtent
in class VectorDataSource
java.lang.Exception