[Script] WME Geometries - v1.7 (June 2021)
Prompted by this request for city boundaries, and inspired by now defunct WME GPS Track View...
WME Geometries can load a geometry file and overlay it directly in the Waze Map Editor. Simply go to the Areas tab on the left, and scroll down to the new controls that have been added.
The data format is detected automatically using the file extension, and the following formats are supported: GeoJSON, GML, WKT, KML, and GPX; and coordinate systems ESPG 3857, 4269 and 4326. If you have a (free to use) ArcGIS or ESRI Shapefile, then this can be converted into one of these text formats.
If you're having trouble with your geometry data, then please get in touch with me and I'll see if I can help.
It is possible to load very large geometry files, of order 10 Mb, and the editor still performs moderately well. Files that closer to 100 Mb will probably make the editor struggle when panning/zooming. This can be mitigated by 'simplifying' the original geometry before converting it to a supported format.
Labels will be shown for files with less than 50 features, if an appropriately named attribute can be found: name, Name, NAME or NAME0. Displaying labels for larger numbers of features really kills performance due to how OpenLayers handles them.
Development background: the functionality to parse geometries files is built in to OpenLayers, and so it does the majority of the processing. The ability to handle KML and GPX was tricky, as Waze seem to be using a crippled version of the library that was missing those two. I eventually figured out how to patch the missing functions in.
Possible future work:
WME Geometries can load a geometry file and overlay it directly in the Waze Map Editor. Simply go to the Areas tab on the left, and scroll down to the new controls that have been added.
The data format is detected automatically using the file extension, and the following formats are supported: GeoJSON, GML, WKT, KML, and GPX; and coordinate systems ESPG 3857, 4269 and 4326. If you have a (free to use) ArcGIS or ESRI Shapefile, then this can be converted into one of these text formats.
If you're having trouble with your geometry data, then please get in touch with me and I'll see if I can help.
It is possible to load very large geometry files, of order 10 Mb, and the editor still performs moderately well. Files that closer to 100 Mb will probably make the editor struggle when panning/zooming. This can be mitigated by 'simplifying' the original geometry before converting it to a supported format.
Labels will be shown for files with less than 50 features, if an appropriately named attribute can be found: name, Name, NAME or NAME0. Displaying labels for larger numbers of features really kills performance due to how OpenLayers handles them.
Development background: the functionality to parse geometries files is built in to OpenLayers, and so it does the majority of the processing. The ability to handle KML and GPX was tricky, as Waze seem to be using a crippled version of the library that was missing those two. I eventually figured out how to patch the missing functions in.
Possible future work:
- Dedicated parsing for Waze GPS files
- Finer control of options and layers
POSTER_ID:1445148
1
Re: [Script] WME Geometries - v1.7 (June 2021)