Une adaptation "FR" de la ré-implémentation du style Mapnik d'OpenStreetMap en CartoCSS
CartoCSS SQLPL Shell
#3 Compare This branch is 437 commits ahead, 2025 commits behind gravitystorm:master.
Permalink
Failed to load latest commit information.
symbols 8x8 square marker (bus) Dec 29, 2016
.gitignore Retour project.mml version kosmtik Feb 28, 2015
LICENSE.txt Ajout LICENCE Jul 4, 2013
README.md mise à jour des versions... Dec 20, 2016
additions.sql useful indexes Jan 7, 2017
addressing.mss addr:housenumber plus foncés et adresse BANO plus grisées Jul 14, 2014
admin.mss admin-boundaries-text: ajout (arr./dép./rég.) + espacement Dec 30, 2016
aerialways.mss use regexp to minimize rules Aug 24, 2016
amenity-points.mss render amenity=social_facility Dec 29, 2016
buildings.mss building='train_station' like 'station' Dec 22, 2016
citywalls.mss citywalls/castle_walls as single layer Aug 22, 2016
ferry-routes.mss Ajout LICENCE Jul 4, 2013
functions.sql bbbox to compute 'bleed' bbox Dec 28, 2016
get-layers.sh fix #15 Dec 10, 2016
get-shapefiles.sh new location from precomputed shapefiles Dec 5, 2016
landcover.mss natural=bare_rock, tidal=yes Jan 16, 2017
osmfr.yml optimisation stations/bus-stops Jan 23, 2017
other.mss other.mss split/cleanup, golf.mss > sports.mss Dec 22, 2016
placenames.mss placename text size increase Jan 7, 2017
power.mss power: line=busbar|bay + symbols/name for generator|substation Oct 16, 2013
project.mml no more .mml, only .yml Jan 16, 2017
roads.mss indentation cleanup Jan 16, 2017
shapefiles.mss other.mss split/cleanup, golf.mss > sports.mss Dec 22, 2016
sports.mss tennis lines at zoom 16+ Dec 29, 2016
stations.mss optimisation stations/bus-stops Jan 23, 2017
style.mss shield spacing: 1 per tile Dec 21, 2016
water-features.mss use regexp to minimize rules Aug 24, 2016
water.mss natural=bare_rock, tidal=yes Jan 16, 2017

README.md

OpenStreetMap "FR" Carto

Une adaptation "french-style" de la ré-implémentation CartoCSS du style Mapnik d'OpenStreetMap

Le résultat est visible sur: http://tile.openstreetmap.fr/

A project to re-implement the standard OpenStreetMap mapnik style, in CartoCSS... with "french-style" modifications.

Bugs ?

Open issues here on github !

Changements par rapport au setup d'origine

Le nom de la base est 'osm', utilisateur 'fr'. Les requêtes SQL utilisent les hstore pour récupérer certaines données, pensez à les inclure dans votre import osm2pgsql. C'est Mapnik 3.x qui est utilisé avec postgresql 9.6 et postgis 2.3.

Le reste du readme ci-dessous est inchangé par rapport au projet https://github.com/gravitystorm/openstreetmap-carto

Setup

You need OpenStreetMap data loaded into a PostGIS database (see below for dependencies). These stylesheets currently work only with the osm2pgsql defaults (i.e. database name is 'gis', table names are 'planet_osm_point' etc).

It's probably easiest to grab an PBF of OSM data from metro.teczno.com or geofabrik. Once you've set up your PostGIS database, import with osm2pgsql:

osm2pgsql -d gis ~/path/to/data.osm.pbf

You also need to run the additions.sql file to create some extra tables in the database.

Additionally you need some shapefiles.

Scripted download

To download the shapefiles you can run the following script from this directory. No further steps should be needed as the data has been processed and placed in the requisite directories. The second script is also needed by the style.

sh get-shapefiles.sh
sh get-layers.sh

Dependencies

  • This is a Kosmtik project designed for mapnik 3.x

Notes on conversion

  • Always specify zoom levels as either >= or < . Don't use = or =< or >
  • Open curly braces on the same line, and close on an empty line.
  • One space before and after = etc
  • Two space indents. No tabs.
  • space after : but no before
  • If there is a &minscale_zoom18;, ignore it. These really mess up any attempts to run the style at z19
  • Dashes, not underscores, in layer names
  • Avoid restating defaults, e.g. don't add point-allow-overlap = false