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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
abstract void
delete()
Thedelete()
method is called when a spatial data source is being deleted in order to free and delete all resources used.abstract DataSet
extractAttributes
(QueryFilter[] queryFilters, Attribute[] attributes, Map<String, ?> extraParameters) abstract Attribute[]
abstract SpatialDataSourceInfo
Returns the spatial data source info that was used to initialize this spatial data source.abstract Rectangle
abstract String
getName()
Returns the name of the current spatial data source.abstract void
init
(SpatialDataSourceInfo dataSourceInfo) protected boolean
abstract void
update()
protected void
validateProjection
(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()
-