Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BEGIN; SELECT system.load_table('countries', '{data_folder}/common/nature_areas/25/nature.countries_20150721.txt', FALSE); COMMIT;
BEGIN; SELECT system.load_table('authorities', '{data_folder}/common/nature_areas/25/nature.authorities_20221115.txt'); COMMIT;

BEGIN; SELECT system.load_table('natura2000_areas', '{data_folder}/common/nature_areas/26/nature.natura2000_areas_20260511.txt', TRUE); COMMIT;
BEGIN; SELECT system.load_table('natura2000_area_properties', '{data_folder}/common/nature_areas/26/nature.natura2000_area_properties_20260511.txt', TRUE); COMMIT;

BEGIN; SELECT system.load_table('natura2000_directives', '{data_folder}/common/nature_areas/25/nature.natura2000_directives_20220328.txt'); COMMIT;

@JacobusXIII JacobusXIII Jun 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be updated. From what I know, a natura2000 areas is the sum of all directive areas.

BEGIN; SELECT system.load_table('natura2000_directive_areas', '{data_folder}/common/nature_areas/26/nature.natura2000_directive_areas_20260511.txt', TRUE); COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BEGIN; SELECT system.load_table('natura2000_areas', '{data_folder}/common/nature_areas/26/nature.natura2000_areas_abroad_20260414.txt', TRUE); COMMIT;
BEGIN; SELECT system.load_table('natura2000_area_properties', '{data_folder}/common/nature_areas/26/nature.natura2000_area_properties_abroad_20260414.txt', TRUE); COMMIT;

BEGIN; SELECT system.load_table('natura2000_directive_areas', '{data_folder}/common/nature_areas/26/nature.natura2000_directive_areas_abroad_20260414.txt', TRUE); COMMIT;

@JacobusXIII JacobusXIII Jun 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same goes for the abroad directive areas.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{import_common 'database-modules/nature_habitats_and_species/supplied_26.sql'}

-- Generated data
BEGIN; SELECT system.load_table('relevant_habitat_areas', '{data_folder}/common/nature_habitats_and_species/25/nature.relevant_habitat_areas_20250719.txt'); COMMIT;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be updated too. This is a look-up table that takes too much time to determined during the database build.


{import_common 'database-modules/nature_habitats_and_species/refresh_materialized_views.sql'}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BEGIN; SELECT system.load_table('habitat_types', '{data_folder}/common/nature_habitats_and_species/25/nature.habitat_types_20230619.txt'); COMMIT;
BEGIN; SELECT system.load_table('habitat_type_critical_levels', '{data_folder}/common/nature_habitats_and_species/25/nature.habitat_type_critical_levels_20231120.txt'); COMMIT;
BEGIN; SELECT system.load_table('habitat_properties', '{data_folder}/common/nature_habitats_and_species/26/nature.habitat_properties_20260430.txt', TRUE); COMMIT;
BEGIN; SELECT system.load_table('habitat_type_relations', '{data_folder}/common/nature_habitats_and_species/25/nature.habitat_type_relations_20230619.txt'); COMMIT;

BEGIN; SELECT system.load_table('habitat_areas', '{data_folder}/common/nature_habitats_and_species/26/nature.habitat_areas_20260514.txt', TRUE); COMMIT;

BEGIN; SELECT system.load_table('species', '{data_folder}/common/nature_habitats_and_species/26/nature.species_20260430.txt', TRUE); COMMIT;
BEGIN; SELECT system.load_table('species_properties', '{data_folder}/common/nature_habitats_and_species/26/nature.species_properties_20260430.txt', TRUE); COMMIT;
BEGIN; SELECT system.load_table('designated_species', '{data_folder}/common/nature_habitats_and_species/26/nature.designated_species_20260430.txt', TRUE); COMMIT;

BEGIN; SELECT system.load_table('species_to_habitats', '{data_folder}/common/nature_habitats_and_species/26/nature.species_to_habitats_20260512.txt', TRUE); COMMIT;