DhanushNehru / Python-Scripts

A curated list of python scripts for automating your tasks
https://dhanushnehru.github.io/Python-Scripts/
MIT License
558 stars 262 forks source link

Create a longitude and latitude to conical converter #328

Closed bibliofilo closed 1 month ago

bibliofilo commented 1 month ago

Is your feature request related to a problem? Please describe. I wanted to query national geographic and census data for my country, but found that geographic data (such as map polygons for cities and states) is stored using a Lambert Conical Converter type, which is more precise but requires converting. After searching I found there are no readily available libraries that can just switch.

Describe the solution you'd like A script that can take longitude and latitude variables and convert them to the Lambert system.

Describe alternatives you've considered Torchgeo and geopandas do not offer the necessary tools for this out of the box.

Additional context The format of the data to convert to is "International Terrestrial Reference Frame 2008", called "Lambert Conformal Conic projection 2SP (epsg:9802)".