Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

Have problem in transform from EPSG:3857 to EPSG:3395

I'm using maplibre-gl map engine. I can't get the right tile when switching from EPSG:3857 to EPSG:3395. It looks like the only difference is the y value. const transformCoord = function (_, z, x, y) {...
jacky chen's user avatar
2 votes
1 answer
108 views

OpenLayers issue with Proj4

I was using OpenLayers 10.5.0 with Proj4 2.19.5 in a Vue3/Typescript project and this morning I upgraded those version to OL 10.6.1 and Proj4 2.19.7. Now I'm facing this typing issue: error TS2345: ...
FloCAD's user avatar
  • 314
0 votes
0 answers
43 views

Reprojecting Raster Tiles in BNG format on React Native Maps?

I am using template URL to display tiles from a third party API. That API for tile serves the tiles in 27700 format. React Native Maps Template URL expects it in 3857 or similar web mercator formats. ...
Awais Korai's user avatar
0 votes
2 answers
223 views

proj4js converts EPSG 3946 into EPSG 4326, but the points are not located well

I have a .json file of points to put on a Leaflet map, and I have used the proj4js to convert them from the EPSG 3946 projection into the WGS84 EPSG 4326 one. All worked, but the points are not ...
1936Gloria's user avatar
0 votes
1 answer
80 views

Highcharts / highmaps GeoJSON map appears distorted and squashed

I have created a simple chloropleth of UK regions in highcharts, inclusive of countries other than England (North East, Wales, West Midlands, etc.) and I am using this public domain GeoJSON map. I am ...
tkfa's user avatar
  • 5
1 vote
0 answers
195 views

How do I restructure React-Leaflet from javascript using a EPSG:27700 Ordnance Survey map?

Would appreciate some help in understanding and restructuring a working javascript leaflet map into react-leaflet. I have a working javascript leaflet script that shows an OS EPSG:27700 map using the ...
Berto's user avatar
  • 11
0 votes
0 answers
257 views

How to create crs for leaflet using pro4js

I am a newbie to leaflet, and need an crs function sample to create an system that can change the coordinate system from EPSG:3857 to EPSG:3826. The basic library for coordinate I hope to use is ...
abramhum's user avatar
  • 469
1 vote
0 answers
104 views

what is the usage of transform in source code of proj4leaflet.js

I am a newbie to leaflet.js, and recently, I need to create a CRS in leaflet for coordinate system change. The transformation library I used is proj4leaflet.js. And the problem is when I read the ...
abramhum's user avatar
  • 469
0 votes
0 answers
57 views

I am getting incorrect north and east values after carthographic projection using PROJ library in c++

I am getting incorrect north and east values after carthographic projection from global wgs84 crs(i.e., EPSG:4326) to crs Korean 1985/west belt using proj c++ library. I got an error of approx. 1.5 cm ...
Rohith dreamtns's user avatar
0 votes
1 answer
666 views

How to use the provided "PROJ4 string" while using "Cartopy" in python?

I have sea ice concentration values, x and y in meters (3 vectors with the same dimension) and I have the PROJ4 string: "Northern Hemisphere: +proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=...
Ari's user avatar
  • 11
2 votes
1 answer
629 views

How can I convert a point in EPSG:25832 to display it in Leaflet?

Say I have the following point in EPSG:25832: [799325.792813, 5828257.530253] I am having trouble displaying it on a leaflet map. Using proj4, I was able to convert it to EPSG:3857 import proj4 from '...
Wirksames Design's user avatar
1 vote
0 answers
984 views

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 ...
Muhammad Waqar Anwar's user avatar
0 votes
1 answer
580 views

Changing the Projection of the geoTiff to WGS84 in javascript/node.js

I am working in a react.js project where I am having a geoTiff file of projection "EPSG: 24378" and I want to show it in the leaflet map. I am using "georaster" and "georaster-...
Sonu Gadewar's user avatar
1 vote
1 answer
276 views

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....
mrk's user avatar
  • 131
1 vote
0 answers
143 views

Microscope Images with overlays in OpenLayers

I am trying to build an viewer based on OpenLayers to view microscope images with overlays. The images are > 50000 px x 50000 px and show a region of ~ 100 mm x 100 mm. In addition to the images, I ...
c3z's user avatar
  • 11
0 votes
1 answer
1k views

Transforming coordinates from EPSG:3857 to EPSG:32633 using Proj4js

I'm trying to transform coordinates from EPSG:3857 to EPSG:32633 using Proj4js. I added this script and the code is as follows: <script src="https://cdnjs.cloudflare.com/ajax/libs/...
Lucijan Troha's user avatar
0 votes
2 answers
894 views

Convert coordinates to corresponding place in table

I have a table with data of an area from west europe. I want to convert coordinates to a value in this table. The problem is similar to this question, but I'm not sure how to work this out as I've ...
Kipnoedels's user avatar
  • 1,456
3 votes
4 answers
3k views

Not able to import proj4 in angular project

When I am trying to import proj4 in my angular project I am getting an error Error: export 'defs' (imported as 'proj4') was not found in 'proj4' (possible exports: default) I am importing as import ...
Piyush's user avatar
  • 609
2 votes
0 answers
651 views

Error in sp::CRS(SRS_string = "EPSG:24547") : NA

I am encountering an issue related to assigning CRS in sp package If I run: sp::CRS(SRS_string='EPSG:4326') sp::CRS("+init=epsg:4326") I get respectively those two errors: Error in sp::...
Mukhtar Abdi's user avatar
0 votes
1 answer
1k views

Openlayers - Turf.js Get distance between two Points using EPSG:3857

I want to show the user the distance from the last drawn point to the cursor. In order to do so I need to add a change listener to the geometry of the feature. Every time the user moves the mouse this ...
Stephen's user avatar
  • 1,213
1 vote
1 answer
2k views

Is there a way in OpenLayers to render EPSG:3857 tiles on an EPSG:4326 map?

I have a map in the EPSG:4326 projection, and I'd like to use an EPSG:3857 tileset such as the one from Mapbox. However, I've so far not been able to make it work. In this discussion ahocevar explains ...
Matthias's user avatar
  • 15.8k
0 votes
1 answer
316 views

Highcharts Map bubble on Pacific Centered World map

We have a requirement of map bubble on a pacific centered world map. We have achieved the part of pacific centered world map using the https://www.highcharts.com/forum/viewtopic.php?t=36545 but when ...
snehalfalke's user avatar
0 votes
1 answer
1k views

Proj4js - convert WGS84 to UTM (military grid reference system)

Very new to the proj4js library and most things geo-spacial related, so getting my head around all the naming conventions and different types of coordinate systems. Essentially I'm trying to take a ...
hyprstack's user avatar
  • 4,229
1 vote
0 answers
138 views

Is setView impacted by CRS change?

I'm using the French IGN Leaflet extension (which use Proj4Leaflet internally) to display maps with a different coordinates system (Lambert 93 and not WGS 84). I would like to know if there is a way ...
SbComponents's user avatar
1 vote
1 answer
3k views

How to convert WGS84 coordinate to UTM?

How can I convert geo coordinates from WGS 84 to UTM using JavaScript? I tried using proj4js, but it yields these coordinates: 32U 5114272 1633427, whereas external sources tell us, that 32U 688260 ...
slartidan's user avatar
  • 21.8k
0 votes
1 answer
342 views

Google app scripts proj4js library integration [duplicate]

Good people of stackoverflow. I would like to write a custom function in google sheets for coordinate transformation. The function shuld transform coordinates in Slovene natioanl grid (EPSG: 3912) to ...
GregorS's user avatar
  • 13
0 votes
1 answer
1k views

Converting from WGS84 to EPSG:27700 raster tiles without drawing a map

Using this example from OS Data Hub - https://labs.os.uk/public/os-data-hub-examples/os-maps-api/zxy-27700-basic-map I can get a list of tiles displayed on the map, I would like to get the coordinates ...
Ben's user avatar
  • 181
0 votes
1 answer
738 views

Openlayers - transform polygon from a specific projection like EPSG:28992

How can I add a simple polygon with a specific projection to my map? The polygon is valid, I checked before. coordinatesPolygonInRd = [ [ [173563, 441818], [173063, 441818], [173063, 444318], [...
tm1701's user avatar
  • 7,723
0 votes
0 answers
212 views

Proj4Leaflet converting coordinates of map center

Please help me, why this is not working: console.log(proj4('EPSG:2180', [map.getCenter()])); while this is working fine: console.log(proj4('EPSG:2180', [21,52])); Console shows [NaN, NaN]... What ...
falqn's user avatar
  • 1
3 votes
1 answer
1k views

Vertical alignment of TMS tiles in Leaflet using EPSG:25832 projection

I am using Leaflet with Proj4Leaflet to work with tiles in 25832. The application is fairly simple: I am trying to overlay tiles in EPSG:25832 onto a omniscale basemap. I have copied the individual ...
Timothy Dalton's user avatar
0 votes
0 answers
292 views

Highchart map not loaded - Angular & proj4

I'm trying to load a map chart using highchart but the map won't display. The map seems to be properly loaded. I'm using Angular and it's officiel highchart wrapper. Also proj4 is needed to have lat &...
Véoth's user avatar
  • 91
0 votes
1 answer
961 views

Using a specific nadgrid with Openlayers 6 / Proj4js

I have an issue with reprojecting vector data from one coordinate system to another by using proj4js. The data source uses a Gauss Kruger 2 Projection (EPSG: 31466) and I want to convert it to EPSG:...
yax's user avatar
  • 48
0 votes
1 answer
632 views

proj4 convert world coordinates to custom local frame aka how to set proj.def()

here is a world coordinate for the center of river north, chicago 41.892571, -87.630712 and here is where i want my coordinate system to be based from 41.881984 -87.629437 (south of river north in the ...
Jake.JS's user avatar
  • 3,476
0 votes
1 answer
7k views

Leaflet : TypeError: coordinates must be finite numbers

I'm trying to use Leaflet with a specific projection EPSG:2169 (Luref, or Luxembourg). I saw that if I don't use a "standard" projection like WGS84, I have to use Proj4Leaflet and reference it to the ...
JCB's user avatar
  • 109
0 votes
1 answer
767 views

Reprojection issue while trying to recode an OpenLayers function

Because of conflicts between some libraries (prototype.js and pro4js) i need to rewrite a function of OpenLayers. But even when i try to use the exact same code than on their github, the result ...
PopHip's user avatar
  • 768
3 votes
1 answer
2k views

I can't transform geometries to a projection defined in proj4.defs in openlayers 5.3

I have a Node mapping application that uses openlayers V5.3.0. When I try to transform geometries from EPSG:4326 to a projection defined using proj4.defs I get this error message: TypeError: Cannot ...
Graham H's user avatar
  • 157
0 votes
1 answer
1k views

Bundling proj4js with webpack leads to "Unexpected token m in JSON at position 0"

I try to include proj4js (2.5.0) as an ES6 module in a webpack (4.27.1) project. import proj4 from 'proj4'; That leads to this error: ERROR in ./node_modules/proj4/package.json Module parse failed: ...
anste's user avatar
  • 148
-1 votes
1 answer
389 views

How to figure out resolution array from user inputted ArcGIS projection data

I have a Leaflet based mapping solution that uses ArcGIS map configuration supplied by a user (I have no idea what it will be, they will customize it with their own ArcGIS services). The issue is that ...
TK11778's user avatar
  • 11
1 vote
0 answers
411 views

Trouble performing projection-transformation of coordinates, for use in Leaflet

I am able to load a leaflet map and add figures: https://jsfiddle.net/user3493503/sdLtvrew/ I like to use another baselayer, and am able to do it with a key. https://jsfiddle.net/user3493503/s9fyxem4/...
user3493503's user avatar
0 votes
1 answer
735 views

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 = "+...
L. Kvri's user avatar
  • 1,752
0 votes
0 answers
228 views

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 ...
Moehrengulasch's user avatar
5 votes
2 answers
2k views

angular & migration openlayers to ol & proj4js

Tried to migrate an angular-based project using openlayers away from deprecated openlayers-npm-package to recommended ol-npm-package. By debugging i realized that i had a problem with the previously ...
user10324080's user avatar
0 votes
1 answer
4k views

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....
GrafixMastaMD's user avatar
0 votes
0 answers
1k views

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 ...
João Menighin's user avatar
4 votes
1 answer
4k views

How to import Proj4js to use with Highmaps?

I have a Vue application that is using highchart with the vue-highcart component to plot maps. I need to plot points on this maps based on the Latitude and Longitude and, according to Highmaps ...
João Menighin's user avatar
2 votes
1 answer
4k views

Proj4Leaflet transform from 4326 to 3857 in Leaflet

I am working on Leaflet from last week and this issue is killing me. The database returns coordinates to create a Leaflet marker (working with default Map.CRS EPSG3857), so I decide to transform the ...
Es Noguera's user avatar
1 vote
1 answer
7k views

trying to use EPSG:3857 in Leaflet

I am trying to make leaflet use EPSG:3857 as an input coordinate system. I use porj4leaflet to achieve this. I have defined my map instance like this: var map = L.map('map', { center: [8378860.13, ...
mufasa's user avatar
  • 1,364
1 vote
1 answer
555 views

How can I resolve this Leaflet error? getPixelWorldBounds()

Does anyone know what could be causing the following error when trying to create a leaflet map? It has something to do with the custom CRS. I can't post much of the code for various reasons so if ...
Abu Sulaiman's user avatar
  • 1,507
0 votes
1 answer
361 views

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 ...
Jays's user avatar
  • 75
0 votes
1 answer
1k views

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 ...
Marvin's user avatar
  • 105