omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
710 stars 156 forks source link

Incomplete Map when acessing cities in table osm_places #208

Open ghost opened 4 years ago

ghost commented 4 years ago

I have built a system based on

Mapserver 7.4.2 mapserv -v MapServer version 7.4.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Debian Stretch

Planet PBF Sep 12 10:18 planet-latest.osm.pbf

imposm version 0.8.1

postgresql vers 11

postgis ii postgis 2.5.2+dfsg-1~exp1.pgdg90+1 amd64 Geographic objects support for PostgreSQL ii postgis-doc 2.5.2+dfsg-1~exp1.pgdg90+1 all Geographic objects support for PostgreSQL -- documentation ii postgresql-11-postgis-2.5 2.5.2+dfsg-1~exp1.pgdg90+1 amd64 Geographic objects support for PostgreSQL 11 ii postgresql-11-postgis-2.5-scripts 2.5.2+dfsg-1~exp1.pgdg90+1 all Geographic objects support for PostgreSQL 11 -- SQL scripts

Part of the Chinese mainland is blank when the cities class of the places layer is used with encoding utf8 When using utf-16, all cities are missing, but the map is complete. When using ascii, all non western labels are replaced with a citycircle symbol all other ie Paris are ok. (ie chinese and russian language labels are missing) No errors are apparent when running the mapserver iconv is installed

removing the cities class, the problem is not apparent.

I am unsure if this is imposm or mapserver issue. WonkyWorld

ghost commented 4 years ago

places.map places.map.txt

ghost commented 4 years ago

Work Around Imposm - Loaded places using a mapping to include name and English name. (pbf appears to also have other languages in the file) Psql - Updated name column with English name. Result, map displays, Chinese/Russian/Arabic names are in English. Names without a corresponding English name are displayed as a number of small rectangles.