public class TimeGrid extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
HEADER_SIZE
The offset to get to the data section of the access grid file. 
 | 
static org.slf4j.Logger | 
LOG  | 
int | 
nValues  | 
| Constructor and Description | 
|---|
TimeGrid(int zoom,
        int west,
        int north,
        int width,
        int height,
        int nValuesPerPixel)
Create a new in-memory access grid writer for a width x height x nValuesPerPixel 3D array. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
anyCellReached()  | 
void | 
setTarget(int targetIndex,
         int[] pixelValues)  | 
void | 
writeGeotiff(OutputStream out,
            AnalysisTask request)
Write this grid out in GeoTIFF format. 
 | 
void | 
writeGridToDataOutput(DataOutput dataOutput)
Write the grid to an object implementing the DataOutput interface. 
 | 
PersistenceBuffer | 
writeToPersistenceBuffer()
Write the grid out to a persistence buffer, an abstraction that will perform compression and allow us to save
 it to a local or remote storage location. 
 | 
public static final org.slf4j.Logger LOG
public static final int HEADER_SIZE
public final int nValues
public TimeGrid(int zoom,
                int west,
                int north,
                int width,
                int height,
                int nValuesPerPixel)
public void setTarget(int targetIndex,
                      int[] pixelValues)
public PersistenceBuffer writeToPersistenceBuffer()
public void writeGridToDataOutput(DataOutput dataOutput)
public void writeGeotiff(OutputStream out, AnalysisTask request)
public boolean anyCellReached()
Copyright © 2019. All rights reserved.