Questions tagged [pyproj]

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

See also:

184 questions
0
votes
0 answers

Is pyproj Transformer stateless or stateful?

I'm currently working on project where we will be using pySpark and pyproj for gps to cartesian transormations. In this project I will be getting parquet files as an input, will need to modify content of one column (column that will contain gps…
0
votes
1 answer

Using PROJ C++ API for CRS-to-CRS transformations

pyproj is a language binding for PROJ. The pyproj module provides easy-to-use methods for CRS-to-CRS transformations, For instance, use it to convert global latitude/longitude (degrees) to local coordinates with respect to some coordinate reference…
Amir Int
  • 45
  • 7
0
votes
0 answers

Plotting Polygons with Folium and Pyproj

I'm trying to plot the boundaries of the localities of Brussels. The system of coordinates of my json file has to be converted to a longlat system to display the Polygons on Folium maps. The issue I get is that my coordinates are projected into the…
0
votes
0 answers

Using pandas to convert easting and northing to lat and lon given multiple epsg codes

I've gathered information from many separate excel files into a dataframe that contains East and North data given in 10 different coordinate systems (EPSG codes). I can use pyproj to convert one given data point with (epgs_code, east, north) into…
0
votes
1 answer

pyproj import fails with array.array error when running from command line, macOS, 13.0.1, Python 3.8.10, pyproj 3.4.0

System is configured as macOS 13.0.1 (Ventura), python 3.8.10, pyproj-3.4.0. python is installed from python.org >which python3.8 /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 >which proj /usr/local/bin/proj proj is version…
0
votes
0 answers

Converting longitude and latitude to eastings and northings using pyProj

I'm trying to convert latitude and longitude coordinates into eastings and northings. I've found (on here!) a neat way of converting eastings and northings to longitude and latitude, but I don't fully understand the projections. I'd really…
Anna
  • 1
0
votes
1 answer

apply function on two columns in python pandas with 2 arguments (convert GPS type to another)

so i have a database of X and Y coordinates as the ITM type and i want it as WGS-84 type. i found a function from pyproj library thats convert and it works great but now i'm having troubles to apply this function on two separate columns. for example…
Chubix34
  • 3
  • 1
0
votes
0 answers

Building wheel for pyproj (pyproject.toml) - Doesn't work

So im trying to install this package called etrago (https://pypi.org/project/eTraGo/). but it doesn't work. At the end I get something like this in my terminal: note: This error originates from a subprocess, and is likely not a problem with pip. …
jpwitt13
  • 57
  • 1
  • 9
0
votes
0 answers

Pyproj transformation of a geopandas does not match QGIS reprojection

I have a file in British National Grid coordinates (EPSG 27700) which I'm trying to convert to WGS84 (EPSG 4326) My first attempt was to transform in the usual way import geopandas as gpd file = '27700.gpkg' sh = gpd.read_file(file) sh =…
0
votes
0 answers

Keep lat long order using transformer.from_crs, always_xy=True not working?

I'm trying to update some code because lat/lon values are getting flipped (lat ends up in lon column and vice versa) when using Transformer.from_crs. The line of code that is causing the issue is this, BUT only when f'epsg:{oldEPSG}'="epsg:4326" (so…
xanabobana
  • 63
  • 2
  • 16
0
votes
1 answer

datum conversion from NAD27 + NGVD29 height (ftUS) to NAD27 + NAVD88 height (ftUS) using python

I am using python pyproj to convert xyz values of Louisiana, USA region from NAD27 + NGVD29 height (ftUS) to NAD27 + NAVD88 height (ftUS). So, I am not changing the horizontal projection (because it's NAD27 for both), only the vertical projection…
ZVY545
  • 384
  • 1
  • 13
0
votes
0 answers

pyProj gives incorrect results

I'm trying to use pyProj to convert UTM coordinates from WGS84 UTM 30N (epsg 36230) to ED50 (epsg 23030). My WGS 85 coordinate is 456859.248 E, 6212329.347 N. When I convert using this online convertor…
Dave Stark
  • 107
  • 8
0
votes
2 answers

importlib.metadata.PackageNotFoundError: No package metadata was found for pyproj

I wrote a code using the pyproj library and converted this code to an exe file for use on another computer. I added the pyproj to the requirements.txt file. And I installed the library with the requirements.txt file on the other computer I will use.…
ea23
  • 21
  • 1
  • 1
  • 5
0
votes
1 answer

Comparing two differently projected datasets

I have an array that has 14000 columns and 7000 rows of terrain data for the US that are equally spaced 500m apart. I also have the lower-left latitude and longitude: ncols = 14000 nrows = 7000 xllcorner = -130 yllcorner = 20 cellsize = 0.05 I also…
Miss_Orchid
  • 308
  • 1
  • 8
0
votes
0 answers

Creating a spherical CRS in Pyproj with "R_A"

The Proj documentation states that the R_A parameter indicates "A sphere with the same surface area as the ellipsoid." (source) So I tried this, believing I would get a spherical CRS with radius set to the WGS84 authalic radius: import pyproj crs =…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96