rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Support Geo data type

Open stobias123 opened this issue 2 years ago • 4 comments

would love to be able to plot lat/lon points on a map like openstreetmap.

Is your feature request related to a problem? Please describe. I'm using the product to track some devices and predictions related to them as they move around a large area.

Describe the solution you'd like Would love to be able to plot the lat/lon reported by my device over time.

Describe alternatives you've considered

Additional context

stobias123 avatar Nov 23 '23 18:11 stobias123

Thanks for filing this! Was surprised we didn't have a ticket for this already!

Related:

  • #1460

Wumpf avatar Nov 24 '23 13:11 Wumpf

If you only want to be able to display WGS84 coordinates, the simplest way I can think of would be to provide a view origin (lat, lon, alt) that becomes your cartesian origin (0, 0, 0) then use an ENU frame. A good starting point for rust would be map_3d.

At smaller scales the ellipsoid to ENU frame separation is probably negligible (~8cm / km).

@stobias123 if you want to display the coordinates now, you could use pymap3d prior to logging to rerun to compute a cartesian coordinate, see geodetic2enu.

swarmt avatar Dec 14 '23 17:12 swarmt

If you want to display map tiles from a WMS, you would need to implement slippy map rendering.

swarmt avatar Dec 14 '23 17:12 swarmt

cesium has a native c++ rendering library https://github.com/CesiumGS/cesium-native

but probably need to stick to webgl in rust https://github.com/paulkernfeld/glx

journaux avatar May 07 '24 23:05 journaux

I started to build a custom view for showing OSM/Mapbox maps, I can craft a PR if someone is interested

image image

tfoldi avatar Jun 10 '24 08:06 tfoldi

here it is: #6561

It uses walkers map crate (an egui based slippy map) to show map tiles in rerun space view.

tfoldi avatar Jun 17 '24 21:06 tfoldi