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.

ENH: method to estimate UTM zone of a gdf

See original GitHub issue

following up on this conversation from awhile ago, I’m curious whether others would find it useful to have something like estimated_utm as a property on a GeoDataFrame? (though i’m not picky about property/method/function/nomenclature)

For context, osmnx has this nifty little function that guesses a gdf’s UTM zone using its geographic coordinates. Although it’s not perfect, it’s super handy when, say, iterating over several gdfs representing different parts of a large country (e.g. metro areas in the USA) and calculating something like the population density in each. It’s especially handy given that #1376 isnt available quite yet

i know a handful of packages that implement this function on their own, so seems like there would be a benefit to providing it in a central place like geopandas

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
snowman2commented, Oct 2, 2020

We can add a function estimating UTM zone CRS. So in the end you would do df.to_crs(df.estimate_utm())

👍

Any idea when the next release of pyproj with this PR will be out?

The next pyproj release depends on PROJ 7.2 https://github.com/pyproj4/pyproj/issues/689 which is due Nov 1 7.2 milestone. So, sometime after that.

2reactions
martinfleiscommented, Oct 2, 2020

@snowman2 Great! Any idea when the next release of pyproj with this PR will be out?

We can add a function estimating UTM zone CRS. So in the end you would do df.to_crs(df.estimate_utm()).

One note implementation-wise - we should use total_bounds to get coordinates, that is way faster than unary_union.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Calculate the Boundaries of an UTM Zone - GIS Lounge
Calculating the Boundaries of a UTM Zone​​ Subtract 6 degrees to obtain the western boundary. Therefore to find the eastern boundary of UTM...
Read more >
geopandas.GeoDataFrame.estimate_utm_crs
Returns the estimated UTM CRS based on the bounds of the dataset. ... 84.0) Coordinate Operation: - name: UTM zone 32N - method:...
Read more >
September 30, 2002
UTM Zone : ... miles) of the boundary of other states, Bernalillo County, or a Class I Area. ... ENG. EQPT167. Internal combustion....
Read more >
Calculate UTM Zone (Cartography)—ArcGIS Pro
Calculates the UTM zone of each feature based on the center point and stores this spatial reference string in a specified field. This...
Read more >
DOD Dictionary of Military and Associated Terms - DAC-IPAD
antiaircraft artillery; arrival and assembly area ... airspace coordinating measure ... Air Force tactics, techniques, and procedures (instruction).
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