public static class RoadNetworkPlot.GeometricRasterizer extends Rasterizer
| Constructor and Description |
|---|
RoadNetworkPlot.GeometricRasterizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration conf)
Configures this rasterizer according to the MapReduce program.
|
RasterLayer |
createRaster(int width,
int height,
Rectangle mbr)
Creates an empty raster layer of the given width and height.
|
int |
getRadius()
Returns the radius in pixels that one object might affect in the image.
|
java.lang.Class<? extends RasterLayer> |
getRasterClass()
Returns the raster class associated with this rasterizer
|
void |
merge(RasterLayer finalLayer,
RasterLayer intermediateLayer)
Merges an intermediate layer into the final layer based on its location
|
void |
rasterize(RasterLayer rasterLayer,
Shape shape)
Rasterizes one shape to the given layer
|
<S extends Shape> |
smooth(java.lang.Iterable<S> r)
Smooth a set of records that are spatially close to each other and returns
a new set of smoothed records.
|
void |
writeImage(RasterLayer layer,
java.io.DataOutputStream out,
boolean vflip)
Writes a raster layer as an image to the output.
|
getRasterizer, isSmooth, rasterize, rasterize, setRasterizerpublic void configure(Configuration conf)
Rasterizerconfigure in class Rasterizerpublic <S extends Shape> java.lang.Iterable<S> smooth(java.lang.Iterable<S> r)
Rasterizersmooth in class Rasterizerpublic RasterLayer createRaster(int width, int height, Rectangle mbr)
RasterizercreateRaster in class Rasterizerwidth - - Width of the created layer in pixelsheight - - Height of the created layer in pixelsmbr - - The minimal bounding rectangle of the layer in the inputpublic void rasterize(RasterLayer rasterLayer, Shape shape)
Rasterizerrasterize in class RasterizerrasterLayer - - the layer to rasterize to. This layer has to be created
using the method Rasterizer.createRaster(int, int, Rectangle).shape - - the shape to rasterizepublic java.lang.Class<? extends RasterLayer> getRasterClass()
RasterizergetRasterClass in class Rasterizerpublic void merge(RasterLayer finalLayer, RasterLayer intermediateLayer)
Rasterizermerge in class Rasterizerpublic int getRadius()
RasterizergetRadius in class Rasterizerpublic void writeImage(RasterLayer layer, java.io.DataOutputStream out, boolean vflip) throws java.io.IOException
RasterizerwriteImage in class Rasterizerlayer - - the layer to be written to the output as an imageout - - the output stream to which the image will be writtenvflip - - if true, the image is vertically flipped before writtenjava.io.IOException