I've sensor that sends X Y coordinates for an Indoor Map I want to Convert X-Y to correspondent geolocation and Plot Coordinates into a Custom Map

You mean something like that
lat_min = -45.02576
lat_max = 45
long_min = -105
long_max = 104.96748

That is a huge interval, which will cause distortions to the projection. In the blog post I linked to, a much smaller interval was used.

@Christian_Dahlqvist
I solved it in ruby like that, it worked with me, may be it help someone in future.
ruby {
code => 'event.set("[location]", [-45.025760 + event.get("[Y_range]").to_f * 90.025760 / 718 , -105 + event.get("[X_range]").to_f * 209.967489 / 2360 ])'
}
Thanks for your support..

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.