Skip to content

Commit

Permalink
enable the second batch of conservation land layers
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Nov 4, 2024
1 parent 1b72f8b commit 534df54
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/conflate/compareFeatures/exceptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function allowSlashInsteadOfOr(nzgb: NZGBFeature, osm: OSMFeature) {
/** @internal */
function normaliseTrivialNameDifferences(name: string) {
return name
.replace(/ Government Purpose/, '')
.replace(/\bMount\b/, 'Mt')
.replace(/\bSaint\b/, 'St')
.replace(/\bSt\./, 'St');
Expand Down
53 changes: 48 additions & 5 deletions src/core/data/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ const _NZGB_NAME_TYPES = {
],
},
'Coast Feature': { tags: { place: 'locality' } },
'Conservation Park': __SKIP, // reconsider after future DOC import
'Conservation Park': {
tags: {
boundary: 'protected_area',
protection_title: 'Conservation Park',
'protection_title:wikidata': 'Q5162994',
protect_class: '2',
},
},
Crater: {
tags: { natural: 'crater' },
acceptTags: [
Expand Down Expand Up @@ -142,7 +149,22 @@ const _NZGB_NAME_TYPES = {
},
},
Glacier: { tags: { natural: 'glacier' }, skipAntarctica: true },
'Government Purpose Reserve': __SKIP, // reconsider after future DOC import
'Government Purpose Reserve': {
tags: {
boundary: 'protected_area',
protection_title: 'Government Purpose Reserve',
'protection_title:wikidata': 'Q112136688',
protect_class: '4',
},
acceptTags: [
{
// a lot of these are actually DOC depots, fire stations, etc.
'not:boundary': 'protected_area',
protection_title: 'Government Purpose Reserve',
'protection_title:wikidata': 'Q112136688',
},
],
},
Guyot: {
tags: {
'seamark:type': 'sea_area',
Expand All @@ -164,7 +186,14 @@ const _NZGB_NAME_TYPES = {
],
},
'Historic Antarctic': __SKIP, // this category is for nonexistant features
'Historic Reserve': __SKIP, // reconsider after future DOC import
'Historic Reserve': {
tags: {
boundary: 'protected_area',
protection_title: 'Historic Reserve',
'protection_title:wikidata': 'Q112161119',
protect_class: '3',
},
},
'Historic Site': { tags: { historic: '*' }, addTags: { historic: 'yes' } },
Hole: {
tags: {
Expand Down Expand Up @@ -215,7 +244,14 @@ const _NZGB_NAME_TYPES = {
},
'Marine Reserve': {
tags: { leisure: 'nature_reserve' },
acceptTags: [{ boundary: 'protected_area' }],
acceptTags: [
{
boundary: 'protected_area',
protection_title: 'Marine Reserve',
'protection_title:wikidata': 'Q1846270',
protect_class: '1a',
},
],
},
Mound: {
tags: {
Expand Down Expand Up @@ -361,7 +397,14 @@ const _NZGB_NAME_TYPES = {
},
},
'Scenic Reserve': __SKIP, // reconsider after future DOC import
'Scientific Reserve': __SKIP, // reconsider after future DOC import
'Scientific Reserve': {
tags: {
boundary: 'protected_area',
protection_title: 'Scientific Reserve',
'protection_title:wikidata': 'Q113561096',
protect_class: '1a',
},
},
Sea: {
tags: { place: 'sea' },
acceptTags: [
Expand Down

0 comments on commit 534df54

Please sign in to comment.