Turf: Inverse Distance Weight (IDW) Interpolation

Created on 7 Mar 2016  路  7Comments  路  Source: Turfjs/turf

Is it possible to add IDW to TurfJS? This is most common scientific interpolation method for points to raster conversion.

Most helpful comment

Great! Thx @miccferr 馃槂馃憤

All 7 comments

Hi there,

I've implemented a version of IDW (see #366).
It's not optimised by any means, but it's a starting point.

If it is of any interest: I have created a small leaflet plugin for IDW based on the leaflet-heatmap plugin. It also is not optimised in any way, but may provide some further insight: https://github.com/JoranBeaufort/Leaflet.idw

@JoranBeaufort awesome! nice idea to build it extending the heatmap plugin.
I was tinkering with WebGL to achieve something similar but this is way more straightforward.

@miccferr Thanks! I have no experience with WebGL yet, so i cant really comment, but would webGL also speed up the calculations? Or will it just outsource the rendering from the cpu to the gpu? My implementation reaches its limits quite fast depending on number of points and cell size.

Yeah I was merely aiming at rendering via WebGL. Don't know/don't think it will speed up the calculation itself (but I'll gladly be proven wrong).
Mine also maxes out quite soon btw.
Would love to see more spatial stats in Turf though!

turf.idw now exists as a module and is in the docs. Thanks for the work @miccferr !

Great! Thx @miccferr 馃槂馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robhawkes picture robhawkes  路  3Comments

stebogit picture stebogit  路  5Comments

tsemerad picture tsemerad  路  4Comments

privateOmega picture privateOmega  路  3Comments

stebogit picture stebogit  路  5Comments