Questions tagged [pyproj]

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

See also:

184 questions
2
votes
1 answer

Shapely / Pyproj find area (in m^2) of a polygon created from latitude and longitude

I want to find the area in square metre for a polygon created from latitude and longitude. import shapely.ops as ops from shapely.geometry import Polygon from pyproj import transform, Proj from functools import partial value = [ [83.3203125,…
python_user
  • 5,375
  • 2
  • 13
  • 32
2
votes
0 answers

cannot import name Transformer from pyproj

I am trying to use Transformer from pyproj using the code below. I, however, get an error attached. What could be the issue? ImportError Traceback (most recent call last) in…
Zhuwaki
  • 21
  • 4
2
votes
1 answer

attributeError : module 'pyproj' has no attribute 'CRS'

map dbscan import geopandas as gpd import contextily as ctx import pyproj from mpl_toolkits.axes_grid1.inset_locator import inset_axes crs_4326 = pyproj.CRS('EPSG:4326') # Latitude Longitude system crs_3857 = pyproj.CRS('EPSG:3857') #…
clomo
  • 21
  • 1
  • 2
2
votes
2 answers

Why does pyproj.Proj forward projection not seem to account for lat lon origin?

I am getting confused about how projections using pyproj.Proj are defined with respect to a point of tangency / lat lon origin. Consider the following code: import pyproj p = pyproj.Proj('+proj=tmerc +lat_0=55 +lon_0=-1 +a=6378137 +b=6356752.3…
Liam Deacon
  • 904
  • 1
  • 9
  • 25
2
votes
1 answer

Lat, Long & RSSI to 3D figure

I've been trying to combine lat & long coordinates with wifi RSSI value from wardriving data sets to get a 3D mesh - like this. So to have: X,Y,Z = Lat, Long, RSSI So far I have exported the X,Y,Z to a CSV file and tried to import it to blender…
Warni
  • 43
  • 8
2
votes
3 answers

Installation error:Pyproj

I try to install pyprog from cmd but I've the following error. Who can explain me to fix it?! Collecting pyproj (from LatLon) Using cached pyproj-1.9.5.1.tar.gz Complete output from command python setup.py egg_info: using bundled proj4.. …
2
votes
0 answers

Converting lat, long to x, y in state plane with pyproj

I am having trouble transforming a dataframe I have of latitude and longitude coordinates to the state plane projection. I've attempted to use code I found in another post but it keeps throwing "AttributeError: 'float' object has no attribute…
Lyss C
  • 39
  • 5
2
votes
0 answers

Changing map projections between lcc and cea using python pyproj

I am using pyproj.Proj to convert model and satellite data to a common grid so that I can upscale the model data and compare it to the satellite observations. The satellite observations are given in the EASE v2 grid while the model output is given…
josteibl
  • 21
  • 2
2
votes
1 answer

Geod ValueError : undefined inverse geodesic

I want to compute the distance between two lon / lat points by using Geod class from pyproj library. from pyproj import Geod g = Geod(ellps='WGS84') lonlat1 = 10.65583081724002, -7.313341167341917 lonlat2 = 10.655830383300781,…
Chr
  • 875
  • 1
  • 10
  • 27
1
vote
1 answer

How to create a bounding box given in distance, projection, and point to select points given in coordinates?

Given a a point (lat, lng) and a projection crs create a bounding box square given by miles to select rows in a geopandas GeoDataFrame where the geometry is made up of other points. Seems like pyproject should do it but I can only find examples of…
user17130
  • 241
  • 1
  • 6
1
vote
1 answer

Does geopandas to_crs() method access the internet for ESRI Information?

This is a general inquiry regarding the utility of the python geopandas module and attempting to transform a geodataframe to a new coordinate reference system (crs). When a user initializes the geopandas to_crs() method to transform the geodataframe…
Jason
  • 181
  • 2
  • 14
1
vote
1 answer

Calculating Geographic distances between each row of X,Y points in a python dataframe

Python Beginner here. I have a python dataframe consisting of X,Y points that looks similar to this: What I want to do is look at row 1 and find the distance between row 1 and row 2 and output the new distance between those 2 X,Y locations to a new…
1
vote
2 answers

Transform laltitude and longitude in python pandas using pyproj

I have a dataframe as below: df = pd.DataFrame( { 'epsg': [4326, 4326, 4326, 4203, 7844], 'latitude': [-34.58, -22.78, -33.45, -33.60, -30.48], 'longitude': [122.31, 120.2, 118.55, 140.77, 115.88]}) Here is the function to…
kitchenprinzessin
  • 1,023
  • 3
  • 14
  • 30
1
vote
1 answer

Converting contours in an image to lines in shapefile using python

I have processed a screenshot from google maps using OpenCV and identified some contours for the red road sections, and I want to project these contours to a shapefile. I have searched but couldn't find an answer that followed the same purpose. Here…
ali bbb
  • 25
  • 4
1
vote
0 answers

Attempting to unpack a non-sequencepylint(unpacking-non-sequence) with pyproj transform

I have some code that runs the pyproj transform function: webm_to_wgs84_transformer = Transformer.from_crs(CRS("epsg:3857"), CRS("epsg:4326")) lats, lons = webm_to_wgs84_transformer.transform( np_array_x.tolist(),…
jlcv
  • 1,688
  • 5
  • 21
  • 50
1 2
3
12 13