Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: IDW interpolation

$
0
0
I went through the source code and I think that I've probably found the issue. In the InverseDistanceWeighting.cs class (DotSpatial.Tools), function "Execute", the coordinates of the output raster are defined as:
        output.Xllcenter = input.Extent.MinX + (cellSize / 2);
        output.Yllcenter = input.Extent.MinY + (cellSize / 2);
If I well remember, the raster reference is generaly determined by upper left corner while the statement above uses lower left corner. So I copied the "Execute" function into my project and changed
        output.Yllcenter = input.Extent.MaxY + (cellSize / 2);
It worked perfectly and grid shew realistic values. But the new issue with contouring extension arose. I assume that it is the similar issue as above - it'd be necessary to change initial point somewhere in the code.

I'm not sure that I can make it by myself. Can I ask somebody assistance?

Thank you
Jiri

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>