diff --git a/.gitignore b/.gitignore index fb0a270..bff6260 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ settings/clip/clip.prj settings/clip/clip.qpj settings/clip/clip.shp settings/clip/clip.shx +SouthAfrica/south-africa.pbf +Libraries/south-africa.pbf diff --git a/Libraries/Dockerfile b/Libraries/Dockerfile new file mode 100644 index 0000000..66b1768 --- /dev/null +++ b/Libraries/Dockerfile @@ -0,0 +1,11 @@ +# This image is intended to be used as a storage +# only container + +FROM byrnedo/alpine-curl +MAINTAINER Tim Sutton + +RUN mkdir /settings +RUN curl -o /settings/country.pbf http://download.openstreetmap.fr/extracts/africa/south_africa.osm.pbf +ADD mapping.yml /settings/mapping.yml +ADD clip /settings/clip +ADD qgis_style.sql /settings/qgis_style,sql diff --git a/Libraries/Makefile b/Libraries/Makefile new file mode 100644 index 0000000..5eb92ae --- /dev/null +++ b/Libraries/Makefile @@ -0,0 +1,140 @@ +PROJECT_ID := libraries +COMPOSE_FILE := docker-compose.yml +# Uncomment the next line if you want to display data with Leaflet. +# COMPOSE_FILE := docker-compose-web.yml + +.PHONY: logs + +### +# DOCKER MANAGEMENT +### + +status: + @echo + @echo "------------------------------------------------------------------" + @echo "Status in production mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) ps + + +build: + @echo + @echo "------------------------------------------------------------------" + @echo "Building in production mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) build + +run: + @echo + @echo "------------------------------------------------------------------" + @echo "Running in production mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) up -d --no-recreate + +rundev: + @echo + @echo "------------------------------------------------------------------" + @echo "Running in DEVELOPMENT mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) up + +stop: + @echo + @echo "------------------------------------------------------------------" + @echo "Stopping in production mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) stop + +kill: + @echo + @echo "------------------------------------------------------------------" + @echo "Killing in production mode" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) kill + +rm: kill + @echo + @echo "------------------------------------------------------------------" + @echo "Removing production instance!!! " + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) rm + +rm-volumes: + @echo + @echo "------------------------------------------------------------------" + @echo "Removing all volumes!!!! " + @echo "------------------------------------------------------------------" + @docker volume rm libraries_osm-postgis-data libraries_import_queue libraries_import_done libraries_cache + +logs: + @echo + @echo "------------------------------------------------------------------" + @echo "Logs" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) logs + +live_logs: + @echo + @echo "------------------------------------------------------------------" + @echo "Live Logs" + @echo "------------------------------------------------------------------" + @docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) logs -f + + +### +# CLIPPING +### + + +import_clip: + @echo + @echo "------------------------------------------------------------------" + @echo "Importing clip shapefile" + @echo "------------------------------------------------------------------" + @docker exec -t -i $(PROJECT_ID)_db /usr/bin/shp2pgsql -c -I -D -s 4326 /home/settings/clip/clip.shp | docker exec -i $(PROJECT_ID)_db su - postgres -c "psql gis" + +remove_clip: + @echo + @echo "------------------------------------------------------------------" + @echo "Removing clip shapefile" + @echo "------------------------------------------------------------------" + @docker exec -t -i $(PROJECT_ID)_db /bin/su - postgres -c "psql gis -c 'DROP TABLE IF EXISTS clip;'" + +### +# STATS +### + + +timestamp: + @echo + @echo "------------------------------------------------------------------" + @echo "Timestamp" + @echo "------------------------------------------------------------------" + @docker exec -t -i $(PROJECT_ID)_imposm cat /home/settings/timestamp.txt + +### +# STYLES +### + + +import_styles: remove_styles + @echo + @echo "------------------------------------------------------------------" + @echo "Importing QGIS styles" + @echo "------------------------------------------------------------------" + @docker exec -i $(PROJECT_ID)_db su - postgres -c "psql -f /home/settings/qgis_style.sql gis" + +remove_styles: + @echo + @echo "------------------------------------------------------------------" + @echo "Removing QGIS styles" + @echo "------------------------------------------------------------------" + @docker exec -t -i $(PROJECT_ID)_db /bin/su - postgres -c "psql gis -c 'DROP TABLE IF EXISTS layer_styles;'" + +backup_styles: + @echo + @echo "------------------------------------------------------------------" + @echo "Backup QGIS styles to BACKUP.sql" + @echo "------------------------------------------------------------------" + @echo "SET XML OPTION DOCUMENT;" > BACKUP-STYLES.sql + @ docker exec -t $(PROJECT_ID)_db su - postgres -c "/usr/bin/pg_dump --format plain --inserts --table public.layer_styles gis" >> BACKUP-STYLES.sql diff --git a/Libraries/clip/clip.sql b/Libraries/clip/clip.sql new file mode 100644 index 0000000..dc308dd --- /dev/null +++ b/Libraries/clip/clip.sql @@ -0,0 +1,20 @@ +CREATE OR REPLACE FUNCTION clean_tables() RETURNS void AS +$BODY$ +DECLARE osm_tables CURSOR FOR + SELECT table_name + FROM information_schema.tables + WHERE table_schema='public' + AND table_type='BASE TABLE' + AND table_name LIKE 'osm_%'; +BEGIN + FOR osm_table IN osm_tables LOOP + EXECUTE 'DELETE FROM ' || quote_ident(osm_table.table_name) || ' WHERE osm_id IN ( + SELECT DISTINCT osm_id + FROM ' || quote_ident(osm_table.table_name) || ' + LEFT JOIN clip ON ST_Intersects(geometry, geom) + WHERE clip.gid IS NULL) + ;'; + END LOOP; +END; +$BODY$ +LANGUAGE plpgsql; diff --git a/Libraries/docker-compose.yml b/Libraries/docker-compose.yml new file mode 100644 index 0000000..9c94eb9 --- /dev/null +++ b/Libraries/docker-compose.yml @@ -0,0 +1,104 @@ +version: '2.1' + +volumes: + # Make sure that these names are not used in another docker + # compose otherwise this compose that the other will share + # the same data volumes + libraries-postgis-data: + libraries-import-done: + libraries-import-queue: + libraries-cache: + +services: + db: + # About the postgresql version, it should match in the dockerfile of docker-imposm3 + image: kartoza/postgis:9.6-2.4 + hostname: db + environment: + - POSTGRES_USER=docker + - POSTGRES_PASS=docker + - POSTGRES_DBNAME=gis + volumes: + - 'libraries-postgis-data:/var/lib/postgresql' + # Uncomment to use the postgis database from outside the docker network + ports: + - "45432:5432" + healthcheck: + test: "exit 0" + restart: unless-stopped + + imposm: + image: kartoza/docker-osm:imposm-latest + #build: docker-imposm3 + volumes: + # These are sharable to other containers + - .:/home/settings + - libraries-import-done:/home/import_done + - libraries-import-queue:/home/import_queue + - libraries-cache:/home/cache + depends_on: + db: + condition: service_healthy + environment: + - POSTGRES_USER=docker + - POSTGRES_PASS=docker + - POSTGRES_DBNAME=gis + - POSTGRES_PORT=5432 + - POSTGRES_HOST=db + # seconds between 2 executions of the script + # if 0, then no update will be done, only the first initial import from the PBF + - TIME=120 + # folder for settings (with *.json and *.sql) + - SETTINGS=settings + # folder for caching + - CACHE=cache + # folder for diff which has been imported + - IMPORT_DONE=import_done + # folder for diff which hasn't been imported yet + - IMPORT_QUEUE=import_queue + # it can be 3857 + - SRID=4326 + # see http://imposm.org/docs/imposm3/latest/tutorial.html#optimize + - OPTIMIZE=false + # see http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables + - DBSCHEMA_PRODUCTION=public + # http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables + - DBSCHEMA_IMPORT=import + # http://imposm.org/docs/imposm3/latest/tutorial.html#deploy-production-tables + - DBSCHEMA_BACKUP=backup + # Install some styles if you are using the default mapping. It can be 'yes' or 'no' + - QGIS_STYLE=yes + # Use clip in the database + - CLIP=no + restart: unless-stopped + + osmupdate: + #build: docker-osmupdate + image: kartoza/docker-osm:osmupdate-latest + volumes: + # These are sharable to other containers + - .:/home/settings + - libraries-import-done:/home/import_done + - libraries-import-queue:/home/import_queue + - libraries-cache:/home/cache + environment: + # These are all currently the defaults but listed here for your + # convenience if you want to change them + # the maximum time range to assemble a cumulated changefile. + - MAX_DAYS=100 + # osmupdate uses a combination of minutely, hourly and daily changefiles. This value can be minute, hour, day or sporadic. + - DIFF=sporadic + # argument to determine the maximum number of parallely processed changefiles. + - MAX_MERGE=7 + # define level for gzip compression. values between 1 (low compression but fast) and 9 (high compression but slow) + - COMPRESSION_LEVEL=1 + # change the URL to use a custom URL to fetch regional file updates. + - BASE_URL=http://planet.openstreetmap.org/replication/ + # folder for diff which hasn't been imported yet + - IMPORT_QUEUE=import_queue + # folder for diff which has been imported + - IMPORT_DONE=import_done + # seconds between 2 executions of the script + # if 0, then no update will be done, only the first initial import from the PBF + - TIME=120 + restart: unless-stopped diff --git a/Libraries/last.state.txt b/Libraries/last.state.txt new file mode 100644 index 0000000..f295571 --- /dev/null +++ b/Libraries/last.state.txt @@ -0,0 +1,3 @@ +timestamp=2018-06-21T13\:39\:25Z +sequenceNumber=3024788 +replicationUrl=https://planet.openstreetmap.org/replication/minute/ diff --git a/Libraries/mapping.yml b/Libraries/mapping.yml new file mode 100644 index 0000000..20843b8 --- /dev/null +++ b/Libraries/mapping.yml @@ -0,0 +1,108 @@ +areas: + area_tags: [buildings] + linear_tags: [] +generalized_tables: +tables: + amenities: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + amenity: + - library + type: point + buildings: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + building: + - __any__ + type: polygon + housenumbers: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: addr:street + name: addr:street + type: string + - key: addr:postcode + name: addr:postcode + type: string + - key: addr:city + name: addr:city + type: string + mapping: + addr:housenumber: + - __any__ + type: point + housenumbers_interpolated: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: addr:street + name: addr:street + type: string + - key: addr:postcode + name: addr:postcode + type: string + - key: addr:city + name: addr:city + type: string + - key: addr:inclusion + name: addr:inclusion + type: string + mapping: + addr:interpolation: + - __any__ + type: linestring + landusages: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - name: area + type: webmerc_area + - args: + values: + - library + name: z_order + type: enumerate + mapping: + amenity: + - library + type: polygon diff --git a/Libraries/qgis_style.sql b/Libraries/qgis_style.sql new file mode 100755 index 0000000..6350c61 --- /dev/null +++ b/Libraries/qgis_style.sql @@ -0,0 +1,3318 @@ +SET XML OPTION DOCUMENT; +-- +-- PostgreSQL database dump +-- + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SET check_function_bodies = false; +SET client_min_messages = warning; + +SET search_path = public, pg_catalog; + +SET default_tablespace = ''; + +SET default_with_oids = false; + +-- +-- Name: layer_styles; Type: TABLE; Schema: public; Owner: docker; Tablespace: +-- + +CREATE TABLE layer_styles ( + id integer NOT NULL, + f_table_catalog character varying, + f_table_schema character varying, + f_table_name character varying, + f_geometry_column character varying, + stylename character varying(30), + styleqml xml, + stylesld xml, + useasdefault boolean, + description text, + owner character varying(30), + ui xml, + update_time timestamp without time zone DEFAULT now() +); + + +ALTER TABLE layer_styles OWNER TO docker; + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE; Schema: public; Owner: docker +-- + +CREATE SEQUENCE layer_styles_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE layer_styles_id_seq OWNER TO docker; + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: docker +-- + +ALTER SEQUENCE layer_styles_id_seq OWNED BY layer_styles.id; + + +-- +-- Name: id; Type: DEFAULT; Schema: public; Owner: docker +-- + +ALTER TABLE ONLY layer_styles ALTER COLUMN id SET DEFAULT nextval('layer_styles_id_seq'::regclass); + + +-- +-- Data for Name: layer_styles; Type: TABLE DATA; Schema: public; Owner: docker +-- + +INSERT INTO layer_styles VALUES (1, 'gis', 'public', 'osm_waterareas', 'geometry', 'waterares', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + + 0 + + generatedlayout + + + + + + + + +', ' + + osm_waterareas + + osm_waterareas + + + basin + + basin + + + + type + basin + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + reservoir + + reservoir + + + + type + reservoir + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + riverbank + + riverbank + + + + type + riverbank + + + + + #a5bfdd + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + swimming_pool + + swimming_pool + + + + type + swimming_pool + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + slash + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + water + + water + + + + type + water + + + + + #a5bfdd + + + + + + + type is '''' + + + + type + + + + + + #ed3f4d + + + #000000 + 0.26 + bevel + + + + + + + +', false, 'mar. déc. 22 10:19:53 2015', 'docker', NULL, '2015-12-22 09:19:53.591458'); +INSERT INTO layer_styles VALUES (3, 'gis', 'public', 'osm_waterareas', 'geometry', 'osm_waterareas', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_waterareas + + osm_waterareas + + + basin + + basin + + + + type + basin + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + reservoir + + reservoir + + + + type + reservoir + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + riverbank + + riverbank + + + + type + riverbank + + + + + #a5bfdd + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + swimming_pool + + swimming_pool + + + + type + swimming_pool + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + slash + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + water + + water + + + + type + water + + + + + #a5bfdd + + + + + + + type is '''' + + + + type + + + + + + #ed3f4d + + + #000000 + 0.26 + bevel + + + + + + + +', true, 'Wed Jul 20 01:43:14 2016', 'docker', NULL, '2016-07-19 18:43:14.861512'); +INSERT INTO layer_styles VALUES (4, 'gis', 'public', 'osm_waterways', 'geometry', 'osm_waterways', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 1 + +', ' + + osm_waterways + + osm_waterways + + + Single symbol + + + #a5bfdd + 1 + round + round + + + + + + + +', true, 'Wed Jul 20 01:43:27 2016', 'docker', NULL, '2016-07-19 18:43:27.766761'); +INSERT INTO layer_styles VALUES (5, 'gis', 'public', 'osm_roads', 'geometry', 'osm_roads', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 1 + +', ' + + osm_roads + + osm_roads + + + Single symbol + + + #e15d5d + 0.26 + bevel + square + + + + + + + +', true, 'Wed Jul 20 01:43:38 2016', 'docker', NULL, '2016-07-19 18:43:38.405347'); +INSERT INTO layer_styles VALUES (6, 'gis', 'public', 'osm_buildings', 'geometry', 'osm_buildings', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_buildings + + osm_buildings + + + Single symbol + + + #b4b4b4 + + + #000000 + 0.26 + bevel + + + + + + + +', true, 'Wed Jul 20 01:44:05 2016', 'docker', NULL, '2016-07-19 18:44:05.358674'); +INSERT INTO layer_styles VALUES (2, 'gis', 'public', 'osm_places', 'geometry', 'osm_places', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 0 + +', ' + + osm_places + + osm_places + + + city + + city + + + + type + city + + + + + + star + + #e31a1c + + + #000000 + + + 5.2 + + + + + hamlet + + hamlet + + + + type + hamlet + + + + + + circle + + #dc31eb + + + #000000 + + + 1 + + + + + locality + + locality + + + + type + locality + + + + + + circle + + #88c4ee + + + #000000 + + + 1.4 + + + + + state + + state + + + + type + state + + + + + + circle + + #533cc9 + + + #000000 + + + 3.8 + + + + + suburb + + suburb + + + + type + suburb + + + + + + circle + + #b2d01a + + + #000000 + + + 2 + + + + + town + + town + + + + type + town + + + + + + circle + + #e1165d + + + #000000 + + + 3 + + + + + village + + village + + + + type + village + + + + + + circle + + #5bd1aa + + + #000000 + + + 2 + + + + + + + +', true, 'Wed Jul 20 01:43:55 2016', 'docker', NULL, '2015-12-22 09:20:12.897576'); +INSERT INTO layer_styles VALUES (7, 'gis', 'public', 'osm_admin', 'geometry', 'osm_admin', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_admin + + osm_admin + + + Single symbol + + + #000000 + 0.26 + bevel + 4 2 + + + + + + + +', true, 'Wed Jul 20 01:44:15 2016', 'docker', NULL, '2016-07-19 18:44:15.125991'); + + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: docker +-- + +SELECT pg_catalog.setval('layer_styles_id_seq', 7, true); + + +-- +-- Name: layer_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: docker; Tablespace: +-- + +ALTER TABLE ONLY layer_styles + ADD CONSTRAINT layer_styles_pkey PRIMARY KEY (id); + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/Libraries/south-africa-osm-qgis3.qgd b/Libraries/south-africa-osm-qgis3.qgd new file mode 100644 index 0000000..e69de29 diff --git a/Libraries/south-africa-osm-qgis3.qgs b/Libraries/south-africa-osm-qgis3.qgs new file mode 100644 index 0000000..9e78f27 --- /dev/null +++ b/Libraries/south-africa-osm-qgis3.qgs @@ -0,0 +1,3841 @@ + + + + + + + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + osm_admin_c66cf23f_638f_40a6_a957_cc4788d21768 + osm_roads_5bc7ad1a_5d9f_4092_9de3_e13bd7ca1e2e + osm_waterareas_8cbf8071_0cc0_4299_afc8_c77735143cc7 + osm_waterways_044047b5_31e0_4a67_8e1f_5bebb09d04ee + osm_places_4eca22cc_3b99_48ef_9e7b_0260f5ea48ec + osm_landusages_d5a2d354_6e0d_4f6f_97dc_947a7c90fcfd + osm_housenumbers_5c12d313_6902_4564_bb5b_ce16cbf6ab07 + osm_buildings_75607956_f8ba_4af0_a7ff_ea0cc921c42a + OpenStreetMap_0cd83354_7b9a_4632_93db_40d9c5b4cf9e + + + + + + + + + + + + + + + + + degrees + + 20.44996529538409646 + -34.02201976086129775 + 20.45258523512454474 + -34.01903022073260274 + + 0 + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -20037508.34278924390673637 + -20037508.34278925508260727 + 20037508.34278924390673637 + 20037508.34278924390673637 + + OpenStreetMap_0cd83354_7b9a_4632_93db_40d9c5b4cf9e + type=xyz&url=http://a.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0 + + + + OpenStreetMap + + + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + + + + wms + + + + + + + + + + + None + WholeRaster + Estimated + 0.02 + 0.98 + 2 + + + + + + + 0 + + + + 16.22373962402339842 + -47.30410766601559658 + 38.39968109130860086 + -21.99975967407230115 + + osm_admin_c66cf23f_638f_40a6_a957_cc4788d21768 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_admin" (geometry) sql= + + + + osm_admin + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.67167091369629972 + -34.84393310546879974 + 32.96633529663090201 + -22.06648635864259944 + + osm_buildings_75607956_f8ba_4af0_a7ff_ea0cc921c42a + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_buildings" (geometry) sql= + + + + osm_buildings + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.79059791564939985 + -34.89058303833009944 + 32.49598693847659803 + -22.28712272644040127 + + osm_housenumbers_5c12d313_6902_4564_bb5b_ce16cbf6ab07 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Point table="public"."osm_housenumbers" (geometry) sql= + + + + osm_housenumbers + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + 18.19118690490720169 + -34.85795974731450286 + 32.9538764953612997 + -23.60786628723139913 + + osm_landusages_d5a2d354_6e0d_4f6f_97dc_947a7c90fcfd + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_landusages" (geometry) sql= + + + + osm_landusages + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + + + + + + + + + + + + + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + + + + + id + + + + + 16.40064239501949928 + -34.89630126953120026 + 32.96504974365230112 + -22.13928031921389916 + + osm_places_4eca22cc_3b99_48ef_9e7b_0260f5ea48ec + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Point table="public"."osm_places" (geometry) sql= + + + + osm_places + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.35111045837399857 + -34.8951225280762003 + 32.96947097778320313 + -22.04614830017089844 + + osm_roads_5bc7ad1a_5d9f_4092_9de3_e13bd7ca1e2e + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=LineString table="public"."osm_roads" (geometry) sql= + + + + osm_roads + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.33275604248050072 + -34.89186096191409803 + 32.96853256225590201 + -22.04244232177730112 + + osm_waterareas_8cbf8071_0cc0_4299_afc8_c77735143cc7 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Polygon table="public"."osm_waterareas" (geometry) sql= + + + + osm_waterareas + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 21.83443450927730112 + -33.56139755249019885 + 32.87509536743159799 + -25.449048995971701 + + osm_waterways_044047b5_31e0_4a67_8e1f_5bebb09d04ee + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=LineString table="public"."osm_waterways" (geometry) sql= + + + + osm_waterways + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + + + + + + + + + + + + + meters + m2 + + + 0 + 255 + 255 + 255 + 255 + 255 + 255 + + + 1 + + + true + 2 + + + false + + + false + + + WGS84 + + + + + + + diff --git a/Libraries/timestamp.txt b/Libraries/timestamp.txt new file mode 100644 index 0000000..4ad3dc3 --- /dev/null +++ b/Libraries/timestamp.txt @@ -0,0 +1 @@ +UNDEFINED diff --git a/SouthAfrica/Dockerfile b/SouthAfrica/Dockerfile new file mode 100644 index 0000000..66b1768 --- /dev/null +++ b/SouthAfrica/Dockerfile @@ -0,0 +1,11 @@ +# This image is intended to be used as a storage +# only container + +FROM byrnedo/alpine-curl +MAINTAINER Tim Sutton + +RUN mkdir /settings +RUN curl -o /settings/country.pbf http://download.openstreetmap.fr/extracts/africa/south_africa.osm.pbf +ADD mapping.yml /settings/mapping.yml +ADD clip /settings/clip +ADD qgis_style.sql /settings/qgis_style,sql diff --git a/SouthAfrica/clip/clip.sql b/SouthAfrica/clip/clip.sql new file mode 100644 index 0000000..dc308dd --- /dev/null +++ b/SouthAfrica/clip/clip.sql @@ -0,0 +1,20 @@ +CREATE OR REPLACE FUNCTION clean_tables() RETURNS void AS +$BODY$ +DECLARE osm_tables CURSOR FOR + SELECT table_name + FROM information_schema.tables + WHERE table_schema='public' + AND table_type='BASE TABLE' + AND table_name LIKE 'osm_%'; +BEGIN + FOR osm_table IN osm_tables LOOP + EXECUTE 'DELETE FROM ' || quote_ident(osm_table.table_name) || ' WHERE osm_id IN ( + SELECT DISTINCT osm_id + FROM ' || quote_ident(osm_table.table_name) || ' + LEFT JOIN clip ON ST_Intersects(geometry, geom) + WHERE clip.gid IS NULL) + ;'; + END LOOP; +END; +$BODY$ +LANGUAGE plpgsql; diff --git a/SouthAfrica/mapping.yml b/SouthAfrica/mapping.yml new file mode 100644 index 0000000..78aba69 --- /dev/null +++ b/SouthAfrica/mapping.yml @@ -0,0 +1,567 @@ +areas: + area_tags: [buildings, landuse, leisure, natural, aeroway] + linear_tags: [highway, barrier] +generalized_tables: + landusages_gen0: + source: landusages_gen1 + sql_filter: ST_Area(geometry)>500000.000000 + tolerance: 200.0 + landusages_gen1: + source: landusages + sql_filter: ST_Area(geometry)>50000.000000 + tolerance: 50.0 + roads_gen0: + source: roads_gen1 + tolerance: 200.0 + roads_gen1: + source: roads + sql_filter: + type IN ( + 'motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', + 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link') + OR class IN('railway') + tolerance: 50.0 + waterareas_gen0: + source: waterareas_gen1 + sql_filter: ST_Area(geometry)>500000.000000 + tolerance: 200.0 + waterareas_gen1: + source: waterareas + sql_filter: ST_Area(geometry)>50000.000000 + tolerance: 50.0 + waterways_gen0: + source: waterways_gen1 + tolerance: 200 + waterways_gen1: + source: waterways + tolerance: 50.0 +tables: + admin: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: admin_level + name: admin_level + type: integer + mapping: + boundary: + - administrative + type: polygon + aeroways: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + aeroway: + - runway + - taxiway + type: linestring + amenities: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + amenity: + - university + - school + - library + - fuel + - hospital + - fire_station + - police + - townhall + type: point + barrierpoints: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + barrier: + - block + - bollard + - cattle_grid + - chain + - cycle_barrier + - entrance + - horse_stile + - gate + - spikes + - lift_gate + - kissing_gate + - fence + - 'yes' + - wire_fence + - toll_booth + - stile + type: point + barrierways: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + barrier: + - city_wall + - fence + - hedge + - retaining_wall + - wall + - bollard + - gate + - spikes + - lift_gate + - kissing_gate + - embankment + - 'yes' + - wire_fence + type: linestring + buildings: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + building: + - __any__ + type: polygon + housenumbers: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: addr:street + name: addr:street + type: string + - key: addr:postcode + name: addr:postcode + type: string + - key: addr:city + name: addr:city + type: string + mapping: + addr:housenumber: + - __any__ + type: point + housenumbers_interpolated: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: addr:street + name: addr:street + type: string + - key: addr:postcode + name: addr:postcode + type: string + - key: addr:city + name: addr:city + type: string + - key: addr:inclusion + name: addr:inclusion + type: string + mapping: + addr:interpolation: + - __any__ + type: linestring + landusages: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - name: area + type: webmerc_area + - args: + values: + - land + - island + - 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 + name: z_order + type: enumerate + mapping: + aeroway: + - runway + - taxiway + amenity: + - university + - school + - college + - library + - fuel + - parking + - cinema + - theatre + - place_of_worship + - hospital + barrier: + - hedge + highway: + - pedestrian + - footway + landuse: + - park + - forest + - residential + - retail + - commercial + - industrial + - railway + - cemetery + - grass + - farmyard + - farm + - farmland + - orchard + - vineyard + - wood + - meadow + - village_green + - recreation_ground + - allotments + - quarry + leisure: + - park + - garden + - playground + - golf_course + - sports_centre + - pitch + - stadium + - common + - nature_reserve + man_made: + - pier + military: + - barracks + natural: + - wood + - land + - scrub + - wetland + - heath + place: + - island + tourism: + - zoo + type: polygon + places: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - args: + values: + - locality + - suburb + - hamlet + - village + - town + - city + - county + - region + - state + - country + name: z_order + type: enumerate + - key: population + name: population + type: integer + mapping: + place: + - country + - state + - region + - county + - city + - town + - village + - hamlet + - suburb + - locality + type: point + roads: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - name: type + type: mapping_value + - key: name + name: name + type: string + - key: tunnel + name: tunnel + type: boolint + - key: bridge + name: bridge + type: boolint + - key: oneway + name: oneway + type: direction + - key: ref + name: ref + type: string + - key: layer + name: z_order + type: wayzorder + - key: access + name: access + type: string + - key: service + name: service + type: string + - name: class + type: mapping_key + filters: + reject: + area: ["yes"] + mappings: + railway: + mapping: + railway: + - rail + - tram + - light_rail + - subway + - narrow_gauge + - preserved + - funicular + - monorail + - disused + roads: + mapping: + highway: + - motorway + - motorway_link + - trunk + - trunk_link + - primary + - primary_link + - secondary + - secondary_link + - tertiary + - tertiary_link + - road + - path + - track + - service + - footway + - bridleway + - cycleway + - steps + - pedestrian + - living_street + - unclassified + - residential + - raceway + man_made: + - pier + - groyne + type: linestring + transport_areas: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + aeroway: + - aerodrome + - terminal + - helipad + - apron + railway: + - station + - platform + type: polygon + transport_points: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - key: ref + name: ref + type: string + mapping: + aeroway: + - aerodrome + - terminal + - helipad + - gate + highway: + - motorway_junction + - turning_circle + - bus_stop + railway: + - station + - halt + - tram_stop + - crossing + - level_crossing + - subway_entrance + type: point + waterareas: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + - name: area + type: webmerc_area + mapping: + amenity: + - swimming_pool + landuse: + - basin + - reservoir + leisure: + - swimming_pool + natural: + - water + waterway: + - riverbank + type: polygon + waterways: + columns: + - name: osm_id + type: id + - name: geometry + type: geometry + - key: name + name: name + type: string + - name: type + type: mapping_value + mapping: + barrier: + - ditch + waterway: + - stream + - river + - canal + - drain + - ditch + type: linestring \ No newline at end of file diff --git a/SouthAfrica/qgis_style.sql b/SouthAfrica/qgis_style.sql new file mode 100755 index 0000000..6350c61 --- /dev/null +++ b/SouthAfrica/qgis_style.sql @@ -0,0 +1,3318 @@ +SET XML OPTION DOCUMENT; +-- +-- PostgreSQL database dump +-- + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SET check_function_bodies = false; +SET client_min_messages = warning; + +SET search_path = public, pg_catalog; + +SET default_tablespace = ''; + +SET default_with_oids = false; + +-- +-- Name: layer_styles; Type: TABLE; Schema: public; Owner: docker; Tablespace: +-- + +CREATE TABLE layer_styles ( + id integer NOT NULL, + f_table_catalog character varying, + f_table_schema character varying, + f_table_name character varying, + f_geometry_column character varying, + stylename character varying(30), + styleqml xml, + stylesld xml, + useasdefault boolean, + description text, + owner character varying(30), + ui xml, + update_time timestamp without time zone DEFAULT now() +); + + +ALTER TABLE layer_styles OWNER TO docker; + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE; Schema: public; Owner: docker +-- + +CREATE SEQUENCE layer_styles_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE layer_styles_id_seq OWNER TO docker; + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: docker +-- + +ALTER SEQUENCE layer_styles_id_seq OWNED BY layer_styles.id; + + +-- +-- Name: id; Type: DEFAULT; Schema: public; Owner: docker +-- + +ALTER TABLE ONLY layer_styles ALTER COLUMN id SET DEFAULT nextval('layer_styles_id_seq'::regclass); + + +-- +-- Data for Name: layer_styles; Type: TABLE DATA; Schema: public; Owner: docker +-- + +INSERT INTO layer_styles VALUES (1, 'gis', 'public', 'osm_waterareas', 'geometry', 'waterares', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + + 0 + + generatedlayout + + + + + + + + +', ' + + osm_waterareas + + osm_waterareas + + + basin + + basin + + + + type + basin + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + reservoir + + reservoir + + + + type + reservoir + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + riverbank + + riverbank + + + + type + riverbank + + + + + #a5bfdd + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + swimming_pool + + swimming_pool + + + + type + swimming_pool + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + slash + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + water + + water + + + + type + water + + + + + #a5bfdd + + + + + + + type is '''' + + + + type + + + + + + #ed3f4d + + + #000000 + 0.26 + bevel + + + + + + + +', false, 'mar. déc. 22 10:19:53 2015', 'docker', NULL, '2015-12-22 09:19:53.591458'); +INSERT INTO layer_styles VALUES (3, 'gis', 'public', 'osm_waterareas', 'geometry', 'osm_waterareas', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_waterareas + + osm_waterareas + + + basin + + basin + + + + type + basin + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + reservoir + + reservoir + + + + type + reservoir + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + + + + x + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + riverbank + + riverbank + + + + type + riverbank + + + + + #a5bfdd + + + + + + + + horline + + #000000 + 0.26 + + + 2 + + + 45 + + + + 0.850904 + 0.525322 + + + + + + + + swimming_pool + + swimming_pool + + + + type + swimming_pool + + + + + #a5bfdd + + + #728584 + 0.26 + bevel + + + + + + + + slash + + #0000ff + + + + + + + #000000 + 0.26 + bevel + + + + + water + + water + + + + type + water + + + + + #a5bfdd + + + + + + + type is '''' + + + + type + + + + + + #ed3f4d + + + #000000 + 0.26 + bevel + + + + + + + +', true, 'Wed Jul 20 01:43:14 2016', 'docker', NULL, '2016-07-19 18:43:14.861512'); +INSERT INTO layer_styles VALUES (4, 'gis', 'public', 'osm_waterways', 'geometry', 'osm_waterways', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 1 + +', ' + + osm_waterways + + osm_waterways + + + Single symbol + + + #a5bfdd + 1 + round + round + + + + + + + +', true, 'Wed Jul 20 01:43:27 2016', 'docker', NULL, '2016-07-19 18:43:27.766761'); +INSERT INTO layer_styles VALUES (5, 'gis', 'public', 'osm_roads', 'geometry', 'osm_roads', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 1 + +', ' + + osm_roads + + osm_roads + + + Single symbol + + + #e15d5d + 0.26 + bevel + square + + + + + + + +', true, 'Wed Jul 20 01:43:38 2016', 'docker', NULL, '2016-07-19 18:43:38.405347'); +INSERT INTO layer_styles VALUES (6, 'gis', 'public', 'osm_buildings', 'geometry', 'osm_buildings', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_buildings + + osm_buildings + + + Single symbol + + + #b4b4b4 + + + #000000 + 0.26 + bevel + + + + + + + +', true, 'Wed Jul 20 01:44:05 2016', 'docker', NULL, '2016-07-19 18:44:05.358674'); +INSERT INTO layer_styles VALUES (2, 'gis', 'public', 'osm_places', 'geometry', 'osm_places', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 0 + +', ' + + osm_places + + osm_places + + + city + + city + + + + type + city + + + + + + star + + #e31a1c + + + #000000 + + + 5.2 + + + + + hamlet + + hamlet + + + + type + hamlet + + + + + + circle + + #dc31eb + + + #000000 + + + 1 + + + + + locality + + locality + + + + type + locality + + + + + + circle + + #88c4ee + + + #000000 + + + 1.4 + + + + + state + + state + + + + type + state + + + + + + circle + + #533cc9 + + + #000000 + + + 3.8 + + + + + suburb + + suburb + + + + type + suburb + + + + + + circle + + #b2d01a + + + #000000 + + + 2 + + + + + town + + town + + + + type + town + + + + + + circle + + #e1165d + + + #000000 + + + 3 + + + + + village + + village + + + + type + village + + + + + + circle + + #5bd1aa + + + #000000 + + + 2 + + + + + + + +', true, 'Wed Jul 20 01:43:55 2016', 'docker', NULL, '2015-12-22 09:20:12.897576'); +INSERT INTO layer_styles VALUES (7, 'gis', 'public', 'osm_admin', 'geometry', 'osm_admin', ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + . + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + +', ' + + osm_admin + + osm_admin + + + Single symbol + + + #000000 + 0.26 + bevel + 4 2 + + + + + + + +', true, 'Wed Jul 20 01:44:15 2016', 'docker', NULL, '2016-07-19 18:44:15.125991'); + + +-- +-- Name: layer_styles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: docker +-- + +SELECT pg_catalog.setval('layer_styles_id_seq', 7, true); + + +-- +-- Name: layer_styles_pkey; Type: CONSTRAINT; Schema: public; Owner: docker; Tablespace: +-- + +ALTER TABLE ONLY layer_styles + ADD CONSTRAINT layer_styles_pkey PRIMARY KEY (id); + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/SouthAfrica/south-africa-osm-qgis3.qgd b/SouthAfrica/south-africa-osm-qgis3.qgd new file mode 100644 index 0000000..e69de29 diff --git a/SouthAfrica/south-africa-osm-qgis3.qgs b/SouthAfrica/south-africa-osm-qgis3.qgs new file mode 100644 index 0000000..9e78f27 --- /dev/null +++ b/SouthAfrica/south-africa-osm-qgis3.qgs @@ -0,0 +1,3841 @@ + + + + + + + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + osm_admin_c66cf23f_638f_40a6_a957_cc4788d21768 + osm_roads_5bc7ad1a_5d9f_4092_9de3_e13bd7ca1e2e + osm_waterareas_8cbf8071_0cc0_4299_afc8_c77735143cc7 + osm_waterways_044047b5_31e0_4a67_8e1f_5bebb09d04ee + osm_places_4eca22cc_3b99_48ef_9e7b_0260f5ea48ec + osm_landusages_d5a2d354_6e0d_4f6f_97dc_947a7c90fcfd + osm_housenumbers_5c12d313_6902_4564_bb5b_ce16cbf6ab07 + osm_buildings_75607956_f8ba_4af0_a7ff_ea0cc921c42a + OpenStreetMap_0cd83354_7b9a_4632_93db_40d9c5b4cf9e + + + + + + + + + + + + + + + + + degrees + + 20.44996529538409646 + -34.02201976086129775 + 20.45258523512454474 + -34.01903022073260274 + + 0 + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -20037508.34278924390673637 + -20037508.34278925508260727 + 20037508.34278924390673637 + 20037508.34278924390673637 + + OpenStreetMap_0cd83354_7b9a_4632_93db_40d9c5b4cf9e + type=xyz&url=http://a.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0 + + + + OpenStreetMap + + + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + + + + wms + + + + + + + + + + + None + WholeRaster + Estimated + 0.02 + 0.98 + 2 + + + + + + + 0 + + + + 16.22373962402339842 + -47.30410766601559658 + 38.39968109130860086 + -21.99975967407230115 + + osm_admin_c66cf23f_638f_40a6_a957_cc4788d21768 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_admin" (geometry) sql= + + + + osm_admin + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.67167091369629972 + -34.84393310546879974 + 32.96633529663090201 + -22.06648635864259944 + + osm_buildings_75607956_f8ba_4af0_a7ff_ea0cc921c42a + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_buildings" (geometry) sql= + + + + osm_buildings + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.79059791564939985 + -34.89058303833009944 + 32.49598693847659803 + -22.28712272644040127 + + osm_housenumbers_5c12d313_6902_4564_bb5b_ce16cbf6ab07 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Point table="public"."osm_housenumbers" (geometry) sql= + + + + osm_housenumbers + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + 18.19118690490720169 + -34.85795974731450286 + 32.9538764953612997 + -23.60786628723139913 + + osm_landusages_d5a2d354_6e0d_4f6f_97dc_947a7c90fcfd + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=MultiPolygon table="public"."osm_landusages" (geometry) sql= + + + + osm_landusages + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + + + + + + + + + + + + + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + + + + + id + + + + + 16.40064239501949928 + -34.89630126953120026 + 32.96504974365230112 + -22.13928031921389916 + + osm_places_4eca22cc_3b99_48ef_9e7b_0260f5ea48ec + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Point table="public"."osm_places" (geometry) sql= + + + + osm_places + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.35111045837399857 + -34.8951225280762003 + 32.96947097778320313 + -22.04614830017089844 + + osm_roads_5bc7ad1a_5d9f_4092_9de3_e13bd7ca1e2e + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=LineString table="public"."osm_roads" (geometry) sql= + + + + osm_roads + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 16.33275604248050072 + -34.89186096191409803 + 32.96853256225590201 + -22.04244232177730112 + + osm_waterareas_8cbf8071_0cc0_4299_afc8_c77735143cc7 + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=Polygon table="public"."osm_waterareas" (geometry) sql= + + + + osm_waterareas + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + 21.83443450927730112 + -33.56139755249019885 + 32.87509536743159799 + -25.449048995971701 + + osm_waterways_044047b5_31e0_4a67_8e1f_5bebb09d04ee + dbname='gis' host=localhost port=35432 user='docker' password='docker' sslmode=disable key='id' srid=4326 type=LineString table="public"."osm_waterways" (geometry) sql= + + + + osm_waterways + + + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + + postgres + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + "name" + + + + + + + + + + + + + + + + + meters + m2 + + + 0 + 255 + 255 + 255 + 255 + 255 + 255 + + + 1 + + + true + 2 + + + false + + + false + + + WGS84 + + + + + + +