From: James T. <ja...@fl...> - 2021-03-10 13:36:11
|
> On 10 Mar 2021, at 12:45, Erik Hofman <er...@eh...> wrote: > > Turns out OpenStreetMap provides the data for lat and lon: > https://github.com/evansiroky/timezone-boundary-builder <https://github.com/evansiroky/timezone-boundary-builder> That’s excellent but as far as I know we don’t have a ‘which SHP is this lat/lon within’ function in our codebase. (And I don’t want to include CGAL just to gain that…). We do already have a SHP *parser*, that’s how I load the SHP data used in the launcher map : but loading for display is much easier than a robust ‘is point inside an arbitrary complex polygon’ tester. So I think adding more lat-lon pairs to tweak the selection is a low-risk fix (eg, suitable for 2020.3), of course it anyone wants to hook the existing SHP parser up to say boost::polygon (or some other polygon geometry library de-jour, just sooner not CGAL, it’s huge...) or similar for selection based on the OSM data, it’s quite possible. Kind regards, James |