Questions tagged [proj4js]

Proj4JS is an open source JavaScript library that transforms map coordinates between different coordinate systems and projections.

Described as being a JavaScript port of the popular Proj.4 C library, in reality Proj4JS is only a loose port. It is a little easier to use, but can use the same specifications (eg. abbreviations for specific projections).

Due to its use as a client JavaScript lbirary, Proj4JS is much more lightweight. Whilst Proj.4 supports all but the most esoteric continuous map projections, Proj4JS only supports a subset of the most popular. Similarly, Proj.4 can be loaded with databases of various coordinate systems (eg. EPSG codes) but Proj4JS is usually only loaded with a handful of those used at runtime.

Further information and source code can be found here:

http://proj4js.org/

123 questions
0
votes
1 answer

proj4.js how can I convert UTM to EOV coordinate?

I using javascript for converting UTM to WSG84 lon lat with the following code where the utm_zone contains the UTM zone number. var utm = "+proj=utm +zone="; utm = utm + "" + utm_zone; var wgs84 = "+proj=longlat +ellps=WGS84 +datum=WGS84…
L. Kvri
  • 1,456
  • 4
  • 23
  • 41
0
votes
0 answers

Leaflet: Fractional and irregular zoom levels from own tiles {z}

I'm using my own tile images to display in Leaflet. I know that it's possible to use fractional zoom levels, e. g. {1, 1.25, 1.5} so that Leaflet automatically enlarges the tiles according to the fraction. What I want to do, though, is to use tiles…
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
0 answers

How to get the hc-transform for a custom map?

I have a GeoJson from brazil which is a more detailed version of the official HighMaps Brazil map. In this JSON I have the states divided into its mesoregions. When I tried to draw a point on top of this GeoJson I got the message telling me that…
João Menighin
  • 3,083
  • 6
  • 38
  • 80
0
votes
1 answer

Why I can't get correct value when used proj4js's method transform() (wgs84 -> utm-k)

I want to get correct value transform in proj4js. coordinate converted value wgs84 (EPSG:4326) -> utm-k (EPSG:5179) I tried to get coordinate converted value but i couldn't get correct value. But other convert values were correct. Coordinate is 제주도청…
0
votes
1 answer

Openlayers 4 map is blurry when specifying tilegrid

I am upgrading from OL2 to OL4. The OL2 version is running at vegkart.no. I have run into a problem where the map gets blurry when tileGrid is specified. Without tileGrid the map looks clear, but features drawn are offset. Here is a minimal version…
Marvin
  • 95
  • 1
  • 2
  • 10
0
votes
1 answer

Precision error when transforming coordinates using proj4js

I am using the library Proj4js to transform coordinates. I'm transforming coordinates from EPSG: 23029 to EPSG: 4326. The problem is that by transforming the coordinates there is some deviation from the precision used in the processing load. I…
0
votes
1 answer

Custom map with Highmaps adding mappoint series in latitude and longitude using proj4js

I'm trying to create a map using Highmaps. Data come from two data source in GeoJson format, one for the boundaries of the country and another one to display some cities. The boundaries is perfectly displayed, but the problem comes when I add the…
Giox
  • 4,785
  • 8
  • 38
  • 81
0
votes
1 answer

Rotate geojson feature with Leaflet

I have a GeoJson feature that is rendered with leaflet and proj4(ESPG:31467). Now I want to rotate that feature so that it NW corner points to NE, e.g. 90 deg rotation. Is there a way to do this? Or can you give me hints how to address this issue…
George
  • 25
  • 2
  • 8
0
votes
0 answers

OpenLayers3 GeoJSON with CRS throws error

I have a geoJSON resource as follows: { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [...] } When I try to create the layer using: var myLayer = new ol.layer.Vector(…
MoreScratch
  • 2,933
  • 6
  • 34
  • 65
0
votes
1 answer

coordinate conversion javascript library Pro4js wrong results

I am trying to use Proj4js, to convert to and from a couple(sweref99tm, rt90, kkj3, wgs84) of coordinates. For some reason I am getting wrong results. Here are my codes which result into wrong results, please check and help me fix…
rkrara
  • 442
  • 1
  • 6
  • 17
0
votes
1 answer

lat lon coordinates (WGS84) conversion to local x, y plane

Currently I'm trying the following: I have points from google earth (WGS84) which I want to transform to a local x,y coordinate system: a tangential plane with y positive from south to north and x positive from west to east. There is no need for the…
Yorian
  • 2,002
  • 5
  • 34
  • 60
0
votes
1 answer

Can't use specific projection with OpenLayers

I'd like to use specific projection with OpenLayers. I linked proj4js with my html OpenLayers Test