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
2
votes
1 answer

Proj4 Oblique Mercator giving strange results when alpha is between 90 and 270 inclusive

I have the following proj4 projection string defining an Oblique Mercator projection : +proj=omerc +lat_0=45 +lonc=-80 +x_0=0 +y_0=0 +alpha=45 +gamma=0 +k_0=1 For my input coordinate, I was using 0, 0. When I alter the alpha angle from 45 to the…
PeskyGnat
  • 2,454
  • 19
  • 22
2
votes
1 answer

C++ Convert Lat Long to BNG with Proj.4

Im creating a plugin for VBS2. In the program I can output a grid in either LAT LONG,UTM or MGRS. I need to be able to convert to BNG. I have managed to create a TKinter application in python that works using Proj.4 but now need to create it in C++…
Spriggsy
  • 196
  • 1
  • 18
2
votes
1 answer

cannot install rgdal in windows 64-bit

I have problems installing rgdal in windows 8.1, i installed OSGeo4W (is it mandatory btw?), understood that I have to install proj4, but do not really understand what to install on page, I read some documentation, but I feel really ignorant and…
Irene
  • 744
  • 1
  • 12
  • 36
2
votes
1 answer

Pandas error with basemap/proj for map plotting

I ran the Python code below that is an example of "Plotting Maps: Visualizing Haiti Earthquake Crisis Data" on a book, Python for Data Analysis. Page 242-246 The code is supposed to create a plot map of Haiti but I got an error as below: Traceback…
ronnefeldt
  • 2,083
  • 23
  • 24
2
votes
2 answers

Store the result of a command in a variable

I'm trying to store the results of a command in a variable, but I can't figure out the correct syntax. This command works perfectly: echo "-868208.53 -1095793.57 512.30" | cs2cs +init=esri:102067 +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 +to…
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155
2
votes
1 answer

How to convert mapinfo projection to proj4

I have some projection string exported by MapInfo, but I can't find way to convert them into proj4 string, could any one help me with this? Here is the string: "CoordSys Earth Projection 8, 104, "m", 29, 0, 1, 0, 0" "CoordSys Earth Projection 8,…
Edgar
  • 273
  • 1
  • 3
  • 12
1
vote
0 answers

What is wrong with this Proj4 transformation?

I'm implementing support for WMS maps in my company's software. Servers return a list of projections their maps are available in, but our software only displays data in WGS84 (lat/lon or UTM), and not all servers return the "CRS:84" or "EPSG:4326"…
David
  • 13,360
  • 7
  • 66
  • 130
1
vote
0 answers

Creating a buffer in meters, Azimuthal Equidistant projection

I can not deal with a strange bug. At the input: the coordinate of the WGS84 point and the radius in meters. The task is quite simple, you need to build a buffer around this point so that it is correctly displayed in WGS84…
luzhskij
  • 31
  • 6
1
vote
1 answer

Difference in Z result of ST_Transform

Query: with geom as ( select st_transform( st_geometryfromtext( 'POINT Z(114.19515060316667 22.3979100265 81.8574198829997)',4326) ,2326)as a) select st_x(a),st_y(a),st_z(a) from geom; First server: (Z transformed …
Dez
  • 11
  • 2
1
vote
1 answer

Error when setting CRS with Rasterio in python

I'm testing out rasterio for a project, but get some errors regarding CRS. I get this error: File "rasterio\crs.pyx", line 590, in rasterio.crs.CRS.from_epsg rasterio.errors.CRSError: The EPSG code is unknown. PROJ: proj_create_from_database:…
Johs
  • 73
  • 1
  • 7
1
vote
0 answers

Error: PROJ: proj_create: unrecognized format / unknown name

I have installed Terria JS and Cartoview. when i upload layers in Cartoview then they are uploaded but the following errors come: Error Message: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name,…
1
vote
0 answers

Trying to build GDAL from github using Visual Studio 2019 on windows 64

I want to use GDAL for a project that I am working on which is written in C++ using Visual Studio 16 2019. I am getting errors and I am finding difficulties in building the library. The steps I followed are following: I have downloaded the source…
Nithya
  • 21
  • 1
1
vote
1 answer

Transforming point from EPSG:3844 to EPSG:3857

I'm having an issue transforming a point from EPSG:3844 to EPSG:3857 using Proj4JS. The transformation it performs seems off compared to the result given by PostGIS, pyproj, rgeo-proj4 or even epsg.io. PostGIS sample: select…
mrk
  • 11
  • 2
1
vote
0 answers

How to insert the correct parameter in order to visualize wms maps in leaflet (proj4)

I'm struggling to visualize WMS-layers from a Rest-service using Leaflet. All i see currently is a gray map, not changing anything when moved. The layers i want to visualize are located in Faroe Island, and are therefore using the CS…
Ólavur Nón
  • 161
  • 1
  • 13
1
vote
1 answer

Using World Files (jgw, pgw) in Leaflet

I have a list of image files along with their corresponding world files in jgw, pgw format etc. how can I use the world files to get the real world coordinates of these images so I can generate them on my world map on leaflet? I have looked into the…