Skip to content

Commit e9e02f8

Browse files
committed
Revert "PostgreSQL last version doesn't accept to use public schema"
This reverts commit b022fb6.
1 parent cac198a commit e9e02f8

File tree

7 files changed

+47
-50
lines changed

7 files changed

+47
-50
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ OSM_NAME_COLUMN?=name
1818
OSM_SRID?=3857
1919
OSM_UNITS?=meters
2020
OSM_DB_CONNECTION?=host=localhost dbname=osm user=osm password=osm port=5432
21-
OSM_SCHEMA?=public
2221
OSM_EXTENT?=-20000000 -20000000 20000000 20000000
2322
OSM_FORCE_POSTGIS_EXTENT?=0
2423
OSM_WMS_SRS?=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 EPSG:3035
@@ -112,7 +111,6 @@ $(mapfile):$(template) $(includes)
112111
$(SED) 's/##.*$$//g' $(mapfile)
113112
$(SED) '/^ *$$/d' $(mapfile)
114113
$(SED) -e 's/OSM_PREFIX_/$(OSM_PREFIX)/g' $(mapfile)
115-
$(SED) -e 's/OSM_SCHEMA/$(OSM_SCHEMA)/g' $(mapfile)
116114
$(SED) -e 's/OSM_SRID/$(OSM_SRID)/g' $(mapfile)
117115
$(SED) -e 's/OSM_UNITS/$(OSM_UNITS)/g' $(mapfile)
118116
$(SED) -e 's/OSM_EXTENT/$(OSM_EXTENT)/g' $(mapfile)

buildings.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LAYER
1212
#if OSM_FORCE_POSTGIS_EXTENT == 1
1313
EXTENT OSM_EXTENT
1414
#endif
15-
DATA "geometry from (select geometry,osm_id, OSM_NAME_COLUMN as name from OSM_SCHEMA.OSM_PREFIX_buildings) as foo using unique osm_id using srid=OSM_SRID"
15+
DATA "geometry from (select geometry,osm_id, OSM_NAME_COLUMN as name from OSM_PREFIX_buildings) as foo using unique osm_id using srid=OSM_SRID"
1616
LABELITEM "name"
1717
PROCESSING "LABEL_NO_CLIP=ON"
1818
PROCESSING "CLOSE_CONNECTION=DEFER"

docker.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
OSM_DB_CONNECTION=host=postgis dbname=osm user=osm password=osm port=5432
2-
OSM_SCHEMA=prod
32
OSM_PREFIX=osm_
43
OSM_FORCE_POSTGIS_EXTENT=1
54
OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:28992

docker/imposm/import.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ for url in $PBF_FILES; do
3535
done
3636

3737
imposm import $OPTIONS -write
38-
imposm import $OPTIONS --dbschema-production=prod -deployproduction
38+
imposm import $OPTIONS -deployproduction

generate_style.py

Lines changed: 43 additions & 43 deletions
Large diffs are not rendered by default.

highways.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ LAYER
930930
#if OSM_FORCE_POSTGIS_EXTENT == 1
931931
EXTENT OSM_EXTENT
932932
#endif
933-
DATA "geometry from (select geometry, osm_id, type from OSM_SCHEMA.OSM_PREFIX_aeroways) as foo using unique osm_id using srid=OSM_SRID"
933+
DATA "geometry from (select geometry, osm_id, type from OSM_PREFIX_aeroways) as foo using unique osm_id using srid=OSM_SRID"
934934
CLASSITEM "type"
935935
CLASS
936936
EXPRESSION "runway"

landusage.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ LAYER
257257
#if OSM_FORCE_POSTGIS_EXTENT == 1
258258
EXTENT OSM_EXTENT
259259
#endif
260-
DATA "geometry from OSM_SCHEMA.OSM_PREFIX_transport_areas using unique osm_id using srid=OSM_SRID"
260+
DATA "geometry from OSM_PREFIX_transport_areas using unique osm_id using srid=OSM_SRID"
261261
PROCESSING "CLOSE_CONNECTION=DEFER"
262262
MAXSCALEDENOM _maxscale
263263
MINSCALEDENOM _minscale

0 commit comments

Comments
 (0)