Custom coordinate system / EPSG / non-Mercator tiles #163
Replies: 5 comments 4 replies
-
Any progress on this? Happy to consider putting some funds towards it if required. |
Beta Was this translation helpful? Give feedback.
-
Hello, Just a short note to dev teams: Proj4Js (https://github.com/proj4js/proj4js) and Proj aka "Proj4" (https://proj.org/ and https://github.com/OSGeo/PROJ) are not the same! Proj4Js reproject from a csr to another by a "in the middle" conversion using WGS84 (from my memory, this have to be verified). While the Proj (all other systems) use a SQLite database (started version 7 and above, again from my memory). This is important because you can encounter small differences if you do the same transformation with Proj4Js and Proj 9 (or any version using database). In some rare cases, you can found until ~400 meters of difference! Moreover the API is not exactly the same between both libraries. So you could have to create some kind of wrapper to expose the same Maplibre API for Web and native versions. For native versions: take care of the default values used by version 4.x, 5, 6, 7 and above! Please look at this page for details: https://proj.org/usage/differences.html My 2 cents ! :) |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Our use case is more web. How different would the fixes be between the two repositories? |
Beta Was this translation helpful? Give feedback.
-
Our maps use a simple Cartesian plane where origin is 1,1. |
Beta Was this translation helpful? Give feedback.
-
Initialize the entire view of the map in a non-Mercator projection.
Loading & displaying vector tiles produced in custom coordinate systems.
When map object is instantiated, allow to specify EPSG coordinate system and tilematrix. This means internal grid for both vector and raster tiles is going to be mapped to a custom coordinates. All LatLon calls are going to be transformed to internal CRS via Proj4js JavaScript - and new function for reading and setting the local coordinates are going to be available - wrapper around a alot of calls.
Initial assessment of effort, plan, ideas for implementation as wrapper or direct, prototypes, implementation, tests, examples.
Data are ready: https://www.maptiler.com/coordinate-systems/
Modifications of https://maplibre.org/maplibre-gl-js-docs/api/geography/
Ideas / tickets towards this direction should be proposed in different CORE projects of MapLibre.
Ported from https://roadmap.maplibre.org/c/91-custom-coordinate-system-epsg-non-mercator-projection
Beta Was this translation helpful? Give feedback.
All reactions