Hi Arun,
You will need GeoTrellis / Raster / Interpolation ->
https://github.com/locationtech/geotrellis/blob/master/raster/src/main/scala/geotrellis/raster/interpolation/InverseDistanceWeighted.scala
I do not know of any projects off hand, but if anyone else on this list has an example, that would be very useful!
There was a question asked about CSV parsing in GeoTrellis on this mailing list before. This question was asked on this mailing list before. Below I have copied the answer. Let me know if this is useful for you.
---
There is no dedicated CSV parsing in GeoTrellis. I would guess that you have lat,lng + attributes in CSV format, in which case you would need to read and parse them as a normal CSV file then map over the result to create either Point
of PointFeature
from the fields as makes sense for that file.
As a basic example
val sc: SparkContext = ???
val lines: RDD[String] = sc.textFile("data.csv")
val points: RDD[PointFeature[String]] = lines.map { line =>
val fields = lines.split(",")
val point = Point(x = fields(0).toDouble, y = fields(1).toDouble)
PointFeature(point, fields(2))
}
Just as an example though, split(",")
won't handle quoted field values correctly.
In reality you would want to use a dedicated CSV parsing library.