Class RasterFormat

java.lang.Object
org.apache.sis.internal.sql.postgis.RasterFormat
Direct Known Subclasses:
RasterReader, RasterWriter

abstract class RasterFormat extends Object
Base class of reader and writer of rasters encoded in PostGIS Well Known Binary (WKB) format. This format is specific to PostGIS 2 (this is not yet an OGC standard at the time of writing this class), but it can nevertheless be used elsewhere. We do not use "WKB" in the class name because this class would be more accurately named "PostGIS raster format" rather than "Well Known Binary raster format".

Multi-threading

This class is not safe for multi-threading. Furthermore, if a non-null InfoStatements has been specified to the constructor, then this object is valid only as long as the caller holds a connection to the database.
Since:
1.2
Version:
1.2
See Also:
  • Field Details

    • ANCHOR

      static final org.opengis.referencing.datum.PixelInCell ANCHOR
      Whether the "grid to CRS" transform maps to pixel center or pixel corner. WKB specification said that the "grid to CRS" translation coefficients maps to upper-left pixel's upper-left corner.
    • spatialRefSys

      final InfoStatements spatialRefSys
      The object to use for building CRS from or mapping a CRS to the "spatial_ref_sys" table. Can be null, which means to use the
      invalid reference
      #srid
      as EPSG codes.
      See Also:
  • Constructor Details

    • RasterFormat

      RasterFormat(InfoStatements spatialRefSys)
      Creates a new reader or writer.
      Parameters:
      spatialRefSys - the object to use for building CRS from or mapping CRS to the "spatial_ref_sys" table, or null for using the SRID as EPSG codes.