Questions tagged [pyproj]

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

See also:

184 questions
0
votes
1 answer

pyproj.database and pyproj.aoi import failed

I have installed the pyproj.2.6.1 version, and I am using the python3.8.8; I can't correctly import the module query_utm_crs_info from pyproj package. Here below the code : from pyproj import Proj, Transformer, CRS from pyproj.database import…
frank
  • 89
  • 5
0
votes
1 answer

Folium - Extracting an nxn image of mxm meters

I am using Folium on Python to extract maps. Given a coordinate, I want to extract an image of the mxm meters square around that coordinate. So, using pyproj, I project UTM to regular meters, create the mxm square and project back to UTM to get the…
Avatrin
  • 171
  • 1
  • 15
0
votes
1 answer

"Invalid projection" when calculating area of a polygon

I try to calculate the area of a polygon in km2 and projected in EPSG: 3857, but it doesn't recognize my crs raise GeodError("Invalid geometry provided.") pyproj.exceptions.GeodError: Invalid geometry provided. should I use another one? is the…
Marylin UH
  • 13
  • 3
0
votes
0 answers

OSMnx: Pyproj Projection error when when creating graph from OSM

I'm using OSMnx to pull data from Open Street Maps using the function: G= ox.graph_from_place('Alberta, Canada') But when I do I get the following error File "C:\Users\me\test.py", line 22, in G= ox.graph_from_place('Alberta,…
Beardo
  • 3
  • 4
0
votes
1 answer

How to get PROJ C++ to recognize grid directory?

I've not been able to actually get EGM96 to WGS84 transformations to work in PROJ C++. I have however, gotten what I want to work in python, via pyproj, like this: from pyproj import Transformer, CRS from pyproj.transformer import TransformerGroup,…
Krupip
  • 4,404
  • 2
  • 32
  • 54
0
votes
0 answers

Geopandas pyproj Error: pyproj unable to set database path. _pyproj_global_context_initialize()

since today i get the following error when import geopandas: pyproj unable to set database path. _pyproj_global_context_initialize() andy Ideas? Betriebssystemname: Microsoft Windows 10 Enterprise Betriebssystemversion: …
0
votes
1 answer

How to solve the lack of precision of the coordinates of the centroid points after a buffer?

When generating polygons by buffer (here squares), the geometric points used for generation have different coordinates than those taken by the .centroid method on the polygon after their generation. Here is an example with just one point. from…
Tim
  • 513
  • 5
  • 20
0
votes
2 answers

Python - using AND in an IF to reference 2 variables

I am trying to write a python function using the module pyproj which will do coordinate conversion based on two factors - the ending of the file name and the name of 2 rows. For example: if self.file_crs == 'IG' which is if the file ending is IG for…
0
votes
1 answer

Install PyProj as a layer in AWS Lambda

I'm trying to install Pyproj into Lambda. To do so, I've used this code: mkdir folder cd folder virtualenv v-env source ./v-env/bin/activate pip3 install pyproj deactivate mkdir pyproj cd pyproj cp -r ../v-env/lib64/python3.6/site-packages/* . cd…
0
votes
1 answer

Geopandas: buffer operation seems to ignore the unit of measure of the CRS

My goal here is to make a geodataframe from a couple of columns of coordinates in an existing dataframe, take those 1677 geographic points and add a buffer circle around each, then union the resulting polygons into a multipolygon. Where I keep…
Rico
  • 3
  • 4
0
votes
1 answer

reproject mesh points of vtu file using pyvista and pyproj

Is there a chance I can replace coordinates of a pyvista_ndarray by a ndarray? My objective is to reproject points coordinates of a vtu file (unstructured grid). The current coordinates of the mesh object are in the coordinate reference system EPSG…
jean Baba
  • 11
  • 4
0
votes
0 answers

Python graphing latitude & longitude using geopandas. Pryproj exception

Im attempting to plot, cell tower data (lat,long) from a CSV file onto a map using Python. Im getting this exceptions: Traceback (most recent call last): File "plotCellTowers.py", line 22, in geo_df = gpd.GeoDataFrame(df, File…
cyber101
  • 2,822
  • 14
  • 50
  • 93
0
votes
1 answer

pyproj in Python returning incorrect coordinates for NAD_1927_StatePlane_Wisconsin_South_FIPS_4803

I'm new to using geospatial data. I'm having trouble with pyproj getting back the correct longitude and latitude from a file with a different cooridinate system. I'm working with a file that has the Milwaukee city limits that is in State Plane…
JJF
  • 9
  • 2
0
votes
1 answer

Parsing a GeoJSON file into dataframe produces single unwanted duplicate, unable to find cause

I am working with Berlin postal code data obtained from the following link: https://tsb-opendata.s3.eu-central-1.amazonaws.com/plz/plz.geojson I am opening the file using requests.get().json() in python 3 and parsing the data in order to create a…
0
votes
1 answer

Why is Pyproj giving me infinity values?

I'm trying to convert from UTM coordinates (WGS84, zone 18N) to latitude and longitude. I'm using the following code: from pyproj import Proj x = [230144.41150306776] y = [3989937.673933774] wgs84 = Proj(proj="utm", zone=18, ellps="WGS84") lat, lon…