Class AbstractGridFormat

  • All Implemented Interfaces:
    Format
    Direct Known Subclasses:
    ArcGridFormat, BaseGDALGridFormat, GeoPackageFormat, GeoTiffFormat, GrassCoverageFormat, ImageMosaicFormat, ImagePyramidFormat, JP2KFormat, MBTilesFormat, NetCDFFormat, PGRasterFormat, TPKFormat, UnknownFormat, WorldImageFormat

    public abstract class AbstractGridFormat
    extends Object
    implements Format
    AbstractGridFormat is a convenience class so subclasses only need to populate a Map class and set the read and write parameter fields.

    For example the ArcGridFormat has the following method which sets up all the required information: private void setInfo(){ HashMap info=new HashMap(); info.put("name", "ArcGrid"); info.put("description", "Arc Grid Coverage Format"); info.put("vendor", "Geotools"); info.put("docURL", "http://gdal.velocet.ca/projects/aigrid/index.html"); info.put("version", "1.0"); mInfo=info; readParameters=new GeneralParameterDescriptor[2]; readParameters[0]=ArcGridOperationParameter.getGRASSReadParam(); readParameters[0]=ArcGridOperationParameter.getCompressReadParam(); writeParameters=new GeneralParameterDescriptor[2]; writeParameters[0]=ArcGridOperationParameter.getGRASSWriteParam(); writeParameters[0]=ArcGridOperationParameter.getCompressWriteParam(); }

    Author:
    jeichar, Simone Giannecchini, GeoSolutions