Class SpatialDataSource
java.lang.Object
com.kheops.jmap.server.datasources.SpatialDataSource
- Direct Known Subclasses:
RasterDataSource,VectorDataSource
This abstract class represents a source of spatial data. Spatial data can be
either vector data or raster data. Spatial data sources are used in
JMapServer to read spatial data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract voiddelete()Thedelete()method is called when a spatial data source is being deleted in order to free and delete all resources used.abstract DataSetextractAttributes(QueryFilter[] queryFilters, Attribute[] attributes, Map<String, ?> extraParameters) abstract Attribute[]abstract SpatialDataSourceInfoReturns the spatial data source info that was used to initialize this spatial data source.abstract Rectangleabstract StringgetName()Returns the name of the current spatial data source.abstract voidinit(SpatialDataSourceInfo dataSourceInfo) protected booleanabstract voidupdate()protected voidvalidateProjection(QueryFilter[] queryFilters)
-
Constructor Details
-
SpatialDataSource
public SpatialDataSource()
-
-
Method Details
-
getExtent
- Throws:
Exception
-
getDataSourceInfo
Returns the spatial data source info that was used to initialize this spatial data source.- Returns:
- the related SpatialDataSourceInfo instance.
-
getAttributeMetaData
- Throws:
Exception
-
getName
Returns the name of the current spatial data source.- Returns:
- the name of the spatial data source.
-
update
- Throws:
Exception
-
init
- Throws:
Exception
-
close
- Throws:
Exception
-
delete
Thedelete()method is called when a spatial data source is being deleted in order to free and delete all resources used.- Throws:
Exception
-
extractAttributes
public abstract DataSet extractAttributes(QueryFilter[] queryFilters, Attribute[] attributes, Map<String, ?> extraParameters) throws Exception- Throws:
Exception
-
validateProjection
-
isCancelled
protected boolean isCancelled()
-