kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Add newest mapping.json
rodzic
bd569750e8
commit
53cc587638
|
|
@ -1,6 +1,6 @@
|
|||
FROM ubuntu:14.04
|
||||
|
||||
ENV IMPOSM_VERSION 32623ccce097584be79ec8617dfae42d595ac2b8
|
||||
ENV IMPOSM_VERSION 4195e24dee253c802b08b6046f7d03337525f1f9
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# build imposm3 binary and clean up afterwards
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@ PG_CONNECT="postgis://$OSM_USER:$OSM_PASSWORD@$DB_PORT_5432_TCP_ADDR/$OSM_DB"
|
|||
|
||||
if [ "$(ls -A $IMPORT_DATA_DIR/*.pbf 2> /dev/null)" ]; then
|
||||
for PBF_FILE in "$IMPORT_DATA_DIR"/*.pbf; do
|
||||
$IMPOSM_BIN import -connection $PG_CONNECT -mapping $MAPPING_JSON -appendcache -cachedir=$IMPOSM_CACHE_DIR -read $PBF_FILE
|
||||
$IMPOSM_BIN import -connection $PG_CONNECT -mapping $MAPPING_JSON -appendcache -cachedir=$IMPOSM_CACHE_DIR -write -dbschema-import=${DB_SCHEMA}
|
||||
$IMPOSM_BIN import -connection $PG_CONNECT -mapping $MAPPING_JSON -overwritecache -cachedir=$IMPOSM_CACHE_DIR -read $PBF_FILE -write -dbschema-import=${DB_SCHEMA}
|
||||
done
|
||||
else
|
||||
echo "No PBF files for import found."
|
||||
|
|
|
|||
|
|
@ -71,58 +71,57 @@
|
|||
},
|
||||
{
|
||||
"args": {
|
||||
"ranks": [
|
||||
"pedestrian",
|
||||
"footway",
|
||||
"playground",
|
||||
"park",
|
||||
"forest",
|
||||
"cemetery",
|
||||
"farmyard",
|
||||
"farm",
|
||||
"farmland",
|
||||
"wood",
|
||||
"meadow",
|
||||
"grass",
|
||||
"wetland",
|
||||
"village_green",
|
||||
"recreation_ground",
|
||||
"garden",
|
||||
"sports_centre",
|
||||
"pitch",
|
||||
"common",
|
||||
"allotments",
|
||||
"golf_course",
|
||||
"university",
|
||||
"school",
|
||||
"college",
|
||||
"library",
|
||||
"baracks",
|
||||
"fuel",
|
||||
"parking",
|
||||
"nature_reserve",
|
||||
"cinema",
|
||||
"theatre",
|
||||
"place_of_worship",
|
||||
"hospital",
|
||||
"scrub",
|
||||
"orchard",
|
||||
"vineyard",
|
||||
"zoo",
|
||||
"quarry",
|
||||
"residential",
|
||||
"retail",
|
||||
"commercial",
|
||||
"industrial",
|
||||
"railway",
|
||||
"heath",
|
||||
"values": [
|
||||
"land",
|
||||
"island",
|
||||
"land"
|
||||
"heath",
|
||||
"railway",
|
||||
"industrial",
|
||||
"commercial",
|
||||
"retail",
|
||||
"residential",
|
||||
"quarry",
|
||||
"zoo",
|
||||
"vineyard",
|
||||
"orchard",
|
||||
"scrub",
|
||||
"hospital",
|
||||
"place_of_worship",
|
||||
"theatre",
|
||||
"cinema",
|
||||
"nature_reserve",
|
||||
"parking",
|
||||
"fuel",
|
||||
"baracks",
|
||||
"library",
|
||||
"college",
|
||||
"school",
|
||||
"university",
|
||||
"golf_course",
|
||||
"allotments",
|
||||
"common",
|
||||
"pitch",
|
||||
"sports_centre",
|
||||
"garden",
|
||||
"recreation_ground",
|
||||
"village_green",
|
||||
"wetland",
|
||||
"grass",
|
||||
"meadow",
|
||||
"wood",
|
||||
"farmland",
|
||||
"farm",
|
||||
"farmyard",
|
||||
"cemetery",
|
||||
"forest",
|
||||
"park",
|
||||
"playground",
|
||||
"footway",
|
||||
"pedestrian"
|
||||
]
|
||||
},
|
||||
"type": "zorder",
|
||||
"name": "z_order",
|
||||
"key": "z_order"
|
||||
"type": "enumerate",
|
||||
"name": "z_order"
|
||||
}
|
||||
],
|
||||
"type": "polygon",
|
||||
|
|
@ -221,11 +220,6 @@
|
|||
"name": "name",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"type": "pseudoarea",
|
||||
"name": "area",
|
||||
"key": "area"
|
||||
},
|
||||
{
|
||||
"type": "mapping_value",
|
||||
"name": "type",
|
||||
|
|
@ -263,22 +257,21 @@
|
|||
},
|
||||
{
|
||||
"args": {
|
||||
"ranks": [
|
||||
"country",
|
||||
"state",
|
||||
"region",
|
||||
"county",
|
||||
"city",
|
||||
"town",
|
||||
"village",
|
||||
"hamlet",
|
||||
"values": [
|
||||
"locality",
|
||||
"suburb",
|
||||
"locality"
|
||||
"hamlet",
|
||||
"village",
|
||||
"town",
|
||||
"city",
|
||||
"county",
|
||||
"region",
|
||||
"state",
|
||||
"country"
|
||||
]
|
||||
},
|
||||
"type": "zorder",
|
||||
"name": "z_order",
|
||||
"key": "z_order"
|
||||
"type": "enumerate",
|
||||
"name": "z_order"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
|
|
@ -709,15 +702,10 @@
|
|||
"name": "ref",
|
||||
"key": "ref"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "layer",
|
||||
"key": "layer"
|
||||
},
|
||||
{
|
||||
"type": "wayzorder",
|
||||
"name": "z_order",
|
||||
"key": "z_order"
|
||||
"key": "layer"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
|
|
@ -792,150 +780,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"motorways": {
|
||||
"fields": [
|
||||
{
|
||||
"type": "id",
|
||||
"name": "osm_id",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "geometry",
|
||||
"name": "geometry",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "mapping_value",
|
||||
"name": "type",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"type": "direction",
|
||||
"name": "oneway",
|
||||
"key": "oneway"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "ref",
|
||||
"key": "ref"
|
||||
}
|
||||
],
|
||||
"type": "linestring",
|
||||
"filters": {
|
||||
"exclude_tags": [
|
||||
["area", "yes"]
|
||||
]
|
||||
},
|
||||
"mapping": {
|
||||
"highway": [
|
||||
"motorway",
|
||||
"motorway_link",
|
||||
"trunk",
|
||||
"trunk_link"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mainroads": {
|
||||
"fields": [
|
||||
{
|
||||
"type": "id",
|
||||
"name": "osm_id",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "geometry",
|
||||
"name": "geometry",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "mapping_value",
|
||||
"name": "type",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"type": "direction",
|
||||
"name": "oneway",
|
||||
"key": "oneway"
|
||||
}
|
||||
],
|
||||
"type": "linestring",
|
||||
"filters": {
|
||||
"exclude_tags": [
|
||||
["area", "yes"]
|
||||
]
|
||||
},
|
||||
"mapping": {
|
||||
"highway": [
|
||||
"primary",
|
||||
"primary_link",
|
||||
"secondary",
|
||||
"secondary_link",
|
||||
"tertiary",
|
||||
"tertiary_link"
|
||||
]
|
||||
}
|
||||
},
|
||||
"minorroads": {
|
||||
"fields": [
|
||||
{
|
||||
"type": "id",
|
||||
"name": "osm_id",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "geometry",
|
||||
"name": "geometry",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "mapping_value",
|
||||
"name": "type",
|
||||
"key": null
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"type": "direction",
|
||||
"name": "oneway",
|
||||
"key": "oneway"
|
||||
}
|
||||
],
|
||||
"type": "linestring",
|
||||
"filters": {
|
||||
"exclude_tags": [
|
||||
["area", "yes"]
|
||||
]
|
||||
},
|
||||
"mapping": {
|
||||
"highway": [
|
||||
"road",
|
||||
"path",
|
||||
"track",
|
||||
"service",
|
||||
"footway",
|
||||
"bridleway",
|
||||
"cycleway",
|
||||
"steps",
|
||||
"pedestrian",
|
||||
"living_street",
|
||||
"unclassified",
|
||||
"residential"
|
||||
]
|
||||
}
|
||||
},
|
||||
"housenumbers": {
|
||||
"fields": [
|
||||
{
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue