Python interface to PROJ.4 library. Performs cartographic transformations and geodetic computations.
Questions tagged [pyproj]
184 questions
1
vote
0 answers
Converting xy coordinates in relation to pixels to latitude and longitude
Here is my situation:
The company I work for are using some third party software that plots the location of devices on a wifi network. The software requires you to upload a floor plan of the area (this is just a 2000 x 1187 px jpeg). The software…

James_101
- 13
- 7
1
vote
0 answers
Loading a pickled file failes looking for pyproj?
Running Anaconda 2.7.13 on Linux. The code looks like:
import matplotlib
matplotlib.use('Agg')
from mpl_toolkits.basemap import Basemap
from scipy import *
import math
from math import radians, tan, sin, cos, pi, atan, sqrt, pow, asin,…

GerryC
- 149
- 2
- 4
- 13
1
vote
1 answer
Passing an espg code to pyproj
I've tried several ways to create a string and use it in the line:
inproj = Proj(init="epsg:2276",preserve_units=True)
I'd like it to do something like this:
epsg_in = 2276
code = '"epsg:' + epsg_in + '"'
inproj =…

GIS_tex_joe
- 11
- 1
1
vote
1 answer
Convert latitude, longitude to distance from equator in kilometers and round to nearest kilometer
For each coordinate I have, I find the distance from the equator in kilometers giving me two distances:
from pyproj import Geod
wgs84_geod = Geod(ellps='WGS84')
_,_, lon_dist = wgs84_geod.inv(0, 0,lon, 0)
_,_, lat_dist = wgs84_geod.inv(0,…

clurhur
- 81
- 6
1
vote
1 answer
Pyproj distance between points and between a point and polygon
I want to calculate projected distance between two points and between a point a polygon. All coordinates are specified under same projection lat,lon (WGS84).
I calculated the distance between a point and a polygon using pyproj as follows:
from…

kitchenprinzessin
- 1,023
- 3
- 14
- 30
0
votes
0 answers
geopandas to_crs returned less records than expected
For a geopandas dataframe containing POLYGON and MULTIPOLYGON geometry data, I have tried to convert from another coordinate reference system (CRS) to EPSG:4326.
Because the geodataframe has approximately 200 thousand records, I have
split the full…

Kai
- 17
- 7
0
votes
3 answers
Multidim contiguous diagonal values
After a projection I need to create a multidim array with contiguous diagonal values on base of a 1D array, e.g. with some kind of multiplication with a multidim identity array.
The following is just a small example for the concept. As the real data…

Tobias
- 33
- 5
0
votes
0 answers
transform ESRI:102008 polygon shapefile to EPSG:4326 via shapely
I'm having trouble transforming a multipolygon shapefile with CRS of ESRI:102008 to EPSG:4326. The shapefile looks like this (data1)
As I have difficulty merging ESRI shapefile with my other shape files with EPSG CRS, I'm trying to converting data1…

user496181
- 141
- 7
0
votes
0 answers
Problem running pyproj installed with pip but not with conda
I am running Python 3.11.4
I would like to use pyproj 3.6 to calculate geoid heights as described in the documentation exemple.
However, I don't get the same result as in the documentation when installing pyproj 3.6.0 with pip.
python3 -m venv…

basso31
- 1
- 1
0
votes
1 answer
geopandas to_crs epsg:3347
import geopandas as gpd
import matplotlib.pyplot as plt
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
world.to_crs('epsg:3035').plot()
plt.show()
changing to epsg:3347 gives wrong projection.
import geopandas as gpd
import…

paugam
- 150
- 2
- 12
0
votes
1 answer
Converting pixel data from SEVIRI satellite images to lat, lon values using pyproj and cartopy
I am trying to plot specific Data from satellite Images like this one satellite image. The Data is referenced by Pixels of the Picture. Every Picture has 1024px in height and width and is from a geostationary satellite (SEVIRI) with the boundaries…

Stehpflanze
- 3
- 1
0
votes
0 answers
Cartopy / Pyproj fail to load _network module // Win 11 // Python 3.10
I was trying to install cartopy for Python 3.10.11. I followed the instructions at the top of Christoph Gohlke's site. I installed the wheels for shapely (Shapely‑1.8.2‑cp310‑cp310‑win_amd64.whl), pyproj (pyproj‑3.3.1‑cp310‑cp310‑win_amd64.whl) and…

Lasermax
- 1
- 1
0
votes
1 answer
Error while pip installing EvalML on terminal
I am trying to install EvalML. I am getting an error, I am not able to understand what to do next.
the error is,
"Building wheels for collected packages: vowpalwabbitBuilding wheel for vowpalwabbit (setup.py) ... errorerror:…

shrey kothavade
- 1
- 1
0
votes
0 answers
I'm having a problem when import geopanas ==>ImportError: cannot import name 'pyproj_datadir' from 'pyproj.datadir'
ImportError Traceback (most recent call last)
in
----> 1 import geopandas as gpd
2 import matplotlib as plt
3 import pandas as pd
ImportError: cannot import name 'pyproj_datadir' from 'pyproj.datadir'…
0
votes
1 answer
Invalid projection when opening geopandas
I need to do some spatial operations in geopandas. I created the new conda environment and installed geopandas conda install --channel conda-forge geopandas. When I run the following simple code:
import geopandas as gpd
from shapely.geometry import…

Avto Abashishvili
- 363
- 1
- 9