Package org.geotools.gce.arcgrid
Class ArcGridFormat
Object
AbstractGridFormat
ArcGridFormat
- All Implemented Interfaces:
Format
An implementation a
Format
for the ASCII grid ESRI and GRASS format.- Author:
- Daniele Romagnoli, Simone Giannecchini (simboss)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultParameterDescriptor<Boolean>
Indicates whether we ask the plugin to resample the coverage to have dx==dystatic final DefaultParameterDescriptor<Boolean>
Indicates whether the arcgrid data must be written in GRASS formatFields inherited from class AbstractGridFormat
BACKGROUND_COLOR, BANDS, DECIMATION_POLICY, ELEVATION, FOOTPRINT_BEHAVIOR, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, INTERPOLATION, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, RESCALE_PIXELS, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_JAI_IMAGEREAD, writeParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tells me if thisFormat
can read the providedinput
.Retrieves the default instance for theArcGridFormat
of theGeoToolsWriteParams
to control the writing process.Gets aGridCoverageReader
for this format able to create coverages out of thesource
object.Gets aGridCoverageReader
for this format able to create coverages out of thesource
object using the providedhints
.Retrieves aGridCoverageWriter
suitable for writing to the provideddestination
with this format.Call the accepts() method before asking for a writer to determine if the current object is supported.Methods inherited from class AbstractGridFormat
accepts, equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Format
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
-
Field Details
-
GRASS
Indicates whether the arcgrid data must be written in GRASS format -
FORCE_CELLSIZE
Indicates whether we ask the plugin to resample the coverage to have dx==dy
-
-
Constructor Details
-
ArcGridFormat
public ArcGridFormat()Creates an instance and sets the metadata.
-
-
Method Details
-
getReader
Description copied from class:AbstractGridFormat
Gets aGridCoverageReader
for this format able to create coverages out of thesource
object.In case this
Format
cannot reader the providedsource
objectnull
is returned.- Specified by:
getReader
in classAbstractGridFormat
- Parameters:
source
- The source object to parse.- Returns:
- A reader for this
Format
or null. - See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object source)
-
getWriter
Description copied from class:AbstractGridFormat
Retrieves aGridCoverageWriter
suitable for writing to the provideddestination
with this format.In case no writers are available
null
is returned.- Specified by:
getWriter
in classAbstractGridFormat
- Parameters:
destination
- The destinatin where to write.- Returns:
- A
GridCoverageWriter
suitable for writing to the provideddestination
with this format. - See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object destination)
-
getWriter
Description copied from class:AbstractGridFormat
Call the accepts() method before asking for a writer to determine if the current object is supported.- Specified by:
getWriter
in classAbstractGridFormat
- Parameters:
destination
- the destination object to write a WorldImage tohints
-Hints
to control the internal machinery.- Returns:
- a new WorldImageWriter for the destination
- See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object destination,Hints hints)
-
accepts
Description copied from class:AbstractGridFormat
Tells me if thisFormat
can read the providedinput
.- Specified by:
accepts
in classAbstractGridFormat
- Parameters:
input
- The input object to test for suitability.hints
-Hints
to control the accepts internal machinery.- Returns:
- True if this format can read this object, False otherwise.
- See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#accepts(Object input)
-
getReader
Description copied from class:AbstractGridFormat
Gets aGridCoverageReader
for this format able to create coverages out of thesource
object using the providedhints
.In case this
Format
cannot reader the providedsource
objectnull
is returned.- Specified by:
getReader
in classAbstractGridFormat
- Parameters:
source
- The source object to parse. *hints
- TheHints
to use when trying to instantiate this reader.- Returns:
- A reader for this
Format
or null. - See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, Hints)
-
getDefaultImageIOWriteParameters
Retrieves the default instance for theArcGridFormat
of theGeoToolsWriteParams
to control the writing process.- Specified by:
getDefaultImageIOWriteParameters
in classAbstractGridFormat
- Returns:
- a default instance for the
ArcGridFormat
of theGeoToolsWriteParams
to control the writing process.
-