Package ca.spatial.reportwriter
Class RasterRemapReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.RasterRemapReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
Create a raster output file, based on remapping codes in
from a raster input file.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spatial.reportwriter.Report
Report.GetNodesAt
-
Field Summary
FieldsFields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionRasterRemapReport(String filename, String title, String rasterIn, AttributeStore store, String labelColumn, String query, int period)
-
Method Summary
Modifier and TypeMethodDescriptionca.spatial.reportwriter.Report.DataCache
doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)
The method used by the report writer to format the requested report.int
getQuery()
String[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.void
setLabelColumn(String labelColumn)
void
setPeriod(int period)
void
void
Methods inherited from class ca.spatial.reportwriter.Report
addDefaultParam, chartImg, compareTo, csvLink, doesAnyTypes, doesCSV, doesGIF, doesHTML, doesPNG, doesType, encodeFileURL, encodeURL, endMainContent, escapeRegexChars, footer, formatColumnHeadings, formatColumnHeadings, getAdditionalFiles, getAttributeStore, getBasepart, getBasepart, getDefaultFilename, getDisplayFormat, getExtension, getExtension, getFilename, getFolderpart, getFolderpart, getLength, getNamepart, getNamepart, getPathToRoot, getReportFor, getTitle, header, htmlText, indexLink, interpolateParams, isDhandler, isIndexed, isSelected, parentIndex, patternToRegex, setAttributeStore, setDefaultParams, setDisplayFormat, setIndexed, setSelected, setTitle, toString, uniqueLabels
-
Field Details
-
TYPES
-
-
Constructor Details
-
RasterRemapReport
public RasterRemapReport(String filename, String title, String rasterIn, AttributeStore store, String labelColumn, String query, int period)- Parameters:
filename
- The file name, not including the extension '.asc'.title
- A title to be used in the indexrasterIn
- The name of an ascii raster input file.store
- The attribute store that contains the remap values.labelColumn
- The name of the column in the attribute store that contains labels to be matches to the raster file.query
- An expression that will be evaluated to determine the new values in the output raster file.period
- The period of interest.
-
-
Method Details
-
setLabelColumn
-
getLabelColumn
-
setRaster
-
getRaster
-
setQuery
-
getQuery
-
setPeriod
public void setPeriod(int period) -
getPeriod
public int getPeriod() -
doReport
public ca.spatial.reportwriter.Report.DataCache doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)Description copied from class:Report
The method used by the report writer to format the requested report. This method is implemented in every custom report. Application programs generally do not need to call this method, but instead use the report writer methods to obtain reports. -
getTypes
Description copied from class:Report
An accessor function to retrieve the list of report types supported by this report. See the documentation for the TYPES variable for the list of sub-types.
-