Questions tagged [pyproj]

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

See also:

184 questions
0
votes
2 answers

How to convert the SQL geometry type to latitude (-90,90) and longitude (-180,180) in mssql?

I have a list of data with geometry column in the format of 0x6A7F0000010D340AF. I wand to retrieve the latitude and longitude in the range of (-90,90) and (-180,180). I have tried the following code: select geom.STY as lat, geom.STX as lon from…
NaHa
  • 1
  • 4
0
votes
1 answer

Winkel Tripel projection in Geopandas

I would like to use the Winkel Tripel projection with GeoPandas 0.8.1 Consider the following example. import geopandas as gpd world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) world = world[(world.name != "Antarctica") &…
BdB
  • 471
  • 5
  • 18
0
votes
0 answers

Recover third coordinate from two coordinates and corners

I have 3 geographic coordinates first_coordinate = [55.266346, 25.053268] second_coordinate = [55.266472, 25.053311] third_coordinate = [55.266370, 25.0532] Then I convert them into EPSG:3997: def convert(point): return…
native1989
  • 95
  • 3
  • 10
0
votes
1 answer

Installation pyproj does not work returned 127

I want to install pyproj on Debian on Docker. This is my script: FROM debian:latest RUN /bin/bash -c 'apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils && \ DEBIAN_FRONTEND=noninteractive apt-get install -yq \ …
Leo
  • 222
  • 1
  • 4
  • 15
0
votes
1 answer

Python - Pyproj Transform Returns inf for Blank Cell in CSV. How to ignore blank cell?

My Python code converts latitude and longitude using pyproj. It reads this from an existing CSV file and writes a new CSV file with new code. When it comes across a blank cell within the existing CSV file it writes in the cell of the new CSV file…
0
votes
1 answer

Read CSV, Change 2 Columns using pyproj Transform and save to new CSV

I'm very new to Python so apologies for my lack of understanding. I need to read in 2 columns (latitude & longitude) of a 4 column CSV file. Example below. ShopName Misc latitude longitude XXX 3 999999 999999 I then have…
0
votes
1 answer

Failed to build a docker container with pyproj

I'm trying to build a docker container that should contain pyproj package. I prefer to stay with python:3-alpine since it is so far the only way I have managed to install a python mariaDB client (hence the other docker commands). My Dockerfile FROM…
Tars Morel
  • 61
  • 7
0
votes
1 answer

How to create a scalebar using cartopy and matplotlib?

in respect to the previous examples in stackoverflow, I searched for other alternatives in order to create a scalebar. In my research, I verified that the Basemap class from mpl_toolkits.basemap see here. It has the "drawmapscale" method. This…
0
votes
0 answers

RuntimeError: b'no arguments in initialization list' (folium)

I have a problem, that I saw in several other questions : the following error message RuntimeError: b'no arguments in initialization list' when I execute this code : m = folium.Map([43.7,7.2], zoom_start=12,…
Elise1369
  • 259
  • 1
  • 6
  • 19
0
votes
1 answer

pyproj unexpectedly returns nan for azimuth (bearing)

I am trying to use pyproj inverse to get the forward bearing, backward bearing, and distance between two points, as discussed in the first answer here. However, I get 'nan' for any tries. As far as I know, I'm using the right ellipsoid. A related…
a11
  • 3,122
  • 4
  • 27
  • 66
0
votes
1 answer

Convert x,y to latitiude and longitude

If I have a map image where: The latitude and longitude of the upper left corner (x=0, y=0) are known The width and height of the image is known Zoom (z-axis) is known. Can we compute the latitude and longitude for other coordinates in the…
Adham Enaya
  • 780
  • 1
  • 11
  • 29
0
votes
1 answer

Installation of pyproj wheel file

Installations: Windows 10, 64 bit. Python 3.6.5 I am trying to execute pip install -r pyproj-1.9.6-cp36-cp36m-win_amd64.whl command. However getting below error: ERROR: Exception: Traceback (most recent call last): File…
Snehal Kakade
  • 75
  • 1
  • 7
0
votes
1 answer

How to speed up projection conversion?

I want to project many coordinates. For example, 4 million coordinates. First, I tested with 100 coordinates. The test result was 13.95 sec. In calculation, it takes 155 hours to process 4 million coordinates. Is there a good way to get results as…
Evan.Titer
  • 319
  • 2
  • 11
0
votes
1 answer

How do I change the crs projection using Geopandas in Python?

I'm trying to change the .crs from a cilindrical projection (WGS84 (lat/lon)) to a Mercator-projection. Some information can be found here (https://geopandas.org/projections.html). However it doesn't seem to work for me for this shapefile of…
Matthi9000
  • 1,156
  • 3
  • 16
  • 32
0
votes
0 answers

pip install pyproj fails with PermissionError

I am tearing my hair out here! I have this working in Gentoo on my main PC, now moving the program to a different server. I am running Ubuntu 16 with a Python 3.7 Virtual Environment setup. I am in the venv environment. I have set the PROJ_DIR to…
themetman
  • 51
  • 6