[FEATURE] add built in coordinate conversions
See original GitHub issueHello,
The GIS and mapping capability of Bokeh is good and growing but lacks ability to convert units between (lat,lon) pairs and Web Mercator Easting and Northing coordinate pairs.
pyproj
is a simple, focused and mature coordinate conversion utility for converting between recognized standard coordinate frames.
Adding pyproj
or a similar capability would allow native Bokeh code and examples to perform coordinate conversions as a normal part of GIS mapping and plotting. For example, this code and associated documentation example could be included:
I propose adding pyproj
. How can this get considered for the next version update?
Alternative codes and methods:
- OpenStreetMap Mercator wiki with conversions written in multiple programming languages
- Web Mercator projection wiki has formulas and good explanations
References:
- discourse link located here.
- pull request with working example except for
pyproj
dependency.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:21 (21 by maintainers)
Top Results From Across the Web
CoordinateConversion | ArcGIS Maps SDK for JavaScript 4.25
The CoordinateConversion widget provides a way to display user cursor position either as map coordinates or as any of several popular coordinate notations....
Read more >How to convert coordinate system of a set of points using ArcGis
converting coordinates on ArcGisTo see more videos visit website : http://monde-geospatial.com/
Read more >How To: Convert polygon features to point ... - Esri Support
In ArcMap, click the Search button, and search for the Add Geometry Attributes tool. Click the Add Geometry Attributes tool to open the...
Read more >CoordinateTransformations - Intelligent Motion Lab
Many common spatial transformations, including translations, rotations, and scaling are represented by matrix / vector operations. Changes of coordinate frames ...
Read more >Coordinate Conversions - L3HarrisGeospatial.com
This coordinate conversion functionality is built into object graphics through the XCOORD_CONVERT and YCOORD_CONVERT properties or each type of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For what it’s worth, Datashader also needed the specific projection from lon,lat to web Mercator for our examples, and to avoid having a dependency on pyproj we just added that specific function in a numpy/pandas compatible form:
@bryevdv ,
Did the simple GIS coordinate conversion submitted by @jbednar [immediately above] (https://github.com/bokeh/bokeh/issues/10009#issuecomment-636555037) ever get added?
It looks like this task was dropped, or never initiated. If I recall correctly, this unit conversion code was the only remaining detail needed to get the mapping tile demo integrated into the Bokeh code base.
What’s the next step to completion?
This thread is already a feature request. How about putting that function in a new file in a new folder called GIS_utils or something similar?
Nobody knows how to proceed except seasoned maintainers.
Marc