I’m befuddled as to what is happening with my newest datasource. I’ve added many datasources before but this last one is the only one that has seen the method ‘GetClosestPointTo’ return results that are nonsensical. They are on the line in question, but the point is not the closest point to the shape in question.
I’ve tried altering the underlying source data to be a MULTILINESTRING as opposed to LINESTRING, to no effect. I’ve reprojected the datasource from some obscure projection to one that is used by other datasources that are still working correctly.
Could anyone suggest some more things to try? I have other datasources that use this method to quickly and effectively find the closest point to a click location, but with this new database it is not working.
GetClosestPointTo is not acting right
Hi Cody,
I remembered we have fixed a bug related with "GetCloestPointTo" method couple months ago, and I am not sure if it is the exact issue like yours. Would you please try the latest version package to have a try?
If the latest version still not works for you, I appreciate you can minimize the issue so that it will be easy for us to debug it. For example, you can try to export some features(wkt) within an area which can recreate the issue by calling this method, and then we can get those features to debug into them.
Or it would be highly appreciated that you can send us a concrete sample for us?
Hope it helps.
Regards,
Johnny