DOPA+base+layer+2017

=Development of a base layer for DOPA.=

DOPA spreads indicators based on WDPA dataset, “interrogated” (spatially intersected) by other datasets. Base datasets for the above process are: = =
 * 1) Country boundaries
 * 2) Ecoregions boundary

Country boundaries
Sources for this dataset are:
 * 1) GAUL ([]), last version available (revision 2015): global administrative units [[image:a001_gaul.jpg width="800" height="580" caption="GAUL data source"]]
 * 2) EEZ ([]), last version available (V9, 2016):  Exclusive Economic Zone of countries [[image:a003_eez.jpg width="800" height="580" caption="EEZ data source"]]

The two datasets come with different coastline, different attributes structure (with only one common field: ISO3), and small differences within the content (not all changed sovereignty countries are updated). Normalization of these two datasets involved:


 * Intersection: where there is overlap, GAUL wins
 * gap filling: where there is a gap within the two coastline, this is filled and attributed to the containing EEZ [[image:a002_holes.jpg width="632" height="457" caption="gaps (yellow) due to different coastline within GAUL (brown) and EEZ (blue)"]]
 * unification of the attributes structure
 * identification of Disputed, Joint Managed areas, and attribution to multiple ISO3 codes
 * identification of the areas not covered by any of the two dataset as Area Beyond National Jurisdiction (ABNJ)
 * identification of updated information according to ISO 3166-1 standard
 * dissolve to remove non-unique keys, where present
 * geometric simplification (topology aware)
 * JOIN with ancillary information to include additional codes (ISO2 and ISO numeric/UN_M49)
 * JOIN with ancillary information to get country grouping information (UN_M49 as key).

The result is a dataset with updated geometries and structure, which maintains original source codes (ADM0 for GAUL, MRGID for EEZ).

Ecoregions boundaries
Sources for this dataset are:


 * 1) Terrestrial Ecoregions of the World (TEOW; []): biogeographic regionalization of the Earth's terrestrial biodiversity. [[image:B001_teow.jpg width="800" height="580" caption="TEOW"]]
 * 2) Marine Ecoregions and Pelagic Provinces of the World (MEOW/PPOW; [] ): biogeographic classification of the world’s coastal, continental shelf, and surface pelagic waters. This dataset combines two separately published datasets:
 * 3) the “Marine Ecoregions Of the World” (MEOW; 2007) [[image:B002_meow.jpg width="800" height="580" caption="MEOW"]]
 * 4) “Pelagic Provinces Of the World” (PPOW; 2012 [[image:B003_ppow.jpg width="800" height="580" caption="PPOW"]]

The two datasets come with different attributes structure. Normalization of these two datasets involved:
 * Intersection: where there is overlap (MEOW/PPOW comes without coastline), TEOW wins
 * unification of the attributes structure.

Unified BASE Layer
To reduce the number of processing loops to iterate on the WDPA, the two above datasets are merged. The target is to get, with a single processing cycle, information on: Merging of the two datasets involved:
 * country
 * ecoregion
 * land/marine
 * all related to the above, as:
 * number of PAs for country
 * number of marine/terrestrial PAs for Country
 * number of PAs for ecoregion
 * and so on…
 * dissolve of the country/eez on country codes (source information, eez or gaul, is discarded; consequently the land/sea information is dissolved in bigger polygons which contains both the objects). [[image:02_countries.jpg width="800" height="580" caption="GAUL/EEZ dissolved"]]
 * Intersect (UNION) of the geometries and attributes of the result from previous step, and ecoregions. [[image:04_countries_ecoregions.jpg width="800" height="580" caption="Merged country/ecoregion dataset"]]

Each polygon contained in the resulting dataset contains information on ecoregions (teow, meow,ppow original codes), country (iso3/iso2/un_m49), land/sea (given by teow coastline, which is lower resolution than the GAUL one).