diff --git a/basemap/layers/linestring/create.sql b/basemap/layers/linestring/create.sql index 09ccd837f..5243b3373 100644 --- a/basemap/layers/linestring/create.sql +++ b/basemap/layers/linestring/create.sql @@ -12,11 +12,8 @@ -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -DROP - MATERIALIZED VIEW IF EXISTS osm_linestring CASCADE; - CREATE - MATERIALIZED VIEW IF NOT EXISTS osm_linestring AS SELECT + OR REPLACE VIEW osm_linestring AS SELECT id, tags, geom, @@ -29,4 +26,4 @@ CREATE geom IS NOT NULL AND ST_GeometryType(osm_way.geom)= 'ST_LineString' AND tags != '{}' - AND member_ref IS NULL WITH NO DATA; \ No newline at end of file + AND member_ref IS NULL; \ No newline at end of file diff --git a/basemap/layers/point/create.sql b/basemap/layers/point/create.sql index ea015c3cc..8e49eb83a 100644 --- a/basemap/layers/point/create.sql +++ b/basemap/layers/point/create.sql @@ -1,3 +1,17 @@ +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to you under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. CREATE OR REPLACE VIEW osm_point AS SELECT id, diff --git a/basemap/layers/power/create.sql b/basemap/layers/power/create.sql index 417fd5778..d842feea7 100644 --- a/basemap/layers/power/create.sql +++ b/basemap/layers/power/create.sql @@ -1,3 +1,17 @@ +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to you under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. CREATE OR REPLACE VIEW osm_power AS SELECT id,