My use case is very similar to http://docs.codehaus.org/display/GEOTOOLS/Guide+to+standalone+usage+of+interpolations . At the input I have points with coordinates and some data(simple double number). The distance between points is 30 meters. At the output I want to have interpolated image.
I`m iterating over outputted image and getting filled by interpolation 'intermediate' poitns(with the step 5 meters). Smth like that: TPSInterpolation interpolated = new TPSInterpolation(pointsAndValues, (int)stepX,(int) stepY, envelope); //and in loop interpolated.getValue(new DirectPosition2D(crs,currentX,currentY)); The issue is that interpolation is executing about 200 seconds with TPS method. As far as I understand, Nearest Neighbor algorithm should work much more faster with very similar result. So, it`s only the question of time optimization. Thank you, Dmitry. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/interpolate-points-with-Nearest-Neighbor-algorithm-tp4994626p4994678.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users