Questions tagged [pyproj]

Python interface to PROJ.4 library. Performs cartographic transformations and geodetic computations.

See also:

184 questions
18
votes
8 answers

RuntimeError: b'no arguments in initialization list'

I'm trying to solve my issue in my own but I couldn't, I'm trying to run this code in every format you can imagine and in ArcGIS pro software it's the same I can't find this error message in any other issue. From similar issues, it seems some data…
Maram Mubarak
  • 323
  • 2
  • 3
  • 11
11
votes
2 answers

How do I get the area of a GeoJSON polygon with Python

I have the GeoJSON { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "Polygon", "coordinates": [ [[13.65374516425911, 52.38533382814119],…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
10
votes
2 answers

GDAL : Reprojecting netCDF file

I am trying to convert netCDF files to EPSG:3857 for use with Mapbox by using GDAL. This would be .nc to .nc conversion. Not to raster. I am open to using GDAL or other methods to do this. This data must be reprojected before it goes to a console…
David
  • 605
  • 2
  • 14
  • 44
6
votes
2 answers

PyProj package installation PROJ_DIR variable

I am attempting to install pyproj, although am getting a Proj executable not found. Please set PROJ_DIR variable error. COMMAND $ pipenv install pyproj I have also tried pipenv git+https://github.com/jswhit/pyproj.git#egg=pyproj for the same…
Darcy
  • 575
  • 2
  • 8
  • 21
6
votes
3 answers

Convert latitude, longitude & altitude to local ENU coordinates in Python

How can I convert geodetic (latitude, longitude, altitude) coordinates into local tangent plane ENU (East, North, Up) coordinates with Python? pyproj package does not seem to have the right functionality ...
5
votes
3 answers

Error installing geopandas in python on mac m1

I'm trying to install geopandas on my M1 mac and I'm running into errors I tried to pip install all the dependencies individually but where I'm tripping up is in the install of pyproj. I installed PROJ using brew install proj and that worked…
jay queue
  • 285
  • 2
  • 14
5
votes
1 answer

Extract EPSG code from GeoDataFrame.crs result

Let's say I have a GeoDataFrame with a CRS set. gdf.crs gives me Name: ETRS89 / UTM zone 33N Axis Info [cartesian]: - [east]: Easting (metre) - [north]: Northing (metre) Area of Use: - undefined Coordinate Operation: -…
four-eyes
  • 10,740
  • 29
  • 111
  • 220
5
votes
1 answer

On fresh Conda installation of PyProj: pyproj unable to set database path. _pyproj_global_context_initialize()

I want to use PyProj. I follow the installation instructions given in the documentation conda config --prepend channels conda-forge conda config --set channel_priority strict conda install pyproj When I run from pyproj import CRS I am…
four-eyes
  • 10,740
  • 29
  • 111
  • 220
5
votes
2 answers

How can I create grid of coordinates from a center point in python?

Is there a method to extract a grid of coordinates (purple dots) from a center coordinate, with a 100 meters distance between each coordinate for example? For example having an input of latitude and longitude center coordinate (red dot): lat =…
Lucas Mengual
  • 263
  • 6
  • 21
5
votes
1 answer

pyproj - ImportError: cannot import name '_datadir'

After I installed pyproj and geopandas I get an error when importing the latter: !conda install --offline -c conda-forge geopandas-0.7.0-py_1.tar.bz2 !conda install --offline -c conda-forge pyproj-2.6.0-py38hff69d4a_0.tar.bz2 import…
Ale
  • 917
  • 9
  • 28
5
votes
4 answers

Cannot import name 'CRS' from 'pyproj' for using the osmnx library

I have used a fresh anaconda install to download and install all the required modules for osnmx library but I got the following error:
user3925163
  • 69
  • 1
  • 1
  • 3
5
votes
1 answer

PROJ pyproj conversion of point EPSG 4326 (WSG 84) to (EPSG 28992)

Given a (lon, lat) point (5.068913, 52.067567) I would like to convert from EPSG 4326 to EPSG 28992 using pyproj. The Proj, and transform functions in pyproj both seem to be suitable for such a…
William Grimes
  • 675
  • 2
  • 11
  • 29
5
votes
2 answers

I get error "No module named 'pyproj._datadir'" after I made .py to .exe with pyinstaller

My code works well when it's .py but when I make .exe file with pyinstaller, it shows ModuleNotFoundError. I write this when I made .exe pyinstaller -F MyCode.py How can I solve this problem? I've read some solutions from Issues with pyinstaller…
체라치에
  • 173
  • 1
  • 16
4
votes
1 answer

Cannot install proj 7.2.0

I am on Ubuntu 19.10 and I am trying to install proj 7.2.0 According to the website I should use this: sudo apt-get install proj-bin But it seems that this command installs version 5.2.0: Reading package lists... Done Building dependency tree …
GStav
  • 1,066
  • 12
  • 20
4
votes
1 answer

How to handle pyproj datadir/CRS error when creating an executable using pyinstaller

The program I am creating is designed to create several points within several zip codes, and find the distance from each of those points to every point in every zip code that is within 5 miles of the zip code of interest. This is done by utilizing…
Keagan McNew
  • 103
  • 2
  • 5
1
2 3
12 13