Class SpatialDataSource

java.lang.Object
com.kheops.jmap.server.datasources.SpatialDataSource
Direct Known Subclasses:
RasterDataSource, VectorDataSource

public abstract class SpatialDataSource extends Object
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 Details

    • SpatialDataSource

      public SpatialDataSource()
  • Method Details

    • getExtent

      public abstract Rectangle getExtent() throws Exception
      Throws:
      Exception
    • getDataSourceInfo

      public abstract SpatialDataSourceInfo getDataSourceInfo()
      Returns the spatial data source info that was used to initialize this spatial data source.
      Returns:
      the related SpatialDataSourceInfo instance.
    • getAttributeMetaData

      public abstract Attribute[] getAttributeMetaData() throws Exception
      Throws:
      Exception
    • getName

      public abstract String getName()
      Returns the name of the current spatial data source.
      Returns:
      the name of the spatial data source.
    • update

      public abstract void update() throws Exception
      Throws:
      Exception
    • init

      public abstract void init(SpatialDataSourceInfo dataSourceInfo) throws Exception
      Throws:
      Exception
    • close

      public abstract void close() throws Exception
      Throws:
      Exception
    • delete

      public abstract void delete() throws Exception
      The delete() 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

      protected void validateProjection(QueryFilter[] queryFilters)
    • isCancelled

      protected boolean isCancelled()