You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by lb...@apache.org on 2023/03/08 21:37:13 UTC

[incubator-baremaps] 01/01: Add missing license

This is an automated email from the ASF dual-hosted git repository.

lbesseau pushed a commit to branch fb/Add-license
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit 1c6346c344f9606d2fd62dcfc8f9cb9679d8f76b
Author: Léonard BESSEAU <lb...@pictet.com>
AuthorDate: Wed Mar 8 22:35:43 2023 +0100

    Add missing license
---
 .run/workflow-execute.run.xml                                |  3 ++-
 CODE_OF_CONDUCT.md                                           | 11 +++++++++++
 CONTRIBUTING.md                                              | 11 +++++++++++
 README.md                                                    | 11 +++++++++++
 baremaps-core/src/main/resources/iploc_init.sql              |  9 +++++++++
 .../src/test/resources/queries/osm_create_extensions.sql     |  9 +++++++++
 .../src/test/resources/queries/osm_create_gin_indexes.sql    |  9 +++++++++
 .../src/test/resources/queries/osm_create_gist_indexes.sql   |  9 +++++++++
 .../src/test/resources/queries/osm_create_spgist_indexes.sql |  9 +++++++++
 .../src/test/resources/queries/osm_create_tables.sql         |  9 +++++++++
 baremaps-core/src/test/resources/queries/osm_drop_tables.sql |  9 +++++++++
 .../src/test/resources/queries/osm_truncate_table.sql        |  9 +++++++++
 baremaps-core/src/test/resources/queries/queries.sql         | 10 ++++++++++
 baremaps-core/src/test/resources/queries/schema.sql          | 10 ++++++++++
 baremaps-core/src/test/resources/style.yaml                  | 10 ++++++++++
 baremaps-server/src/main/resources/assets/server.html        | 12 ++++++++++++
 baremaps-server/src/main/resources/assets/viewer.html        | 12 ++++++++++++
 baremaps-server/src/main/resources/geocoder/index.html       | 11 +++++++++++
 baremaps-server/src/main/resources/iploc/index.html          | 11 +++++++++++
 basemap/README.md                                            | 11 +++++++++++
 basemap/config.js                                            | 11 +++++++++++
 basemap/layers/aerialway/style.js                            | 11 +++++++++++
 basemap/layers/aerialway/tileset.js                          | 11 +++++++++++
 basemap/layers/aeroway/line.js                               | 11 +++++++++++
 basemap/layers/aeroway/polygon.js                            | 11 +++++++++++
 basemap/layers/aeroway/tileset.js                            | 11 +++++++++++
 basemap/layers/amenity/background.js                         | 11 +++++++++++
 basemap/layers/amenity/fountain.js                           | 11 +++++++++++
 basemap/layers/amenity/overlay.js                            | 11 +++++++++++
 basemap/layers/amenity/tileset.js                            | 11 +++++++++++
 basemap/layers/attraction/style.js                           | 11 +++++++++++
 basemap/layers/attraction/tileset.js                         | 11 +++++++++++
 basemap/layers/background/style.js                           | 11 +++++++++++
 basemap/layers/barrier/style.js                              | 11 +++++++++++
 basemap/layers/barrier/tileset.js                            | 11 +++++++++++
 basemap/layers/boundary/line.js                              | 11 +++++++++++
 basemap/layers/boundary/tileset.js                           | 11 +++++++++++
 basemap/layers/building/number.js                            | 11 +++++++++++
 basemap/layers/building/shape.js                             | 11 +++++++++++
 basemap/layers/building/tileset.js                           | 11 +++++++++++
 basemap/layers/highway/bridge_line.js                        | 11 +++++++++++
 basemap/layers/highway/bridge_outline.js                     | 11 +++++++++++
 basemap/layers/highway/highway_construction.js               | 11 +++++++++++
 basemap/layers/highway/highway_dash.js                       | 11 +++++++++++
 basemap/layers/highway/highway_label.js                      | 11 +++++++++++
 basemap/layers/highway/highway_line.js                       | 11 +++++++++++
 basemap/layers/highway/highway_outline.js                    | 11 +++++++++++
 basemap/layers/highway/pedestrian_area.js                    | 11 +++++++++++
 basemap/layers/highway/tileset.js                            | 11 +++++++++++
 basemap/layers/highway/tunnel_line.js                        | 11 +++++++++++
 basemap/layers/highway/tunnel_outline.js                     | 11 +++++++++++
 basemap/layers/labels/style.js                               | 11 +++++++++++
 basemap/layers/landuse/background.js                         | 11 +++++++++++
 basemap/layers/landuse/overlay.js                            | 11 +++++++++++
 basemap/layers/landuse/tileset.js                            | 11 +++++++++++
 basemap/layers/leisure/background.js                         | 11 +++++++++++
 basemap/layers/leisure/nature_reserve.js                     | 11 +++++++++++
 basemap/layers/leisure/overlay.js                            | 11 +++++++++++
 basemap/layers/leisure/tileset.js                            | 11 +++++++++++
 basemap/layers/man_made/bridge.js                            | 11 +++++++++++
 basemap/layers/man_made/pier_label.js                        | 11 +++++++++++
 basemap/layers/man_made/pier_line.js                         | 11 +++++++++++
 basemap/layers/man_made/tileset.js                           | 11 +++++++++++
 basemap/layers/natural/background.js                         | 11 +++++++++++
 basemap/layers/natural/overlay.js                            | 11 +++++++++++
 basemap/layers/natural/tileset.js                            | 11 +++++++++++
 basemap/layers/natural/tree.js                               | 11 +++++++++++
 basemap/layers/natural/trunk.js                              | 11 +++++++++++
 basemap/layers/natural/water.js                              | 11 +++++++++++
 basemap/layers/ocean/overlay.js                              | 11 +++++++++++
 basemap/layers/ocean/tileset.js                              | 11 +++++++++++
 basemap/layers/point/icon.js                                 | 11 +++++++++++
 basemap/layers/point/label.js                                | 11 +++++++++++
 basemap/layers/point/tileset.js                              | 11 +++++++++++
 basemap/layers/power/background.js                           | 11 +++++++++++
 basemap/layers/power/cable.js                                | 11 +++++++++++
 basemap/layers/power/tileset.js                              | 11 +++++++++++
 basemap/layers/power/tower.js                                | 11 +++++++++++
 basemap/layers/railway/line.js                               | 11 +++++++++++
 basemap/layers/railway/tileset.js                            | 11 +++++++++++
 basemap/layers/railway/tunnel.js                             | 11 +++++++++++
 basemap/layers/route/style.js                                | 11 +++++++++++
 basemap/layers/route/tileset.js                              | 11 +++++++++++
 basemap/layers/tourism/style_zoo_fill.js                     | 11 +++++++++++
 basemap/layers/tourism/style_zoo_line.js                     | 11 +++++++++++
 basemap/layers/tourism/tileset.js                            | 11 +++++++++++
 basemap/layers/waterway/label.js                             | 11 +++++++++++
 basemap/layers/waterway/line.js                              | 11 +++++++++++
 basemap/layers/waterway/tileset.js                           | 11 +++++++++++
 basemap/layers/waterway/tunnel_casing.js                     | 11 +++++++++++
 basemap/layers/waterway/tunnel_line.js                       | 11 +++++++++++
 basemap/queries/globaladm0_clean.sql                         | 10 +++++++++-
 basemap/queries/globaladm0_index.sql                         | 11 +++++++++--
 basemap/queries/globaladm0_simplify.sql                      | 11 +++++++++--
 basemap/queries/globaladm1_clean.sql                         | 10 +++++++++-
 basemap/queries/globaladm1_index.sql                         | 11 +++++++++--
 basemap/queries/globaladm1_simplify.sql                      | 11 +++++++++--
 basemap/queries/globaladm2_clean.sql                         | 10 +++++++++-
 basemap/queries/globaladm2_index.sql                         | 11 +++++++++--
 basemap/queries/globaladm2_simplify.sql                      | 11 +++++++++--
 basemap/queries/initialize.sql                               |  9 +++++++++
 basemap/queries/ne_index.sql                                 |  9 +++++++++
 basemap/queries/osm_boundary.sql                             | 10 +++++++++-
 basemap/queries/osm_boundary_index.sql                       | 10 +++++++++-
 basemap/queries/osm_boundary_prepare.sql                     |  9 +++++++++
 basemap/queries/osm_boundary_simplify.sql                    |  9 +++++++++
 basemap/queries/osm_highway_index.sql                        |  9 +++++++++
 basemap/queries/osm_highway_prepare.sql                      |  9 +++++++++
 basemap/queries/osm_highway_simplify.sql                     |  9 +++++++++
 basemap/queries/osm_landuse_index.sql                        |  9 +++++++++
 basemap/queries/osm_landuse_prepare.sql                      | 10 +++++++++-
 basemap/queries/osm_landuse_simplify.sql                     |  9 +++++++++
 basemap/queries/osm_linestring.sql                           |  9 +++++++++
 basemap/queries/osm_natural_index.sql                        |  9 +++++++++
 basemap/queries/osm_natural_prepare.sql                      | 11 +++++++++--
 basemap/queries/osm_natural_simplify.sql                     |  9 +++++++++
 basemap/queries/osm_nodes_clean.sql                          |  9 +++++++++
 basemap/queries/osm_nodes_index.sql                          |  9 +++++++++
 basemap/queries/osm_nodes_prepare.sql                        |  9 +++++++++
 basemap/queries/osm_nodes_simplify.sql                       |  9 +++++++++
 basemap/queries/osm_polygon_index.sql                        | 10 +++++++++-
 basemap/queries/osm_polygon_prepare.sql                      |  9 +++++++++
 basemap/queries/osm_railway_index.sql                        | 10 +++++++++-
 basemap/queries/osm_railway_prepare.sql                      |  9 +++++++++
 basemap/queries/osm_railway_simplify.sql                     |  9 +++++++++
 basemap/queries/osm_relations_clean.sql                      |  9 +++++++++
 basemap/queries/osm_relations_index.sql                      |  9 +++++++++
 basemap/queries/osm_relations_prepare.sql                    |  9 +++++++++
 basemap/queries/osm_relations_simplify.sql                   |  9 +++++++++
 basemap/queries/osm_simplified_water_index.sql               |  9 +++++++++
 basemap/queries/osm_water_index.sql                          |  9 +++++++++
 basemap/queries/osm_ways_clean.sql                           |  9 +++++++++
 basemap/queries/osm_ways_index.sql                           |  9 +++++++++
 basemap/queries/osm_ways_prepare.sql                         |  9 +++++++++
 basemap/queries/osm_ways_simplify.sql                        | 11 +++++++++--
 basemap/queries/statistics.sql                               |  9 +++++++++
 basemap/style.js                                             | 11 +++++++++++
 basemap/tileset.js                                           | 11 +++++++++++
 basemap/utils/color.js                                       | 11 +++++++++++
 basemap/utils/layer.js                                       | 11 +++++++++++
 basemap/utils/utils.js                                       | 10 ++++++++++
 basemap/workflow.js                                          | 11 +++++++++++
 examples/_geoadmin/tileset.yaml                              | 10 ++++++++++
 examples/contour/README.md                                   | 11 +++++++++++
 examples/contour/indexes.sql                                 |  9 +++++++++
 examples/extrusion/README.md                                 | 11 +++++++++++
 examples/extrusion/indexes.sql                               |  9 +++++++++
 examples/geocoding/README.md                                 | 11 +++++++++++
 examples/geocoding/workflow.js                               | 11 +++++++++++
 examples/ip-to-location/README.md                            | 11 +++++++++++
 examples/ip-to-location/workflow.js                          | 11 +++++++++++
 examples/naturalearth/README.md                              | 11 +++++++++++
 examples/naturalearth/indexes.sql                            |  9 +++++++++
 examples/openstreetmap/README.md                             | 11 +++++++++++
 examples/openstreetmap/indexes.sql                           |  9 +++++++++
 examples/openstreetmap/style.js                              | 11 +++++++++++
 156 files changed, 1590 insertions(+), 25 deletions(-)

diff --git a/.run/workflow-execute.run.xml b/.run/workflow-execute.run.xml
index 51eaabe0..812d37f6 100644
--- a/.run/workflow-execute.run.xml
+++ b/.run/workflow-execute.run.xml
@@ -2,7 +2,8 @@
   <configuration default="false" name="workflow-execute" type="Application" factoryName="Application">
     <option name="MAIN_CLASS_NAME" value="org.apache.baremaps.cli.Baremaps" />
     <module name="baremaps-cli" />
-    <option name="PROGRAM_PARAMETERS" value="workflow execute --file workflow.js" />
+    <option name="PROGRAM_PARAMETERS" value="workflow execute --file workflow.json" />
+    <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/examples/simplification" />
     <extension name="coverage">
       <pattern>
         <option name="PATTERN" value="org.apache.baremaps.server.ogcapi.*" />
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 65790f68..bc98fb01 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # Contributor Covenant Code of Conduct
 
 ## Our Pledge
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bf418d8a..b034cb00 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # Contributing to Baremaps
 
 This document describes the way you can contribute to the Baremaps project.
diff --git a/README.md b/README.md
index 2b0197ba..2de2b7f5 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 <div align="center">
 <br/>
 <img src="logo.svg" width="100px">
diff --git a/baremaps-core/src/main/resources/iploc_init.sql b/baremaps-core/src/main/resources/iploc_init.sql
index 6ad3a943..595d6eb8 100644
--- a/baremaps-core/src/main/resources/iploc_init.sql
+++ b/baremaps-core/src/main/resources/iploc_init.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP TABLE IF EXISTS inetnum_locations;
 CREATE TABLE IF NOT EXISTS inetnum_locations (
     id integer PRIMARY KEY,
diff --git a/baremaps-core/src/test/resources/queries/osm_create_extensions.sql b/baremaps-core/src/test/resources/queries/osm_create_extensions.sql
index b286c502..2a29b8d8 100644
--- a/baremaps-core/src/test/resources/queries/osm_create_extensions.sql
+++ b/baremaps-core/src/test/resources/queries/osm_create_extensions.sql
@@ -1,2 +1,11 @@
+-- Licensed 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 EXTENSION IF NOT EXISTS hstore;
 CREATE EXTENSION IF NOT EXISTS postgis;
diff --git a/baremaps-core/src/test/resources/queries/osm_create_gin_indexes.sql b/baremaps-core/src/test/resources/queries/osm_create_gin_indexes.sql
index 6962c42f..fa72f4d0 100644
--- a/baremaps-core/src/test/resources/queries/osm_create_gin_indexes.sql
+++ b/baremaps-core/src/test/resources/queries/osm_create_gin_indexes.sql
@@ -1,2 +1,11 @@
+-- Licensed 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 INDEX CONCURRENTLY IF NOT EXISTS osm_ways_gin ON osm_ways USING gin (nodes);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_relations_gin ON osm_relations USING gin (member_refs);
diff --git a/baremaps-core/src/test/resources/queries/osm_create_gist_indexes.sql b/baremaps-core/src/test/resources/queries/osm_create_gist_indexes.sql
index 4649c6be..4892e836 100644
--- a/baremaps-core/src/test/resources/queries/osm_create_gist_indexes.sql
+++ b/baremaps-core/src/test/resources/queries/osm_create_gist_indexes.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX CONCURRENTLY IF NOT EXISTS osm_nodes_gix ON osm_nodes USING GIST (geom);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_ways_gix ON osm_ways USING GIST (geom);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_relations_gix ON osm_relations USING GIST (geom);
\ No newline at end of file
diff --git a/baremaps-core/src/test/resources/queries/osm_create_spgist_indexes.sql b/baremaps-core/src/test/resources/queries/osm_create_spgist_indexes.sql
index ec3d3466..2adffd47 100644
--- a/baremaps-core/src/test/resources/queries/osm_create_spgist_indexes.sql
+++ b/baremaps-core/src/test/resources/queries/osm_create_spgist_indexes.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX CONCURRENTLY IF NOT EXISTS osm_nodes_gix ON osm_nodes USING SPGIST (geom);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_ways_gix ON osm_ways USING SPGIST (geom);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_relations_gix ON osm_relations USING SPGIST (geom);
\ No newline at end of file
diff --git a/baremaps-core/src/test/resources/queries/osm_create_tables.sql b/baremaps-core/src/test/resources/queries/osm_create_tables.sql
index dc5bdd82..f20bcf39 100644
--- a/baremaps-core/src/test/resources/queries/osm_create_tables.sql
+++ b/baremaps-core/src/test/resources/queries/osm_create_tables.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 TABLE IF NOT EXISTS osm_headers
 (
     replication_sequence_number bigint PRIMARY KEY,
diff --git a/baremaps-core/src/test/resources/queries/osm_drop_tables.sql b/baremaps-core/src/test/resources/queries/osm_drop_tables.sql
index 8323b520..d74732ae 100644
--- a/baremaps-core/src/test/resources/queries/osm_drop_tables.sql
+++ b/baremaps-core/src/test/resources/queries/osm_drop_tables.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP TABLE IF EXISTS osm_headers;
 DROP TABLE IF EXISTS osm_nodes;
 DROP TABLE IF EXISTS osm_ways;
diff --git a/baremaps-core/src/test/resources/queries/osm_truncate_table.sql b/baremaps-core/src/test/resources/queries/osm_truncate_table.sql
index c1610355..ab3ef28c 100644
--- a/baremaps-core/src/test/resources/queries/osm_truncate_table.sql
+++ b/baremaps-core/src/test/resources/queries/osm_truncate_table.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 TRUNCATE TABLE osm_headers;
 TRUNCATE TABLE osm_nodes;
 TRUNCATE TABLE osm_ways;
diff --git a/baremaps-core/src/test/resources/queries/queries.sql b/baremaps-core/src/test/resources/queries/queries.sql
index abe9f3ef..1ea13412 100644
--- a/baremaps-core/src/test/resources/queries/queries.sql
+++ b/baremaps-core/src/test/resources/queries/queries.sql
@@ -1,3 +1,13 @@
+-- Licensed 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.
+
 SELECT 1;
 SELECT 2;
 SELECT 3;
diff --git a/baremaps-core/src/test/resources/queries/schema.sql b/baremaps-core/src/test/resources/queries/schema.sql
index acaf71aa..18b3fee7 100644
--- a/baremaps-core/src/test/resources/queries/schema.sql
+++ b/baremaps-core/src/test/resources/queries/schema.sql
@@ -1,5 +1,15 @@
 -- mbtiles schema
 
+-- Licensed 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.
+
 BEGIN;
 
 CREATE TABLE indexdata (name text, value text);
diff --git a/baremaps-core/src/test/resources/style.yaml b/baremaps-core/src/test/resources/style.yaml
index cc1bebdb..70bdf68b 100644
--- a/baremaps-core/src/test/resources/style.yaml
+++ b/baremaps-core/src/test/resources/style.yaml
@@ -1 +1,11 @@
+#    Licensed 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.
+
 name: "style"
diff --git a/baremaps-server/src/main/resources/assets/server.html b/baremaps-server/src/main/resources/assets/server.html
index 8b1011dc..c84eb491 100644
--- a/baremaps-server/src/main/resources/assets/server.html
+++ b/baremaps-server/src/main/resources/assets/server.html
@@ -1,3 +1,15 @@
+<!DOCTYPE html>
+<!--
+  Licensed 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.
+  -->
 <html>
 <head>
   <script src='https://unpkg.com/maplibre-gl@2.1.9/dist/maplibre-gl.js'></script>
diff --git a/baremaps-server/src/main/resources/assets/viewer.html b/baremaps-server/src/main/resources/assets/viewer.html
index 7dc16852..a92295ec 100644
--- a/baremaps-server/src/main/resources/assets/viewer.html
+++ b/baremaps-server/src/main/resources/assets/viewer.html
@@ -1,3 +1,15 @@
+<!DOCTYPE html>
+<!--
+  Licensed 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.
+  -->
 <html>
 <head>
   <script src='https://unpkg.com/maplibre-gl@2.1.9/dist/maplibre-gl.js'></script>
diff --git a/baremaps-server/src/main/resources/geocoder/index.html b/baremaps-server/src/main/resources/geocoder/index.html
index 2662e311..d2a0bd33 100644
--- a/baremaps-server/src/main/resources/geocoder/index.html
+++ b/baremaps-server/src/main/resources/geocoder/index.html
@@ -1,4 +1,15 @@
 <!DOCTYPE html>
+<!--
+  Licensed 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.
+  -->
 <html>
 <head>
     <meta charset="utf-8"/>
diff --git a/baremaps-server/src/main/resources/iploc/index.html b/baremaps-server/src/main/resources/iploc/index.html
index 1cb6cacd..7bd62504 100644
--- a/baremaps-server/src/main/resources/iploc/index.html
+++ b/baremaps-server/src/main/resources/iploc/index.html
@@ -1,4 +1,15 @@
 <!DOCTYPE html>
+<!--
+  Licensed 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.
+  -->
 <html>
 <head>
     <meta charset="utf-8"/>
diff --git a/basemap/README.md b/basemap/README.md
index 5cda364e..60e5b171 100644
--- a/basemap/README.md
+++ b/basemap/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # OpenStreetMap Vecto
 
 🚧 🚧 Work in progress 🚧 🚧
diff --git a/basemap/config.js b/basemap/config.js
index cf76c900..e0487484 100644
--- a/basemap/config.js
+++ b/basemap/config.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "host": "http://localhost:9000",
     "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps",
diff --git a/basemap/layers/aerialway/style.js b/basemap/layers/aerialway/style.js
index 5992fffe..b2465bd8 100644
--- a/basemap/layers/aerialway/style.js
+++ b/basemap/layers/aerialway/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'aerialway_line',
     type: 'line',
diff --git a/basemap/layers/aerialway/tileset.js b/basemap/layers/aerialway/tileset.js
index f477aeb2..663cc305 100644
--- a/basemap/layers/aerialway/tileset.js
+++ b/basemap/layers/aerialway/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'aerialway',
     queries: [
diff --git a/basemap/layers/aeroway/line.js b/basemap/layers/aeroway/line.js
index bb0ea0e7..cf80d93f 100644
--- a/basemap/layers/aeroway/line.js
+++ b/basemap/layers/aeroway/line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/aeroway/polygon.js b/basemap/layers/aeroway/polygon.js
index bb21f1d1..2cba51b6 100644
--- a/basemap/layers/aeroway/polygon.js
+++ b/basemap/layers/aeroway/polygon.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/aeroway/tileset.js b/basemap/layers/aeroway/tileset.js
index eb947dbb..1d92475d 100644
--- a/basemap/layers/aeroway/tileset.js
+++ b/basemap/layers/aeroway/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'aeroway',
     queries: [
diff --git a/basemap/layers/amenity/background.js b/basemap/layers/amenity/background.js
index d06a7eb5..7d4f1b95 100644
--- a/basemap/layers/amenity/background.js
+++ b/basemap/layers/amenity/background.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/amenity/fountain.js b/basemap/layers/amenity/fountain.js
index c2859b16..4fce421e 100644
--- a/basemap/layers/amenity/fountain.js
+++ b/basemap/layers/amenity/fountain.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/amenity/overlay.js b/basemap/layers/amenity/overlay.js
index 05baf950..e7c77fd1 100644
--- a/basemap/layers/amenity/overlay.js
+++ b/basemap/layers/amenity/overlay.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/amenity/tileset.js b/basemap/layers/amenity/tileset.js
index d6aa8c89..03271bd1 100644
--- a/basemap/layers/amenity/tileset.js
+++ b/basemap/layers/amenity/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'amenity',
     queries: [
diff --git a/basemap/layers/attraction/style.js b/basemap/layers/attraction/style.js
index f552405a..82742b86 100644
--- a/basemap/layers/attraction/style.js
+++ b/basemap/layers/attraction/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default [
     {
         id: 'water_slide_casing',
diff --git a/basemap/layers/attraction/tileset.js b/basemap/layers/attraction/tileset.js
index 60160612..0a109e03 100644
--- a/basemap/layers/attraction/tileset.js
+++ b/basemap/layers/attraction/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'attraction',
     queries: [
diff --git a/basemap/layers/background/style.js b/basemap/layers/background/style.js
index 168f506c..f8418799 100644
--- a/basemap/layers/background/style.js
+++ b/basemap/layers/background/style.js
@@ -1,3 +1,14 @@
+/**
+  Licensed 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.
+**/
 export default {
     id: 'background',
     type: 'background',
diff --git a/basemap/layers/barrier/style.js b/basemap/layers/barrier/style.js
index 3922248e..15e068ce 100644
--- a/basemap/layers/barrier/style.js
+++ b/basemap/layers/barrier/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default [
     {
         id: 'barrier_guard_rail',
diff --git a/basemap/layers/barrier/tileset.js b/basemap/layers/barrier/tileset.js
index 754cb8bf..14862282 100644
--- a/basemap/layers/barrier/tileset.js
+++ b/basemap/layers/barrier/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'barrier',
     queries: [
diff --git a/basemap/layers/boundary/line.js b/basemap/layers/boundary/line.js
index de5f429c..ca037903 100644
--- a/basemap/layers/boundary/line.js
+++ b/basemap/layers/boundary/line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/boundary/tileset.js b/basemap/layers/boundary/tileset.js
index 8d305424..efb64dbc 100644
--- a/basemap/layers/boundary/tileset.js
+++ b/basemap/layers/boundary/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'boundary',
     queries: [
diff --git a/basemap/layers/building/number.js b/basemap/layers/building/number.js
index b7809337..3c349fb8 100644
--- a/basemap/layers/building/number.js
+++ b/basemap/layers/building/number.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'building_number',
     type: 'symbol',
diff --git a/basemap/layers/building/shape.js b/basemap/layers/building/shape.js
index 55f6b973..ceea6ff2 100644
--- a/basemap/layers/building/shape.js
+++ b/basemap/layers/building/shape.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'building',
     type: 'fill',
diff --git a/basemap/layers/building/tileset.js b/basemap/layers/building/tileset.js
index 067be538..b58672b1 100644
--- a/basemap/layers/building/tileset.js
+++ b/basemap/layers/building/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'building',
     queries: [
diff --git a/basemap/layers/highway/bridge_line.js b/basemap/layers/highway/bridge_line.js
index 16f737b4..33fb538e 100644
--- a/basemap/layers/highway/bridge_line.js
+++ b/basemap/layers/highway/bridge_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/highway/bridge_outline.js b/basemap/layers/highway/bridge_outline.js
index 0dc79e90..67d4f24d 100644
--- a/basemap/layers/highway/bridge_outline.js
+++ b/basemap/layers/highway/bridge_outline.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/highway/highway_construction.js b/basemap/layers/highway/highway_construction.js
index b76f6607..bc949cfc 100644
--- a/basemap/layers/highway/highway_construction.js
+++ b/basemap/layers/highway/highway_construction.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 // TODO:
 // recover construction styles.
 // https://raw.githubusercontent.com/baremaps/openstreetmap-vecto/7b7b9e8/layers/highway/style.js
diff --git a/basemap/layers/highway/highway_dash.js b/basemap/layers/highway/highway_dash.js
index b63e38ad..f5e34a29 100644
--- a/basemap/layers/highway/highway_dash.js
+++ b/basemap/layers/highway/highway_dash.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/highway/highway_label.js b/basemap/layers/highway/highway_label.js
index 19374680..da28244a 100644
--- a/basemap/layers/highway/highway_label.js
+++ b/basemap/layers/highway/highway_label.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'highway_label',
     type: 'symbol',
diff --git a/basemap/layers/highway/highway_line.js b/basemap/layers/highway/highway_line.js
index cd7a9de8..251a3be7 100644
--- a/basemap/layers/highway/highway_line.js
+++ b/basemap/layers/highway/highway_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/highway/highway_outline.js b/basemap/layers/highway/highway_outline.js
index 6b7512ff..7cf935e5 100644
--- a/basemap/layers/highway/highway_outline.js
+++ b/basemap/layers/highway/highway_outline.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives =[
diff --git a/basemap/layers/highway/pedestrian_area.js b/basemap/layers/highway/pedestrian_area.js
index 148daa86..8c77f471 100644
--- a/basemap/layers/highway/pedestrian_area.js
+++ b/basemap/layers/highway/pedestrian_area.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'pedestrian_area',
     source: 'baremaps',
diff --git a/basemap/layers/highway/tileset.js b/basemap/layers/highway/tileset.js
index 6d83f82b..5982a28e 100644
--- a/basemap/layers/highway/tileset.js
+++ b/basemap/layers/highway/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'highway',
     queries: [
diff --git a/basemap/layers/highway/tunnel_line.js b/basemap/layers/highway/tunnel_line.js
index c628c5ff..e84efeb1 100644
--- a/basemap/layers/highway/tunnel_line.js
+++ b/basemap/layers/highway/tunnel_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/highway/tunnel_outline.js b/basemap/layers/highway/tunnel_outline.js
index 6ce21959..288f0130 100644
--- a/basemap/layers/highway/tunnel_outline.js
+++ b/basemap/layers/highway/tunnel_outline.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/labels/style.js b/basemap/layers/labels/style.js
index 81c1897f..6e46fbfc 100644
--- a/basemap/layers/labels/style.js
+++ b/basemap/layers/labels/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default [
     {
         id: 'dormitory_labels',
diff --git a/basemap/layers/landuse/background.js b/basemap/layers/landuse/background.js
index 0e5067fb..02bf5af1 100644
--- a/basemap/layers/landuse/background.js
+++ b/basemap/layers/landuse/background.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {withFillSortKey, asLayoutProperty, asPaintProperty} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/landuse/overlay.js b/basemap/layers/landuse/overlay.js
index b5059eb5..d57bd0db 100644
--- a/basemap/layers/landuse/overlay.js
+++ b/basemap/layers/landuse/overlay.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withFillSortKey} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/landuse/tileset.js b/basemap/layers/landuse/tileset.js
index 13d052c7..a3130f97 100644
--- a/basemap/layers/landuse/tileset.js
+++ b/basemap/layers/landuse/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'landuse',
     queries: [
diff --git a/basemap/layers/leisure/background.js b/basemap/layers/leisure/background.js
index d7476f39..8f09feb9 100644
--- a/basemap/layers/leisure/background.js
+++ b/basemap/layers/leisure/background.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/leisure/nature_reserve.js b/basemap/layers/leisure/nature_reserve.js
index 18cf6990..0304582a 100644
--- a/basemap/layers/leisure/nature_reserve.js
+++ b/basemap/layers/leisure/nature_reserve.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {withFillSortKey} from "../../utils/utils.js";
 
 let directives =  [
diff --git a/basemap/layers/leisure/overlay.js b/basemap/layers/leisure/overlay.js
index 51512ab9..67df0935 100644
--- a/basemap/layers/leisure/overlay.js
+++ b/basemap/layers/leisure/overlay.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/leisure/tileset.js b/basemap/layers/leisure/tileset.js
index 6260c926..771d1fe9 100644
--- a/basemap/layers/leisure/tileset.js
+++ b/basemap/layers/leisure/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'leisure',
     queries: [
diff --git a/basemap/layers/man_made/bridge.js b/basemap/layers/man_made/bridge.js
index 3ba32e3c..9970aff8 100644
--- a/basemap/layers/man_made/bridge.js
+++ b/basemap/layers/man_made/bridge.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/man_made/pier_label.js b/basemap/layers/man_made/pier_label.js
index d6188f67..e98f7362 100644
--- a/basemap/layers/man_made/pier_label.js
+++ b/basemap/layers/man_made/pier_label.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'man_made_pier_label',
     type: 'symbol',
diff --git a/basemap/layers/man_made/pier_line.js b/basemap/layers/man_made/pier_line.js
index 6c360ee4..fe0dd085 100644
--- a/basemap/layers/man_made/pier_line.js
+++ b/basemap/layers/man_made/pier_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'man_made_pier_line',
     type: 'line',
diff --git a/basemap/layers/man_made/tileset.js b/basemap/layers/man_made/tileset.js
index 17452a0e..e2539de0 100644
--- a/basemap/layers/man_made/tileset.js
+++ b/basemap/layers/man_made/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "man_made",
     "queries": [
diff --git a/basemap/layers/natural/background.js b/basemap/layers/natural/background.js
index c002ed01..59241784 100644
--- a/basemap/layers/natural/background.js
+++ b/basemap/layers/natural/background.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/natural/overlay.js b/basemap/layers/natural/overlay.js
index c2d42f4c..571d0d29 100644
--- a/basemap/layers/natural/overlay.js
+++ b/basemap/layers/natural/overlay.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/natural/tileset.js b/basemap/layers/natural/tileset.js
index cfd6739e..691b3458 100644
--- a/basemap/layers/natural/tileset.js
+++ b/basemap/layers/natural/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "natural",
     "queries": [
diff --git a/basemap/layers/natural/tree.js b/basemap/layers/natural/tree.js
index fbc0419a..c9a4b801 100644
--- a/basemap/layers/natural/tree.js
+++ b/basemap/layers/natural/tree.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'natural_tree',
     type: 'circle',
diff --git a/basemap/layers/natural/trunk.js b/basemap/layers/natural/trunk.js
index 8d214278..414bc3df 100644
--- a/basemap/layers/natural/trunk.js
+++ b/basemap/layers/natural/trunk.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'natural_trunk',
     type: 'circle',
diff --git a/basemap/layers/natural/water.js b/basemap/layers/natural/water.js
index 22a24e17..1e4795b1 100644
--- a/basemap/layers/natural/water.js
+++ b/basemap/layers/natural/water.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'natural_water',
     type: 'fill',
diff --git a/basemap/layers/ocean/overlay.js b/basemap/layers/ocean/overlay.js
index 0d86ebc4..baff54d3 100644
--- a/basemap/layers/ocean/overlay.js
+++ b/basemap/layers/ocean/overlay.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {withSortKeys, asLayerObject} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/ocean/tileset.js b/basemap/layers/ocean/tileset.js
index 0a9e14ad..fd176242 100644
--- a/basemap/layers/ocean/tileset.js
+++ b/basemap/layers/ocean/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "ocean",
     "queries": [
diff --git a/basemap/layers/point/icon.js b/basemap/layers/point/icon.js
index 25da68d3..d493f452 100644
--- a/basemap/layers/point/icon.js
+++ b/basemap/layers/point/icon.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/point/label.js b/basemap/layers/point/label.js
index 2a68feb6..f48e0527 100644
--- a/basemap/layers/point/label.js
+++ b/basemap/layers/point/label.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSymbolSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/point/tileset.js b/basemap/layers/point/tileset.js
index 758048a2..33b8c878 100644
--- a/basemap/layers/point/tileset.js
+++ b/basemap/layers/point/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "point",
     "queries": [
diff --git a/basemap/layers/power/background.js b/basemap/layers/power/background.js
index e8cca6ff..43cd59f5 100644
--- a/basemap/layers/power/background.js
+++ b/basemap/layers/power/background.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'power_plant',
     type: 'fill',
diff --git a/basemap/layers/power/cable.js b/basemap/layers/power/cable.js
index bd8538e9..44c8451a 100644
--- a/basemap/layers/power/cable.js
+++ b/basemap/layers/power/cable.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'power_cable',
     type: 'line',
diff --git a/basemap/layers/power/tileset.js b/basemap/layers/power/tileset.js
index 9b74bfa8..b5b7932b 100644
--- a/basemap/layers/power/tileset.js
+++ b/basemap/layers/power/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "power",
     "queries": [
diff --git a/basemap/layers/power/tower.js b/basemap/layers/power/tower.js
index c5b4ff63..d38e9d7e 100644
--- a/basemap/layers/power/tower.js
+++ b/basemap/layers/power/tower.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "power_tower",
     "type": "circle",
diff --git a/basemap/layers/railway/line.js b/basemap/layers/railway/line.js
index f2c52aa2..fc28a32d 100644
--- a/basemap/layers/railway/line.js
+++ b/basemap/layers/railway/line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 export let directives = [
diff --git a/basemap/layers/railway/tileset.js b/basemap/layers/railway/tileset.js
index 67770827..0f2f2422 100644
--- a/basemap/layers/railway/tileset.js
+++ b/basemap/layers/railway/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "railway",
     "queries": [
diff --git a/basemap/layers/railway/tunnel.js b/basemap/layers/railway/tunnel.js
index 0e733578..2eb79071 100644
--- a/basemap/layers/railway/tunnel.js
+++ b/basemap/layers/railway/tunnel.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 import {directives} from './line.js'
diff --git a/basemap/layers/route/style.js b/basemap/layers/route/style.js
index 1a38b88d..69375e72 100644
--- a/basemap/layers/route/style.js
+++ b/basemap/layers/route/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import {asLayerObject, withSortKeys} from "../../utils/utils.js";
 
 let directives = [
diff --git a/basemap/layers/route/tileset.js b/basemap/layers/route/tileset.js
index 3b8c82f5..d165ed81 100644
--- a/basemap/layers/route/tileset.js
+++ b/basemap/layers/route/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "route",
     "queries": [
diff --git a/basemap/layers/tourism/style_zoo_fill.js b/basemap/layers/tourism/style_zoo_fill.js
index b429c173..7d7d2696 100644
--- a/basemap/layers/tourism/style_zoo_fill.js
+++ b/basemap/layers/tourism/style_zoo_fill.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "tourism_zoo_casing",
     "type": "line",
diff --git a/basemap/layers/tourism/style_zoo_line.js b/basemap/layers/tourism/style_zoo_line.js
index 1ff45b9d..a1411fc0 100644
--- a/basemap/layers/tourism/style_zoo_line.js
+++ b/basemap/layers/tourism/style_zoo_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "tourism_zoo",
     "type": "line",
diff --git a/basemap/layers/tourism/tileset.js b/basemap/layers/tourism/tileset.js
index b5249bc4..b3cf71fd 100644
--- a/basemap/layers/tourism/tileset.js
+++ b/basemap/layers/tourism/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "tourism",
     "queries": [
diff --git a/basemap/layers/waterway/label.js b/basemap/layers/waterway/label.js
index 9442cfc8..959f4674 100644
--- a/basemap/layers/waterway/label.js
+++ b/basemap/layers/waterway/label.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     id: 'waterway_label',
     type: 'symbol',
diff --git a/basemap/layers/waterway/line.js b/basemap/layers/waterway/line.js
index 377de9f9..6c84a60d 100644
--- a/basemap/layers/waterway/line.js
+++ b/basemap/layers/waterway/line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "waterway",
     "type": "line",
diff --git a/basemap/layers/waterway/tileset.js b/basemap/layers/waterway/tileset.js
index d84fcbd9..23cda847 100644
--- a/basemap/layers/waterway/tileset.js
+++ b/basemap/layers/waterway/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "waterway",
     "queries": [
diff --git a/basemap/layers/waterway/tunnel_casing.js b/basemap/layers/waterway/tunnel_casing.js
index ebefa594..5c7257fb 100644
--- a/basemap/layers/waterway/tunnel_casing.js
+++ b/basemap/layers/waterway/tunnel_casing.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "waterway_tunnel_casing",
     "type": "line",
diff --git a/basemap/layers/waterway/tunnel_line.js b/basemap/layers/waterway/tunnel_line.js
index 406a39c7..5d543c1f 100644
--- a/basemap/layers/waterway/tunnel_line.js
+++ b/basemap/layers/waterway/tunnel_line.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
     "id": "waterway_tunnel",
     "type": "line",
diff --git a/basemap/queries/globaladm0_clean.sql b/basemap/queries/globaladm0_clean.sql
index 75af7114..b48fee0b 100644
--- a/basemap/queries/globaladm0_clean.sql
+++ b/basemap/queries/globaladm0_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP VIEW IF EXISTS globaladm0_z20 CASCADE;
 DROP VIEW IF EXISTS globaladm0_z19 CASCADE;
 DROP VIEW IF EXISTS globaladm0_z18 CASCADE;
@@ -19,4 +28,3 @@ DROP MATERIALIZED VIEW IF EXISTS globaladm0_z4 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm0_z3 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm0_z2 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm0_z1 CASCADE;
-
diff --git a/basemap/queries/globaladm0_index.sql b/basemap/queries/globaladm0_index.sql
index 41e6288b..51f9f59c 100644
--- a/basemap/queries/globaladm0_index.sql
+++ b/basemap/queries/globaladm0_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS globaladm0_index ON globaladm0 USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS globaladm0_z12_index ON globaladm0_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm0_z11_index ON globaladm0_z11 USING SPGIST (geom);
@@ -12,5 +21,3 @@ CREATE INDEX IF NOT EXISTS globaladm0_z3_index ON globaladm0_z3 USING SPGIST (ge
 CREATE INDEX IF NOT EXISTS globaladm0_z2_index ON globaladm0_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm0_z1_index ON globaladm0_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm0_z0_index ON globaladm0_z0 USING SPGIST (geom);
-
-
diff --git a/basemap/queries/globaladm0_simplify.sql b/basemap/queries/globaladm0_simplify.sql
index 37b239fc..c89c1611 100644
--- a/basemap/queries/globaladm0_simplify.sql
+++ b/basemap/queries/globaladm0_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW globaladm0_z20 AS
 SELECT fid, shapegroup, shapetype, geom FROM globaladm0;
 
@@ -60,5 +69,3 @@ SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / pow
 
 CREATE MATERIALIZED VIEW globaladm0_z0 AS
 SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / power(2, 0)) AS geom FROM globaladm0;
-
-
diff --git a/basemap/queries/globaladm1_clean.sql b/basemap/queries/globaladm1_clean.sql
index 2f427c5f..5ebbb887 100644
--- a/basemap/queries/globaladm1_clean.sql
+++ b/basemap/queries/globaladm1_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP VIEW IF EXISTS globaladm1_z20 CASCADE;
 DROP VIEW IF EXISTS globaladm1_z19 CASCADE;
 DROP VIEW IF EXISTS globaladm1_z18 CASCADE;
@@ -19,4 +28,3 @@ DROP MATERIALIZED VIEW IF EXISTS globaladm1_z4 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm1_z3 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm1_z2 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm1_z1 CASCADE;
-
diff --git a/basemap/queries/globaladm1_index.sql b/basemap/queries/globaladm1_index.sql
index 8f56089a..17167d88 100644
--- a/basemap/queries/globaladm1_index.sql
+++ b/basemap/queries/globaladm1_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS globaladm1_index ON globaladm1 USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS globaladm1_z12_index ON globaladm1_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm1_z11_index ON globaladm1_z11 USING SPGIST (geom);
@@ -12,5 +21,3 @@ CREATE INDEX IF NOT EXISTS globaladm1_z3_index ON globaladm1_z3 USING SPGIST (ge
 CREATE INDEX IF NOT EXISTS globaladm1_z2_index ON globaladm1_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm1_z1_index ON globaladm1_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm1_z0_index ON globaladm1_z0 USING SPGIST (geom);
-
-
diff --git a/basemap/queries/globaladm1_simplify.sql b/basemap/queries/globaladm1_simplify.sql
index 0ce52f03..4cf06eb7 100644
--- a/basemap/queries/globaladm1_simplify.sql
+++ b/basemap/queries/globaladm1_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW globaladm1_z20 AS
 SELECT fid, shapegroup, shapetype, geom FROM globaladm1;
 
@@ -60,5 +69,3 @@ SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / pow
 
 CREATE MATERIALIZED VIEW globaladm1_z0 AS
 SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / power(2, 0)) AS geom FROM globaladm1;
-
-
diff --git a/basemap/queries/globaladm2_clean.sql b/basemap/queries/globaladm2_clean.sql
index 96353426..18649678 100644
--- a/basemap/queries/globaladm2_clean.sql
+++ b/basemap/queries/globaladm2_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP VIEW IF EXISTS globaladm2_z20 CASCADE;
 DROP VIEW IF EXISTS globaladm2_z19 CASCADE;
 DROP VIEW IF EXISTS globaladm2_z18 CASCADE;
@@ -19,4 +28,3 @@ DROP MATERIALIZED VIEW IF EXISTS globaladm2_z4 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm2_z3 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm2_z2 CASCADE;
 DROP MATERIALIZED VIEW IF EXISTS globaladm2_z1 CASCADE;
-
diff --git a/basemap/queries/globaladm2_index.sql b/basemap/queries/globaladm2_index.sql
index 7b7f80d5..682623dd 100644
--- a/basemap/queries/globaladm2_index.sql
+++ b/basemap/queries/globaladm2_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS globaladm2_index ON globaladm2 USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS globaladm2_z12_index ON globaladm2_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm2_z11_index ON globaladm2_z11 USING SPGIST (geom);
@@ -12,5 +21,3 @@ CREATE INDEX IF NOT EXISTS globaladm2_z3_index ON globaladm2_z3 USING SPGIST (ge
 CREATE INDEX IF NOT EXISTS globaladm2_z2_index ON globaladm2_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm2_z1_index ON globaladm2_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS globaladm2_z0_index ON globaladm2_z0 USING SPGIST (geom);
-
-
diff --git a/basemap/queries/globaladm2_simplify.sql b/basemap/queries/globaladm2_simplify.sql
index 6657cb5e..3f8b21b5 100644
--- a/basemap/queries/globaladm2_simplify.sql
+++ b/basemap/queries/globaladm2_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW globaladm2_z20 AS
 SELECT fid, shapegroup, shapetype, geom FROM globaladm2;
 
@@ -60,5 +69,3 @@ SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / pow
 
 CREATE MATERIALIZED VIEW globaladm2_z0 AS
 SELECT fid, shapegroup, shapetype, st_simplifypreservetopology(geom, 78270 / power(2, 0)) AS geom FROM globaladm2;
-
-
diff --git a/basemap/queries/initialize.sql b/basemap/queries/initialize.sql
index 576e5426..abd91f1f 100644
--- a/basemap/queries/initialize.sql
+++ b/basemap/queries/initialize.sql
@@ -1 +1,10 @@
+-- Licensed 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 EXTENSION IF NOT EXISTS postgis;
diff --git a/basemap/queries/ne_index.sql b/basemap/queries/ne_index.sql
index 4468b13b..7543959d 100644
--- a/basemap/queries/ne_index.sql
+++ b/basemap/queries/ne_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS ne_10m_admin_0_antarctic_claim_limit_lines_geom_index ON ne_10m_admin_0_antarctic_claim_limit_lines USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS ne_10m_admin_0_antarctic_claims_geom_index ON ne_10m_admin_0_antarctic_claims USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS ne_10m_admin_0_boundary_lines_disputed_areas_geom_index ON ne_10m_admin_0_boundary_lines_disputed_areas USING SPGIST(geom);
diff --git a/basemap/queries/osm_boundary.sql b/basemap/queries/osm_boundary.sql
index 5e5a4b8a..5dfe7d62 100644
--- a/basemap/queries/osm_boundary.sql
+++ b/basemap/queries/osm_boundary.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP MATERIALIZED VIEW IF EXISTS osm_boundary CASCADE;
 
 CREATE MATERIALIZED VIEW osm_boundary AS
@@ -92,4 +101,3 @@ CREATE INDEX IF NOT EXISTS osm_boundary_point_geom_z9_index ON osm_boundary_z9 U
 CREATE INDEX IF NOT EXISTS osm_boundary_point_geom_z10_index ON osm_boundary_z10 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_point_geom_z11_index ON osm_boundary_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_point_geom_z12_index ON osm_boundary_z12 USING SPGIST (geom);
-
diff --git a/basemap/queries/osm_boundary_index.sql b/basemap/queries/osm_boundary_index.sql
index 0db0c497..e4d4b229 100644
--- a/basemap/queries/osm_boundary_index.sql
+++ b/basemap/queries/osm_boundary_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_boundary_geom_z1_index ON osm_boundary_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_geom_z2_index ON osm_boundary_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_geom_z3_index ON osm_boundary_z3 USING SPGIST (geom);
@@ -10,4 +19,3 @@ CREATE INDEX IF NOT EXISTS osm_boundary_geom_z9_index ON osm_boundary_z9 USING S
 CREATE INDEX IF NOT EXISTS osm_boundary_geom_z10_index ON osm_boundary_z10 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_geom_z11_index ON osm_boundary_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_boundary_geom_z12_index ON osm_boundary_z12 USING SPGIST (geom);
-
diff --git a/basemap/queries/osm_boundary_prepare.sql b/basemap/queries/osm_boundary_prepare.sql
index 1f61d905..37ab074d 100644
--- a/basemap/queries/osm_boundary_prepare.sql
+++ b/basemap/queries/osm_boundary_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP MATERIALIZED VIEW IF EXISTS osm_boundary CASCADE;
 
 CREATE MATERIALIZED VIEW osm_boundary AS
diff --git a/basemap/queries/osm_boundary_simplify.sql b/basemap/queries/osm_boundary_simplify.sql
index 8456ffa0..8f114193 100644
--- a/basemap/queries/osm_boundary_simplify.sql
+++ b/basemap/queries/osm_boundary_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_boundary_z20 AS
 SELECT id, tags, geom FROM osm_boundary;
 
diff --git a/basemap/queries/osm_highway_index.sql b/basemap/queries/osm_highway_index.sql
index 49d5eda4..9286d75a 100644
--- a/basemap/queries/osm_highway_index.sql
+++ b/basemap/queries/osm_highway_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_highway_geom_z1_index ON osm_highway_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_highway_geom_z2_index ON osm_highway_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_highway_geom_z3_index ON osm_highway_z3 USING SPGIST (geom);
diff --git a/basemap/queries/osm_highway_prepare.sql b/basemap/queries/osm_highway_prepare.sql
index 6c02b727..508ea5dc 100644
--- a/basemap/queries/osm_highway_prepare.sql
+++ b/basemap/queries/osm_highway_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP MATERIALIZED VIEW IF EXISTS osm_highway CASCADE;
 
 CREATE MATERIALIZED VIEW osm_highway AS
diff --git a/basemap/queries/osm_highway_simplify.sql b/basemap/queries/osm_highway_simplify.sql
index 542906b3..cc01b46f 100644
--- a/basemap/queries/osm_highway_simplify.sql
+++ b/basemap/queries/osm_highway_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_highway_z20 AS
 SELECT id, tags, geom FROM osm_highway;
 
diff --git a/basemap/queries/osm_landuse_index.sql b/basemap/queries/osm_landuse_index.sql
index b49aafb9..27219033 100644
--- a/basemap/queries/osm_landuse_index.sql
+++ b/basemap/queries/osm_landuse_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_landuse_geom_z1_index ON osm_landuse_z1 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_landuse_geom_z2_index ON osm_landuse_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_landuse_geom_z3_index ON osm_landuse_z3 USING SPGIST (geom);
diff --git a/basemap/queries/osm_landuse_prepare.sql b/basemap/queries/osm_landuse_prepare.sql
index 4da3675e..74f6fb7e 100644
--- a/basemap/queries/osm_landuse_prepare.sql
+++ b/basemap/queries/osm_landuse_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP VIEW IF EXISTS osm_landuse CASCADE;
 DROP VIEW IF EXISTS osm_landuse_residential;
 DROP VIEW IF EXISTS osm_landuse_farmland;
@@ -154,4 +163,3 @@ UNION ALL
 SELECT id, tags, geom FROM osm_landuse_water;
 
 CREATE INDEX osm_landuse_grouped_geom_idx ON osm_landuse_grouped USING GIST (geom);
-
diff --git a/basemap/queries/osm_landuse_simplify.sql b/basemap/queries/osm_landuse_simplify.sql
index 1c4debaa..620c0dfa 100644
--- a/basemap/queries/osm_landuse_simplify.sql
+++ b/basemap/queries/osm_landuse_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_landuse_z20 AS
 SELECT id, tags, geom FROM osm_landuse;
 
diff --git a/basemap/queries/osm_linestring.sql b/basemap/queries/osm_linestring.sql
index 5ce38638..230797ab 100644
--- a/basemap/queries/osm_linestring.sql
+++ b/basemap/queries/osm_linestring.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP VIEW IF EXISTS osm_linestring CASCADE;
 
 CREATE VIEW osm_linestring AS
diff --git a/basemap/queries/osm_natural_index.sql b/basemap/queries/osm_natural_index.sql
index 84779b17..ccc1188c 100644
--- a/basemap/queries/osm_natural_index.sql
+++ b/basemap/queries/osm_natural_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_natural_geom_z12_index ON osm_natural_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_natural_geom_z11_index ON osm_natural_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_natural_geom_z10_index ON osm_natural_z10 USING SPGIST (geom);
diff --git a/basemap/queries/osm_natural_prepare.sql b/basemap/queries/osm_natural_prepare.sql
index 3fad2d28..498dab76 100644
--- a/basemap/queries/osm_natural_prepare.sql
+++ b/basemap/queries/osm_natural_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 -- ('grassland', 'heath', 'scrub', 'wood', 'bay', 'beach', 'glacier', 'mud', 'shingle', 'shoal', 'strait', 'water', 'wetland', 'bare_rock', 'sand', 'scree');
 DROP VIEW IF EXISTS osm_natural CASCADE;
 
@@ -299,5 +308,3 @@ UNION ALL
 SELECT id, tags, geom FROM osm_natural_sand
 UNION ALL
 SELECT id, tags, geom FROM osm_natural_scree;
-
-
diff --git a/basemap/queries/osm_natural_simplify.sql b/basemap/queries/osm_natural_simplify.sql
index cf0c1bbc..b9f31b27 100644
--- a/basemap/queries/osm_natural_simplify.sql
+++ b/basemap/queries/osm_natural_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_natural_z20 AS
 SELECT id, tags, geom FROM osm_natural;
 
diff --git a/basemap/queries/osm_nodes_clean.sql b/basemap/queries/osm_nodes_clean.sql
index 6fc26ca3..626b87a3 100644
--- a/basemap/queries/osm_nodes_clean.sql
+++ b/basemap/queries/osm_nodes_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP INDEX IF EXISTS osm_nodes_tags_index;
 DROP INDEX IF EXISTS osm_nodes_geom_index;
 
diff --git a/basemap/queries/osm_nodes_index.sql b/basemap/queries/osm_nodes_index.sql
index 4a9c9fe0..930979bd 100644
--- a/basemap/queries/osm_nodes_index.sql
+++ b/basemap/queries/osm_nodes_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_nodes_geom_z13_index ON osm_nodes_z13 USING gist (geom);
 CREATE INDEX IF NOT EXISTS osm_nodes_geom_z12_index ON osm_nodes_z12 USING gist (geom);
 CREATE INDEX IF NOT EXISTS osm_nodes_geom_z11_index ON osm_nodes_z11 USING gist (geom);
diff --git a/basemap/queries/osm_nodes_prepare.sql b/basemap/queries/osm_nodes_prepare.sql
index e7bd764f..f37b51dd 100644
--- a/basemap/queries/osm_nodes_prepare.sql
+++ b/basemap/queries/osm_nodes_prepare.sql
@@ -1,2 +1,11 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_nodes_tags_index ON osm_nodes USING gin (tags);
 CREATE INDEX IF NOT EXISTS osm_nodes_geom_index ON osm_nodes USING spgist (geom);
diff --git a/basemap/queries/osm_nodes_simplify.sql b/basemap/queries/osm_nodes_simplify.sql
index 1085a068..5784ae8e 100644
--- a/basemap/queries/osm_nodes_simplify.sql
+++ b/basemap/queries/osm_nodes_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_nodes_z20 AS
 SELECT id, tags, geom FROM osm_nodes WHERE tags != '{}';
 
diff --git a/basemap/queries/osm_polygon_index.sql b/basemap/queries/osm_polygon_index.sql
index 99675be1..701aff42 100644
--- a/basemap/queries/osm_polygon_index.sql
+++ b/basemap/queries/osm_polygon_index.sql
@@ -1,3 +1,11 @@
+-- Licensed 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 INDEX osm_polygon_geom_idx ON osm_polygon USING GIST (geom);
 CREATE INDEX osm_polygon_tags_idx ON osm_polygon USING GIN (tags);
-
diff --git a/basemap/queries/osm_polygon_prepare.sql b/basemap/queries/osm_polygon_prepare.sql
index 5da3b1e0..906fa562 100644
--- a/basemap/queries/osm_polygon_prepare.sql
+++ b/basemap/queries/osm_polygon_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP MATERIALIZED VIEW IF EXISTS osm_polygon CASCADE;
 
 CREATE MATERIALIZED VIEW osm_polygon AS
diff --git a/basemap/queries/osm_railway_index.sql b/basemap/queries/osm_railway_index.sql
index 44b86295..b46d4d02 100644
--- a/basemap/queries/osm_railway_index.sql
+++ b/basemap/queries/osm_railway_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_railway_geom_z12_index ON osm_railway_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_railway_geom_z11_index ON osm_railway_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_railway_geom_z10_index ON osm_railway_z10 USING SPGIST (geom);
@@ -10,4 +19,3 @@ CREATE INDEX IF NOT EXISTS osm_railway_geom_z4_index ON osm_railway_z4 USING SPG
 CREATE INDEX IF NOT EXISTS osm_railway_geom_z3_index ON osm_railway_z3 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_railway_geom_z2_index ON osm_railway_z2 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_railway_geom_z1_index ON osm_railway_z1 USING SPGIST (geom);
-
diff --git a/basemap/queries/osm_railway_prepare.sql b/basemap/queries/osm_railway_prepare.sql
index 8325424c..b17a25dc 100644
--- a/basemap/queries/osm_railway_prepare.sql
+++ b/basemap/queries/osm_railway_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP MATERIALIZED VIEW IF EXISTS osm_railway CASCADE;
 
 CREATE MATERIALIZED VIEW osm_railway AS
diff --git a/basemap/queries/osm_railway_simplify.sql b/basemap/queries/osm_railway_simplify.sql
index b35c73ab..f66784df 100644
--- a/basemap/queries/osm_railway_simplify.sql
+++ b/basemap/queries/osm_railway_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_railway_z20 AS
 SELECT id, tags, geom FROM osm_railway;
 
diff --git a/basemap/queries/osm_relations_clean.sql b/basemap/queries/osm_relations_clean.sql
index 395c9271..5fc040bb 100644
--- a/basemap/queries/osm_relations_clean.sql
+++ b/basemap/queries/osm_relations_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP INDEX IF EXISTS osm_relations_tags_index;
 DROP INDEX IF EXISTS osm_relations_geom_index;
 
diff --git a/basemap/queries/osm_relations_index.sql b/basemap/queries/osm_relations_index.sql
index f064381b..39fd8521 100644
--- a/basemap/queries/osm_relations_index.sql
+++ b/basemap/queries/osm_relations_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_relations_geom_z12_index ON osm_relations_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_relations_geom_z11_index ON osm_relations_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_relations_geom_z10_index ON osm_relations_z10 USING SPGIST (geom);
diff --git a/basemap/queries/osm_relations_prepare.sql b/basemap/queries/osm_relations_prepare.sql
index 84f41476..25225087 100644
--- a/basemap/queries/osm_relations_prepare.sql
+++ b/basemap/queries/osm_relations_prepare.sql
@@ -1,2 +1,11 @@
+-- Licensed 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 INDEX osm_relations_tags_index ON osm_relations USING gin (tags);
 CREATE INDEX osm_relations_geom_index ON osm_relations USING spgist (geom);
diff --git a/basemap/queries/osm_relations_simplify.sql b/basemap/queries/osm_relations_simplify.sql
index 1a625c72..2f2507a6 100644
--- a/basemap/queries/osm_relations_simplify.sql
+++ b/basemap/queries/osm_relations_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_relations_z20 AS
 SELECT id, tags, geom FROM osm_relations;
 
diff --git a/basemap/queries/osm_simplified_water_index.sql b/basemap/queries/osm_simplified_water_index.sql
index 480e1f1e..bbf7aa0e 100644
--- a/basemap/queries/osm_simplified_water_index.sql
+++ b/basemap/queries/osm_simplified_water_index.sql
@@ -1 +1,10 @@
+-- Licensed 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 INDEX simplified_water_polygons_geometry_index ON simplified_water_polygons_shp USING SPGIST(geometry);
diff --git a/basemap/queries/osm_water_index.sql b/basemap/queries/osm_water_index.sql
index d07e510a..8e6c537d 100644
--- a/basemap/queries/osm_water_index.sql
+++ b/basemap/queries/osm_water_index.sql
@@ -1 +1,10 @@
+-- Licensed 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 INDEX water_polygons_geometry_index ON water_polygons_shp USING SPGIST(geometry);
diff --git a/basemap/queries/osm_ways_clean.sql b/basemap/queries/osm_ways_clean.sql
index 45c0e95b..3114e365 100644
--- a/basemap/queries/osm_ways_clean.sql
+++ b/basemap/queries/osm_ways_clean.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 DROP INDEX IF EXISTS osm_ways_tags_index;
 DROP INDEX IF EXISTS osm_ways_geom_index;
 
diff --git a/basemap/queries/osm_ways_index.sql b/basemap/queries/osm_ways_index.sql
index 195587cc..96904811 100644
--- a/basemap/queries/osm_ways_index.sql
+++ b/basemap/queries/osm_ways_index.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS osm_ways_z12_index ON osm_ways_z12 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_ways_z11_index ON osm_ways_z11 USING SPGIST (geom);
 CREATE INDEX IF NOT EXISTS osm_ways_z10_index ON osm_ways_z10 USING SPGIST (geom);
diff --git a/basemap/queries/osm_ways_prepare.sql b/basemap/queries/osm_ways_prepare.sql
index b08603f4..21f3408b 100644
--- a/basemap/queries/osm_ways_prepare.sql
+++ b/basemap/queries/osm_ways_prepare.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX osm_ways_geom_index ON osm_ways USING spgist (geom);
 CREATE INDEX osm_ways_tags_index ON osm_ways USING gin (tags);
 
diff --git a/basemap/queries/osm_ways_simplify.sql b/basemap/queries/osm_ways_simplify.sql
index 62a7d4f5..e8c98548 100644
--- a/basemap/queries/osm_ways_simplify.sql
+++ b/basemap/queries/osm_ways_simplify.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 VIEW osm_ways_z20
 AS SELECT id, tags, geom FROM osm_ways;
 
@@ -141,5 +150,3 @@ FROM (
      ) AS osm_ways
 WHERE geom IS NOT NULL
   AND (st_area(st_envelope(geom)) > power((78270 / power(2, 1)), 2));
-
-
diff --git a/basemap/queries/statistics.sql b/basemap/queries/statistics.sql
index df94d6f1..b7c11509 100644
--- a/basemap/queries/statistics.sql
+++ b/basemap/queries/statistics.sql
@@ -1,3 +1,12 @@
+-- Licensed 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.
 SELECT oid::regclass::text  AS objectname
      , relkind   AS objecttype
      , reltuples AS entries
diff --git a/basemap/style.js b/basemap/style.js
index defe59ae..6f76a983 100644
--- a/basemap/style.js
+++ b/basemap/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import config from "./config.js";
 
 import background from "./layers/background/style.js";
diff --git a/basemap/tileset.js b/basemap/tileset.js
index 28ec0130..658a4edc 100644
--- a/basemap/tileset.js
+++ b/basemap/tileset.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import config from "./config.js";
 
 import aerialway from "./layers/aerialway/tileset.js";
diff --git a/basemap/utils/color.js b/basemap/utils/color.js
index 2f65ff5b..4cbfe1c7 100644
--- a/basemap/utils/color.js
+++ b/basemap/utils/color.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export function lighten(color, percent) {
     let {r, g, b, a} = readColor(color);
     return writeColor({
diff --git a/basemap/utils/layer.js b/basemap/utils/layer.js
index 8943a4e7..41e97e09 100644
--- a/basemap/utils/layer.js
+++ b/basemap/utils/layer.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default function layer(layer) {
     return {
         id: layer['id'],
diff --git a/basemap/utils/utils.js b/basemap/utils/utils.js
index 32d2b6d7..9a15c351 100644
--- a/basemap/utils/utils.js
+++ b/basemap/utils/utils.js
@@ -1,4 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export function withSortKeys(directives) {
     return directives
         .map(withFillSortKey)
diff --git a/basemap/workflow.js b/basemap/workflow.js
index 2952732e..c163b2fc 100644
--- a/basemap/workflow.js
+++ b/basemap/workflow.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 import config from "./config.js";
 
 export default {
diff --git a/examples/_geoadmin/tileset.yaml b/examples/_geoadmin/tileset.yaml
index b21d19c8..42942134 100644
--- a/examples/_geoadmin/tileset.yaml
+++ b/examples/_geoadmin/tileset.yaml
@@ -1,3 +1,13 @@
+
+# Licensed 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.
 id: 'contour'
 center:
   lon: 6.5743
diff --git a/examples/contour/README.md b/examples/contour/README.md
index ad4aa084..6d1ed0e4 100644
--- a/examples/contour/README.md
+++ b/examples/contour/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # OpenStreetMap example
 
 This folder contains the required files to create and serve vector tiles from contour lines data. 
diff --git a/examples/contour/indexes.sql b/examples/contour/indexes.sql
index e69de29b..133e5d24 100644
--- a/examples/contour/indexes.sql
+++ b/examples/contour/indexes.sql
@@ -0,0 +1,9 @@
+-- Licensed 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.
\ No newline at end of file
diff --git a/examples/extrusion/README.md b/examples/extrusion/README.md
index ad4aa084..6d1ed0e4 100644
--- a/examples/extrusion/README.md
+++ b/examples/extrusion/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # OpenStreetMap example
 
 This folder contains the required files to create and serve vector tiles from contour lines data. 
diff --git a/examples/extrusion/indexes.sql b/examples/extrusion/indexes.sql
index 6990e7b6..039fb4d2 100644
--- a/examples/extrusion/indexes.sql
+++ b/examples/extrusion/indexes.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX CONCURRENTLY IF NOT EXISTS osm_ways_gin ON osm_ways USING gin (nodes);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_relations_gin ON osm_relations USING gin (member_refs);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_nodes_gix ON osm_nodes USING GIST (geom);
diff --git a/examples/geocoding/README.md b/examples/geocoding/README.md
index 5ee027b4..315d164b 100644
--- a/examples/geocoding/README.md
+++ b/examples/geocoding/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # Geocoding example
 
 This folder contains the required files to create a geocoding web service. 
diff --git a/examples/geocoding/workflow.js b/examples/geocoding/workflow.js
index 972d4a24..c58d6356 100644
--- a/examples/geocoding/workflow.js
+++ b/examples/geocoding/workflow.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 const geonamesUrl = "https://download.geonames.org/export/dump/allCountries.zip";
 
 // Fetch and unzip Geonames
diff --git a/examples/ip-to-location/README.md b/examples/ip-to-location/README.md
index 528d1158..1b021bb2 100644
--- a/examples/ip-to-location/README.md
+++ b/examples/ip-to-location/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # IP to location example
 
 This folder contains the required files to create a web service for geo-localisation by IP address. 
diff --git a/examples/ip-to-location/workflow.js b/examples/ip-to-location/workflow.js
index 2c0acecb..b83cb907 100644
--- a/examples/ip-to-location/workflow.js
+++ b/examples/ip-to-location/workflow.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 const nics = [
     {url: "https://ftp.afrinic.net/pub/dbase/afrinic.db.gz", filename: "afrinic.db"},
     {url: "https://ftp.apnic.net/apnic/whois/apnic.db.as-block.gz", filename: "apnic.db.as-block.db"},
diff --git a/examples/naturalearth/README.md b/examples/naturalearth/README.md
index f189535a..98ee3314 100644
--- a/examples/naturalearth/README.md
+++ b/examples/naturalearth/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # Natural Earth example
 
 This folder contains the required files to create and serve vector tiles from Natural Earth data. 
diff --git a/examples/naturalearth/indexes.sql b/examples/naturalearth/indexes.sql
index 109077c7..5425d2bb 100644
--- a/examples/naturalearth/indexes.sql
+++ b/examples/naturalearth/indexes.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX IF NOT EXISTS ne_10m_admin_0_antarctic_claim_limit_lines_gix ON ne_10m_admin_0_antarctic_claim_limit_lines USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS ne_10m_admin_0_antarctic_claims_gix ON ne_10m_admin_0_antarctic_claims USING SPGIST(geom);
 CREATE INDEX IF NOT EXISTS ne_10m_admin_0_boundary_lines_disputed_areas_gix ON ne_10m_admin_0_boundary_lines_disputed_areas USING SPGIST(geom);
diff --git a/examples/openstreetmap/README.md b/examples/openstreetmap/README.md
index 7e7d6ddb..90e6abe4 100644
--- a/examples/openstreetmap/README.md
+++ b/examples/openstreetmap/README.md
@@ -1,3 +1,14 @@
+<!--
+  Licensed 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.
+  -->
 # OpenStreetMap example
 
 This folder contains the required files to create and serve vector tiles from OpenStreetMap data. 
diff --git a/examples/openstreetmap/indexes.sql b/examples/openstreetmap/indexes.sql
index 6990e7b6..039fb4d2 100644
--- a/examples/openstreetmap/indexes.sql
+++ b/examples/openstreetmap/indexes.sql
@@ -1,3 +1,12 @@
+-- Licensed 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 INDEX CONCURRENTLY IF NOT EXISTS osm_ways_gin ON osm_ways USING gin (nodes);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_relations_gin ON osm_relations USING gin (member_refs);
 CREATE INDEX CONCURRENTLY IF NOT EXISTS osm_nodes_gix ON osm_nodes USING GIST (geom);
diff --git a/examples/openstreetmap/style.js b/examples/openstreetmap/style.js
index 127ae1a1..1cbed4b1 100644
--- a/examples/openstreetmap/style.js
+++ b/examples/openstreetmap/style.js
@@ -1,3 +1,14 @@
+/**
+ Licensed 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.
+ **/
 export default {
   "version" : 8,
   "sources" : {