I've sensors that send X Y coordinates for an Indoor Map , I have successfully managed to
Build a custom map on kibana using GeoServer , But I'm stuck with the following for more than a month now.
1- Convert X Y Coordinates for this indoor map into correspondent lat and long.
2- Plot the data on the map with the Right Scale and distribution of data.
I don't know if this task is even possible in Kibana , I'd really appreciate you suggestions.
1- Convert X Y Coordinates for this indoor map into correspondent lat and long.
You'll have to manually convert the x y coordinates on the indoor map into the corresponding latitude and longitude.
2- Plot the data on the map with the Right Scale and distribution of data.
Maps, and all visualizations in Kibana, operate on aggregates, so if you're looking to plot individual data point, this isn't currently possible. This enhancement request is targeted at allowing this if you wouldn't mind reviewing it, commenting or ing it.
Once you have your data stored in geopoints with lat/long, you should be able to visualize the aggregate information on the Tilemap and plug in your own WMS server to provide custom layers.
But what do you mean by manually ? , is there is a formula that converts X-Y pixels or coordinates
into corespondent lat and long ? , What do you suggest ?
I suspect you may need to use a ruby filter for this type of conversion. Exactly how the calculation/transformation will need to look like I have no idea about as I do not know your data.
If you look at the blog post I linked to, coordinates on the map are mapped to lat/long coordinates, and this mapping depends on how you map the image in your custom WMS tile server. There is also a link to an older, but potentially simpler, blog post on a similar topic that may also be useful.
I did this blog post before but still stuck at the point of conversion the X Y coordinates into lat /long to plot the data on the custom map which i use
Sounds like you need to apply anaffine transformation. This will shift, rotation and scale of your points. To do this you will need to work out the location of at least one of your xy points as lat long. If you know 2 points you can work out the scale factor.
You then need to work out the orientation of your points relative to the geographic coordinate system.
If you search for affine transformation you should find code to do this.
@Graham_Humphries Yes, You are right, it already shifted the location of points on the map. I think because the origin of the map in pixel is top left not the same as the custom map in Geoserver which is the center of the image.
I will look for affine transformation to see what can i do.
Thanks for your interest.
Your lat long intervals are quite large, so the projection is likely to suffer from distortion. If you mapped it against a much smaller lat/long interval, you may be able to reduce the distortion.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.