A library for performing conversions between cartographic projections.

learn more… | top users | synonyms

2
votes
0answers
26 views

Most efficient way to use UTM in leaflet

Our server is using UTM internally. We then send a large number of UTM Coordinates to display them in a custom made leaflet layer. First we transform (unproject) them into "normal" geographical ...
4
votes
2answers
31 views

Plot a Raster of Weather data in Leaflet JavaScript Map without generating server-side tiles?

I want to show different weather data I have as binary arrays on a server using leaflet. But I do not want to generate tiles on the server. For each point in an a array I have the coordinates in ...
1
vote
1answer
39 views

Pyproj: converting WGS84 to Robinson

I have a WGS84 coordinate pair (37.7749295, -122.4194155). I have an image that is a Robinson Map Projection of the world. I'm trying to write a python script to locate my WGS84 coordinate on my ...
0
votes
1answer
219 views

How to transform/convert Coordinate Reference System with Proj4 and php

Basically my question is: Can I combine the functions of proj4 with php in my server? For example, I would like to know if it is possible get data in WGS84 and transform in ETRS89. I need to get ...
1
vote
2answers
368 views

GDAL/proj4 equirectangular projection coordinate system units assumed by OGRSpatialReference and GDALDataset::GetGeoTransform()?

How do I configure my OGRSpatialReference object to specify an equirectangular projection system http://en.wikipedia.org/wiki/Equirectangular_projection where the affine geo-transform matrix (provided ...
0
votes
2answers
42 views

Dealing with custom projections (from prj file) in PostGIS (also GeoServer and OpenLayers)

Basically I want to perform spatial queries like distance calculations in PostGIS using data from shapefiles with different projections, some of which have no SRID code that I can find and also which ...
0
votes
1answer
176 views

Error when using proj4 in visual C++ (cannot compile project using proj4 lib)

I am using Proj4 version 4.8.0, after compiled by vc i had proj.dll and proj.lib But when i used proj.lib in my project vc++, i cannot compile that project. Here is my code : #include ...
1
vote
0answers
50 views

How do I use Proj4Leaflet projections correctly?

I'm loading data layers from a WMS server into a Leaflet map, and I need to give the user a choice of projections. For the WMS server requests, I just need to change the CRS parameter to a different ...
2
votes
1answer
330 views

OpenLayers and custom Proj4 Projection

ok so I'm a newbee in using OpenLayers. I try to map some planetary data on my webMap server using OpenLayers. I defined a proj4 projection as follow: Proj4js.defs["MYDATUM"] = "+proj=longlat ...
0
votes
1answer
162 views

converting projections using dotspatial or proj4

how can i convert projections using either dotspatial or proj4? i am making a program using sharpmap and dotspatial in VB.net have to convert a EPSG 4030 into a Lambert conformal conic projection and ...
8
votes
0answers
543 views

How to define Winkel Tripel in proj 4.8.0?

I have QGIS with proj 4.8.0 installed. I'd like to add Winkel Tripel projection which seems to be defined as +proj=wintri But that definition string does not work. Is this a bug in my proj version, ...
1
vote
1answer
37 views

Can't get SRS from PostGIS using Proj4 text

I'm having a problem transforming a point from the Australian MGA UTM datum (eg MGA Zone 51 http://spatialreference.org/ref/epsg/28351/) to WGS84 using GeoDjango. I've narrowed that down to a problem ...
2
votes
3answers
125 views

How to use PROJ4 to reproject a file

Unfortunately, GDAL does not support a particular projection I am trying to achieve (the ob_tran rotated pole projection), so I am trying to use PROJ4 to convert a geotiff file to the projection I ...
1
vote
0answers
41 views

Can't project ArcGIS Tiled Service for Esri-Leaflet

I'm following this example from the esri-leaflet docs. I have an ArcGIS Tiled MapService in ESRI:102696. So I'm trying to use Proj4Leaflet to project the service and use it in my application. I ...
0
votes
3answers
102 views

Transforming polygon using Proj4js

I am reading the Proj4js User Guide but cannot quite grasp it. I import the library <script src="lib/proj4js-combined.js"></script> Then, function init() { (...) // reading from ...
1
vote
1answer
38 views

Uncaught TypeError during proj4 transformation

I get: Uncaught TypeError: Cannot read property 'x' of undefined at proj4js-combined.js:2720 While executing this code (transforming polygon from one system to another): Proj4js.defs['EPSG:3765'] = ...
1
vote
0answers
54 views

Creating custom projections with Proj4

I'm reading into how to customise projections with Proj4 - specifically to achieve tilted projections such as the example below (from vis4.net) The Proj4 literature is pretty heavy going and having ...
6
votes
3answers
288 views

Using PROJ.4 library to transform from local coordinate system coordinates to global coordinate system using ground control points?

I have a point cloud whose coordinates are with respect to a local coordinate system. I also have ground control points with GPS values. Can I convert these local coordinates to a global coordinate ...
1
vote
1answer
139 views

Converting Lambert Conformal (x, y) of spheroid to (lon, lat) of NAD83 with proj/cs2cs?

Revised Trial: Correct? According to Andre Joost advice, I tried with "+towgs84=0,0,0", and the both two ways seem to get the same answer that mkennedy posted below. So, just to make sure, anybody ...
0
votes
0answers
124 views

Leaflet + proj4js + EPSG:2180

I'm trying to add a WMS layer in EPSG:2180. I get the definition for EPSG:2180 from here and I am using this guide on GitHub to make a new CRS definition, but I think it is corrupted. It is not ...
0
votes
1answer
71 views

Reprojecting vector layer in OpenLayers

I have a simple OpenLayers map, where I would like to display the OSM map (the base map, in EPSG:900913) with some points on top of it (a vector layer, in EPSG:3763). I use proj4js. I do convert a ...
0
votes
1answer
75 views

Scaling x,y coordinates in proj4

This question was asked before, but without answer. Let's say we have mercator map with given resolution (for simplicity in centimeters). Now let's get coordinates of (lat,lon) = (50, 15): $ proj ...
0
votes
0answers
60 views

How can I create Albers projection of Russia map?

I need a conic tranformation of map, so this code var map = L.map('map', { crs: new L.CRS.proj4js('EPSG:4326', '+proj=aea +lat_1=52 +lat_2=64 +lat_0=0 +lon_0=105 +x_0=18500000 +y_0=0 +ellps=krass ...
0
votes
1answer
53 views

Is it possible to get all projections form OGR?

I'm working on a project where the user can give my program so GIS data which may or may not have which projection it is using. So is it possible to get a list of all the projections from OGR or ...
5
votes
2answers
497 views

Stereographic projection of WGS84 ellipsoid on a plane[python]

I would like to ask you for help in following task. What I need to do is to derive local x,y coordinates from latitude, longitude, applying stereographic projection of WGS84 ellipsoid on a plane, ...
1
vote
0answers
64 views

Problem with custom projection in OpenLayers

I'm using OpenLayers 2 with Proj4JS 1.10. When trying to change the map's projection using Proj4js.defs['STEREOGRAPHIC:180,90'] = "+proj=stere +lat_0=90 +lon_0=180 +a=3396190.0 +b=3396190.0 +over=F ...
1
vote
0answers
39 views

How can I obtain the unit of a projection SRID?

Given a projection SRID, is there a way I can obtain the coordinates unit string (meter, degree, ...) ? In PostGIS for example, it looks like it is present in the srtext column of spatial_ref_sys. ...
2
votes
1answer
95 views

Shapefiles from Nationalgrid without a .prj file - what projection are they in?

Im working with these shapefiles: http://www2.nationalgrid.com/uk/services/land-and-development/planning-authority/shape-files/ They show pipelines & electricity grid of the UK. They do not ...
0
votes
0answers
19 views

How can I tell the accuracy of coordinates conversion by cs2cs? [duplicate]

For example, when I try this: cs2cs +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +to +proj=tmerc +lat_ 0=22.31213333333334 +lon_0=114.1785555555556 +k=1 +x_0=836694.05 +y_0=819069.8 + ellps=intl ...
2
votes
2answers
1k views

How to perform transformations using ProjNet?

While writing some unit tests I thought it would be convenient/possible to use ProjNet to convert from EPSG:4326 into several other coordinate systems (3875,3395). I figured it would be as easy as ...
1
vote
1answer
137 views

proj4js not convert y

Proj4js.defs["EPSG:2322"] = "+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs "; Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"; ...
0
votes
1answer
201 views

Convert from Gauss-Kruger to Bing coordinates / projection

I am trying to convert a shapefile with ogr2ogr from Gauss-Kruger (zone 4) to Bings coordinate system / projection using the advice given in ...
0
votes
1answer
435 views

Convert GeoJSON form EPSG 3857 to 4326 with JavaScript [duplicate]

Given a GeoJSON in EPSG3857: { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ -13720479.997764934, 5688254.733325758 ...
0
votes
1answer
221 views

problem using proj4js and Leaflet to transform coordinates

Sorry, this question is really simple (my simple brain must be doing something stupid)... I'm trying to use proj4js with Leaflet to convert a mouse click event from WGS84 coordinates into British ...
2
votes
1answer
33 views

WGS84 CRS without elipsoid

What's the difference between using CRS defined as +proj=longlat +datum=WGS84 +no_defs and a CRS defined as +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs Will using one or the other pse any ...
2
votes
1answer
101 views

Choosing correct proj4string in R for a set of points

I was given a set of points which I eventually will overlay with a polygon shapefile in R. The issue is that the person who provided me with the points did not give them to in long/lat coordinates but ...
2
votes
3answers
261 views

How to find and apply reprojection parameters?

I have a data set in one projection, and a shapefile in another, and I am trying to combine the two. I am using Python. I apologize for posting a "help me transform coordinates" question on this site ...
4
votes
1answer
162 views

GDALWARP and OGR2OGR / CS2CS not agreeing on transformation

I am trying to transform some data (both raster and vector) from WGS84 to a Croatian Coordinate system defined by: +proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=5500000 +y_0=0 +ellps=bessel ...
0
votes
0answers
34 views

Ob_tran in proj4js

I am trying to implement an OpenLayers/proj4js-based application based on this projection: +proj=ob_tran +o_proj=eqc +o_lat_p=90.0 +o_lon_p=0.0 +lon_0=180.0 +R=57.2957795131 The aim is to allow the ...
2
votes
3answers
138 views

Can someone recognize the CRS?

I'm using QGIS 1.8.0 and have some shapefiles with a "User Defined CRS" which I don't recognize. Is anyone able to recognize it? Here is an image of the settings I see on QGIS. Thanks in advance. ...
6
votes
1answer
1k views

use proj4 to specify Robinson projection with R ggmap and ggplot2 packages?

I want to project this map in robinson projection: library(ggmap) world <- map_data("world") ggplot() + geom_path(data = world, aes(long, lat, group = group)) ...
3
votes
2answers
199 views

Convert file with coordinates, keep record ID

I have the following sample data: 345 -515561.05 -1166540.03 456 -515542.01 -1166548.76 999 -515519.61 -1166552.19 789 -515505.29 -1166550.25 321 -515477.05 -1166546.82 201 -515431.12 -1166534.06 197 ...
11
votes
2answers
363 views

Huge differences between results for 7-param datum transform

I'm trying to transform a WGS84 lat/lon point 11d42'32.10629" E 5d12'56.75371" S in three different software packages (Proj4, GeoTrans and Leica GeoOffice) but I receive very big differences ...
2
votes
1answer
93 views

How to do a raster reprojection in QGIS with custom map parameter

I'd need to reproject a raster dataset in a new customized projection, but I'm fairly new at both QGIS and GDAL and I'm not exactly sure about how to proceed and what the exact syntax is. The ...
1
vote
1answer
603 views

How to determine latitude longitude point from a pixel within a MODIS tile?

I need to know latitude / longitude of each pixel in a MODIS tile image in HDF in order to reproject from sinusoidal (MODIS) to mercator (Google Maps). I Can read values from HDF in my C++ program, I ...
1
vote
1answer
210 views

PostGIS is rejecting an srid code for my projection. I've found a nearly identical projection w/ a legit srid. Will it work?

My projection is this: NAD 1983 StatePlane North Carolina FIPS 3200 Feet, which has a proj4 string that looks like this: +proj=lcc +lat_1=34.33333333333334 +lat_2=36.16666666666666 +lat_0=33.75 ...
3
votes
1answer
399 views

Are these two OGC WKT projections the same? And if so, why are their reference strings different?

So here is the .prj text of a federal shapefile dataset of all public airports in its native OGC WKT format: ...
1
vote
1answer
160 views

projection error on Leaflet map

I am trying to add a converted shapefile (now a geojson) to a Leaflet basemap, using EPSG 26986, so I tried using proj4leaflet to reproject it. However, I keep getting an error message "phi2z has ...
0
votes
0answers
137 views

proj/pyproj converted coordinates offset

I'm using pyproj to convert some coordinates from WGS84 to OSGB36. When mapped out the converted and unconverted don't map to the same places on a map. The OSGB36 coordinates are mapped about 100 ...
0
votes
1answer
117 views

Is there any library for converting projection transformation in php?

I would like to transform data from lat/long ETRS89 to y/x UTM ETRS89 through php. Any idea?