Hi,
In thinkgeo Mapsuite desktop addition is there any other algorithm available. Guide how to implement another algorithm if I want to draw isolines with conrec algorithm.
Thanks,
Goral
Isoline Creation
Hi Goral,
What you want to do is create a new class inherited from GridInterpolationModel and override InterpolateCore function.
Wish that’s helpful.
Regards,
Don
Hi,
First of all I have tried the Kriging algorithm implementation given in Thinkgeo Mapsuite Desktop Sample. In that method everytime grid file is generating and saving to generate the contours. I found it little time consuming. For that I have searched for another contour generating algorithm. I have tried to generate contours using conrec algorithm. But the catch is its result come as zigzag not smooth curve lines. This is the whole scenario. I think this will halp to guide me.
Thanks & Regards,
Goral
Hi Goral,
Seems you have implemented your GridInterpolationModel but your current issue is the result is not smooth enough, right?
If just that issue, would you please try to decrease the cellsize to see if better?
Not pretty sure you have went through our online ISO sample, but here is the link wiki.thinkgeo.com/wiki/Map_Suite_Wpf_Desktop_Edition_All_Samples#Isolines
If I misunderstand anything, would you mind to attach any codes or screenshots to make the issue clear?
Thanks,
Troy
Hi,
Thanks for reply. Ya I have implemented new Interpolation model and it does not give smooth results.
I have already gone through the link and tried to implement it. In example the kriging algorithm is used. Which works on cell size. But I have implemented conrec algorithm which is not working on grid so I think cell size will not help. In the algorithm it takes for vertices and interpolate values. For more clarification I have attached screenshot of the result. To understand about algorithm you can easily find. Please go through and guide.
Thanks & Regards,
Goral
Hi Coral,
Sorry I didn’t see any attached files. Would you please attach them again and it’s better to include the whole algorithm and your project.
Waiting for your further information.
Thanks,
Troy
Hi,
I have attached both the files. One is having algorithm and another one is of result screenshot. I hope through it you will get idea about problem.
Thanks & Regards,
Goral
conrecalgorithm.txt (11 KB)
Hi Goral,
Seems like a detailed description of similar algorithm about “CONREC” can be available at paulbourke.net/papers/conrec/, could you take a check? if yes, maybe we can refer to it to get the further information.
After checking the code, I guess it’s not an algorithm for Interpolation, it should be a complete algorithm for generating the a complete IsoLine/Contour. It’s better that inherited from GridInerpolationModel and override “InterpolateCore”, but the problem is that “CONRECT” seems be not based on GRID, in other words, we need to inherited from IsoLineLayer and override the method “GetFeaturesFromDrawingCore”. Can you share your data via the email forumsupport@thinkgeo.com .
Regards,
Johnny
Hi Johnny,
Yes I have also gone through same source and tried it with Thinkgeo Mapsuite. Exactly that I want to say that its not working on grid concept. As required I have mailed my data for your reference. Please go through and guide to reach the result expected.
Thanks & Regards,
Goral
Thanks Goral,
We have received your data and we will look on it once we have enough resource.
If there are more information, please feel free to attach here.
Thanks,
Troy
Hi,
Any updates on inheriting another isoline creation algorithm. Or any suggestion so I can try to work further.
Thanks & Regards,
Goral
Hi Goral,
Would you please try the attached sample to see if any question?
Thanks,
Troy