Questions tagged [proj]

PROJ is a cartographic projections and coordinate transformations library

PROJ is an open-source coordinate transformation software that transforms geospatial coordinates from one coordinate reference system (CRS) to another. This includes cartographic projections as well as geodetic transformations.

Resources

256 questions
0
votes
1 answer

Convert NZMG coordinates to lat/long

I have a bunch of NZ Map Grid coordinates, which I want convert to lat/long. Based on this question, here is what I tried. library(sp) options(digits = 11) # to display to greater d.p. Attempt 1: proj4string <- "+proj=nzmg +lat_0=-41.0 +lon_0=173.0…
flee
  • 1,253
  • 3
  • 17
  • 34
0
votes
1 answer

What is the alternate to npts function of basemap in cartopy?

I want to emulate the function of ntps which is in basemap.Geod class. Its function is described as follows: Given a single initial point and terminus point (specified by python floats lon1,lat1 and lon2,lat2), returns a list of …
0
votes
1 answer

Is it an orthogonal projection in the Nearside Perspective?

I'm currently working on world map visualizations. For now, I can use a home-made software for visualizations and point projections (Java), but I would like to upgrade the soft to be able to use a similar tool in Python. Thus, I wanted to use…
lou
  • 1
  • 2
0
votes
1 answer

Transforming coordinates using R - SWEREF to WGS84

I have some coordinated in SWEREF 99 TM which I cannot convert into WGS84 using the proj4 package in R. temp <- data.frame (x = c(598223, 598812, 598824, 598232, 597614, 597629), y = c(7095460, 7095426, 7094827, 7094227, 7094821,…
AEM
  • 919
  • 1
  • 9
  • 22
0
votes
1 answer

Why is sf::st_transform() returning an object with a different projection than used in the call?

I want to re-project my sf object using sf::st_transform(), but the projection of the transformed object is not the same as the projection I specified in the transformation call. Why? library(sf) #> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3 #…
treysp
  • 663
  • 6
  • 17
0
votes
1 answer

"Invalid projection" when creating a CRS

I am attempting to construct a CRS instance with PyProj to match a geographic shape to image bounds. With the following code pyproj.Proj(proj='aea', lat1=b[1], lat2=b[3]) I am getting the error: pyproj.exceptions.CRSError: Invalid projection:…
Evan
  • 174
  • 2
  • 10
0
votes
1 answer

How can I add a projection (i.e., epsg=102001) to a Geopandas DF that's in in esri.extra, NOT proj_def.dat file?

I have a Geopandas dataframe with a CRS of epsg:4326 that I would like to transform to a CRC of espg:102001 which has a proj.4 definition as follows: proj4_102001 = '+proj=aea +lat_1=50 +lat_2=70 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83…
tgmueller
  • 103
  • 1
  • 1
  • 6
0
votes
1 answer

Stair-stepping when converting from Cartesian to Here.com tiles

I'm trying to stitch together tiles onto a Windows directX 9 screen. My problem is that the tiles are stair-stepped on the screen. I think this is because on my Cartesian coordinate system has the same Y given the same latitude independent of X…
Mike L
  • 21
  • 3
0
votes
1 answer

Basemap and proj get different projection result

I am struggling to understand the projections using pyproj. for now my question is to understand the results of projection operations I have following coordinates that I project on x,y: from mpl_toolkits.basemap import Basemap import pyproj lon =…
grug
  • 51
  • 1
  • 4
0
votes
1 answer

Openlayers proj not defined issue

Openlayers (5.1.3) app bundled with browserify and babel: import {Map, View} from 'ol'; import TileLayer from 'ol/layer/Tile'; import OSM from 'ol/source/OSM'; import {bbox} from 'ol/loadingstrategy'; import proj from 'ol/proj'; ... var source =…
minisaurus
  • 1,099
  • 4
  • 17
  • 30
0
votes
4 answers

How to load proj4 for lat/long in highmaps using typescript and react

I would like to reproduce this highmaps example in react using typescript. However, the lat/long points are not being displayed which seems related to proj4 package as it is working in this javascript demo. I have tried it in a live demo. If I load…
Peterhack
  • 941
  • 4
  • 15
  • 34
0
votes
0 answers

Converting from UTM to Lat/Long coordinates given a Proj4 String

I would like to convert an Easting/Northing coordinate to Latitude/Longitude given the following information. Datum: QND95 / Qatar National Grid Proj4 String: +proj=longlat +ellps=intl…
Shahriar
  • 280
  • 2
  • 9
0
votes
1 answer

Proj4JS - Transformation 2.3.3 vs 2.4.3

Why in the heck in Proj4JS that 2.4.3 with the same code transforms coordinates completely different? See this fiddle. If you Swap the order of the proj4js resources on the left. You will see that 2.3.3 transforms accurately and 2.4.3 tranforms…
GrafixMastaMD
  • 139
  • 5
  • 15
0
votes
1 answer

Compiling proj-4.9.3 on windows 7

I have some troubles in compiling proj-4.9.3 with mingw530_32 : First like in this site : http://www.gaia-gis.it/spatialite-2.4.0-4/mingw_how_to.html#libproj I run : ./configure --without-mutex checking for a BSD-compatible install...…
SYG
  • 13
  • 2
0
votes
1 answer

What is the different between datum and ellps in pyproj?

I am converting from ECEF to lla using def ecef_to_lla(x, y, z): lla = pyproj.Proj(proj='latlong', ellps='WGS84', datum='WGS84') ecef = pyproj.Proj(proj='geocent', ellps='WGS84', datum='WGS84') lon, lat, alt = pyproj.transform(ecef, lla,…
nickponline
  • 25,354
  • 32
  • 99
  • 167