# VectorToRaster

### Related Doc: package raster

#### object VectorToRaster

Object that holds various functions for vector-to-raster computations.

Linear Supertypes
AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. VectorToRaster
2. AnyRef
3. Any
1. Hide All
2. Show All
Visibility
1. Public
2. All

### Value Members

1. #### final def !=(arg0: Any): Boolean

Definition Classes
AnyRef → Any
2. #### final def ##(): Int

Definition Classes
AnyRef → Any
3. #### final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any
4. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
5. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
6. #### def countPoints(points: Seq[Point], rasterExtent: RasterExtent): Tile

Gives a raster that represents the number of occurring points per cell.

Gives a raster that represents the number of occurring points per cell.

points

Sequence of points to be counted.

rasterExtent

RasterExtent of the resulting raster.

7. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
8. #### def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any
9. #### def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( classOf[java.lang.Throwable] )
10. #### final def getClass(): Class[_]

Definition Classes
AnyRef → Any
11. #### def hashCode(): Int

Definition Classes
AnyRef → Any
12. #### def idwInterpolate(points: Seq[PointFeature[Int]], re: RasterExtent, radius: Option[Int]): Tile

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points.

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points. Please see https://en.wikipedia.org/wiki/Inverse_distance_weighting for more details.

points

A collection of known-points

re

The study area

returns

The data interpolated across the study area

13. #### def idwInterpolate(points: Seq[PointFeature[Int]], re: RasterExtent, radius: Int): Tile

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points.

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points. Please see https://en.wikipedia.org/wiki/Inverse_distance_weighting for more details.

14. #### def idwInterpolate(points: Seq[PointFeature[Int]], re: RasterExtent): Tile

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points.

Compute an Inverse Distance Weighting raster over the given extent from the given set known-points. Please see https://en.wikipedia.org/wiki/Inverse_distance_weighting for more details.

15. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any
16. #### def kernelDensity[D](points: Seq[PointFeature[D]], transform: (D) ⇒ Int, kernel: Kernel, rasterExtent: RasterExtent): Tile

Computes a Density raster based on the Kernel and set of points provided.

Computes a Density raster based on the Kernel and set of points provided.

points

Sequence of point features who's values will be used to compute the density.

transform

Function that transforms the point feature's data into an Int value.

kernel

Kernel to be used in the computation.

rasterExtent

Raster extent of the resulting raster.

Note

KernelDensity does not currently support Double raster data. If you use a Raster with a Double CellType (FloatConstantNoDataCellType, DoubleConstantNoDataCellType) the data values will be rounded to integers.

17. #### def kernelDensity[D](points: Seq[PointFeature[D]], kernel: Kernel, rasterExtent: RasterExtent)(implicit transform: (D) ⇒ Int): Tile

Computes a Density raster based on the Kernel and set of points provided.

Computes a Density raster based on the Kernel and set of points provided.

points

Sequence of point features who's values will be used to compute the density.

kernel

Kernel to be used in the computation.

rasterExtent

Raster extent of the resulting raster.

Note

KernelDensity does not currently support Double raster data. If you use a Raster with a Double CellType (FloatConstantNoDataCellType, DoubleConstantNoDataCellType) the data values will be rounded to integers.

18. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
19. #### final def notify(): Unit

Definition Classes
AnyRef
20. #### final def notifyAll(): Unit

Definition Classes
AnyRef
21. #### def rasterize(feature: Geometry, rasterExtent: RasterExtent, value: Int): Tile

Draw the given Geometry into the given RasterExtent with the given value.

Draw the given Geometry into the given RasterExtent with the given value. The result is a Tile.

feature

The geometry to draw

rasterExtent

The extent into-which the geometry should be drawn

value

The value to be used

22. #### def rasterize(feature: Geometry, rasterExtent: RasterExtent)(f: (Int, Int) ⇒ Int): Tile

Draw the given Geometry into the given RasterExtent using the function 'f'.

Draw the given Geometry into the given RasterExtent using the function 'f'. The function 'f' takes two parameters, the current column and row, and returns a raster value for that position. The result is a Tile.

feature

The geometry to draw

rasterExtent

The extent into-which the geometry should be drawn

f

A function from (Int, Int) to Int

23. #### final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
24. #### def toString(): String

Definition Classes
AnyRef → Any
25. #### final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
26. #### final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
27. #### final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )