Hello Geeks
I have this pesudo code that I want to translate into a Logstash plugin and show the lat and long fields into Kibana ...
Assume the following variables are to be used in the calculation/conversion:
x_range = 2360
y_range = 718
lat_min = -45.025760784097045
lat_max = 45
long_min = -105
long_max = 104.96748940076955
lat_range = lat_max - lat_min
long_range = long_max - long_min
Based on this you need to project the coordinate onto the lat/long space.
lat = lat_min + (Y * lat_range / y_range)
long = long_min + (X * long_range / x_range)
As I am not a Ruby developer I couldn't translate this into a Ruby filter ;'))
and display the new fields into Kibana
Thanks very much for you efforts ;)))