Cannot set projection to be 4326, it's always 3857
- Dominant language
- C++
- Stars
- 3.1k
- Forks
- 430
- PR merge metrics
- No merged PRs in 30d
Description
It weird, this command generates the tiles in EPSG:3857 instead of 4326.
tippecanoe -s EPSG:4326 -o /home/project/output/output.mbtiles -f -pn /home/project/output/output_wgs84.json
Using the ogr command:
ogrinfo -al output.mbtiles
I get the following :
D:\Projets\NSim\tippecanoe\dockerTiler\output>ogrinfo -al output.mbtiles
INFO: Open of `output.mbtiles'
using driver `MBTiles' successful.
Metadata:
ZOOM_LEVEL=14
name=/home/project/output/output.mbtiles
description=/home/project/output/output.mbtiles
version=2
minzoom=0
maxzoom=14
center=-71.244541,46.811021,14
bounds=-71.244541,46.811021,-71.231423,46.815260
type=overlay
format=pbf
generator=tippecanoe v1.36.0
generator_options=tippecanoe -s EPSG:4326 -o /home/project/output/output.mbtiles -f -pn /home/project/output/output_wgs84.json
Layer name: output_wgs84
Geometry: Multi Line String
Feature Count: 67
Extent: (-7930906.025921, 5911282.257178) - (-7929445.736840, 5911971.762115)
Layer SRS WKT:
PROJCRS["WGS 84 / Pseudo-Mercator",
BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]],
CONVERSION["unnamed",
METHOD["Popular Visualisation Pseudo Mercator",
ID["EPSG",1024]],
PARAMETER["Latitude of natural origin",0,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8801]],
PARAMETER["Longitude of natural origin",0,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8802]],
PARAMETER["False easting",0,
LENGTHUNIT["metre",1],
ID["EPSG",8806]],
PARAMETER["False northing",0,
LENGTHUNIT["metre",1],
ID["EPSG",8807]]],
CS[Cartesian,2],
AXIS["(E)",east,
ORDER[1],
LENGTHUNIT["metre",1]],
AXIS["(N)",north,
ORDER[2],
LENGTHUNIT["metre",1]],
ID["EPSG",3857]]
...
MULTILINESTRING ((-7930767.46272116 5911427.7742549,-7930858.82885653 5911543.02696161,-7930867.78632078 5911553.77591871))
Contributor guide
Research direction
Reproduce the reported command with -s EPSG:4326 and inspect the generated MBTiles metadata and layer SRS using ogrinfo. Trace how tippecanoe v1.36.0 handles the projection option, and consider the issue resolved when the output reports EPSG:4326 instead of EPSG:3857.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100