question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About the usability of distances and CRS

See original GitHub issue

I’d like to start by thanking you all for your great work. Also, that I’m presenting this issue as a way to better understand the problems underneath so I can help and solve the issues. I’m willing to do the necessary pull requests.

Anyway, I mentor some students of data science and a recurrent problem I saw them (and myself) having is import data with latitude and longitude in geopandas and expecting the method .distance() will deliver distances in meters. Most of them end up using geopy, which, in their mind, “does the right thing by default”.

So, I’d like to improve the usability in GeoPandas regarding that. Have some suggestions:

  • Create a “great circle” function.
  • Add in the docs a section about projections and CRS and how to make the distances behave in a known manner.
  • Add, in the distance function of the API docs, a link about “this will not necessarily wield a result in meters, please see the FAQ”

Thanks for your attention!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
jwilson8767commented, Mar 11, 2019

For all my projects I end up projecting data to the state plane (units=meters) before using .distance() or .buffer() I do this so often that I have written my own buffer wrapper function that takes feet, meters, or degrees and attempts to rectify crs issues before applying the buffer to the geometries. I would be happy to contribute this to geopandas if there is interest (perhaps under something like gpd.safe_buffer(gdf, distance, projected_crs=crs) method)

Regardless I agree that documentation should be better and maybe any usage of .distance(), .buffer() or even .area should show a warning if the crs is not projected.

0reactions
jwilson8767commented, Aug 24, 2019

Out of curiosity, beyond the basic geodesic functions, what others would you imagine someday wanting to utilize yourself?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Effects of Vehicle Features on CRS Installation Errors - NHTSA
The SAE CRS committee has developed the following recommendations to improve LATCH usability: (SAE CRS. Committee 2009). 1) The distance between tether ...
Read more >
Usability of a classroom response system in an online course ...
Usability of a classroom response system in an online course: Testing of a smartphone-downloadable technology enhanced learning tool for distance education.
Read more >
Usability of a classroom response system in an online course
Another CRS app has been used for a smartphone to enhance learning for distance graduate education and found out that it is a...
Read more >
ISO information on CRS International Standards - UNECE
The usability of ISOFIX is addressed both on the CRS side (attachment ... impossibilities due to some extend on buckle lengths, seat belt ......
Read more >
Usability Evaluations of a Wearable Inertial Sensing ... - PubMed
The results showed that most participants were able to understand the metrics presented in the CRs. For a few metrics, it remained difficult ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found