[Tile-serving] [openstreetmap/osm2pgsql] Problem using custom projection EPSG:28992 (Issue #1672)
Just van den Broecke
notifications at github.com
Fri Apr 29 10:44:09 UTC 2022
## What version of osm2pgsql are you using?
```
osm2pgsql version 1.6.0
Build: None
Compiled using the following library versions:
Libosmium 2.17.3
Proj [API 6] 8.2.1
Lua 5.3.6
```
## What operating system and PostgreSQL/PostGIS version are you using?
Ubuntu Jammy (22.04) Docker Image.
## Tell us something about your system
16GB 8core Docker Desktop on MAcOSX.
## What did you do exactly?
osm2pgsql with custom projection EPSG:28992 via `--proj=28992`.
## What did you expect to happen?
Data in PostGIS in EPSG:28992.
## What did happen instead?
Data in PostGIS ok with EPSG:28992 but coordinates are completely wrong, look like still in EPSG:3857, Web Merc.
## What did you do to try analyzing the problem?
Spent quite some time. Bashed into Docker Container, installed `proj-bin` since I suspect something wrong there.
```
$ projinfo EPSG:28992
PROJ.4 string:
+proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs +type=crs
```
This seems wrong, it is missing the `towgs84` parm. Hard to analyze as there is no `epsg` file anymore.
The right proj string as I use in e.g. Mapnik, should be:
`<!ENTITY srs28992 "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs">
`
Maybe a proj issue after all, or is there something I can patch?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1672
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/issues/1672 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220429/955578ff/attachment.htm>
More information about the Tile-serving
mailing list