Skip to content

Commit

Permalink
Update HDX tags for default set
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 4, 2024
1 parent a65b827 commit 0c0f7d4
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions API/hdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,16 @@ async def process_custom_requests(
"summary": "Full HDX Dataset default",
"description": "Full yaml conversion for dataset with iso3 example",
"value": {
"iso3": "NPL",
"iso3": "MLI",
"hdx_upload": True,
"meta": True,
"categories": [
{
"Buildings": {
"hdx": {
"tags": [
"facilities-infrastructure",
"buildings",
"geodata",
],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
Expand All @@ -245,13 +248,13 @@ async def process_custom_requests(
"source",
],
"where": "tags['building'] IS NOT NULL",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Roads": {
"hdx": {
"tags": ["transportation", "geodata"],
"tags": ["transportation", "roads", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["lines"],
Expand All @@ -268,13 +271,13 @@ async def process_custom_requests(
"source",
],
"where": "tags['highway'] IS NOT NULL",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Waterways": {
"hdx": {
"tags": ["hydrology", "geodata"],
"tags": ["hydrology", "rivers", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["lines", "polygons"],
Expand All @@ -292,7 +295,7 @@ async def process_custom_requests(
"source",
],
"where": "tags['waterway'] IS NOT NULL OR tags['water'] IS NOT NULL OR tags['natural'] IN ('water','wetland','bay')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
Expand Down Expand Up @@ -322,7 +325,7 @@ async def process_custom_requests(
"source",
],
"where": "tags['amenity'] IS NOT NULL OR tags['man_made'] IS NOT NULL OR tags['shop'] IS NOT NULL OR tags['tourism'] IS NOT NULL",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
Expand All @@ -349,16 +352,13 @@ async def process_custom_requests(
"source",
],
"where": "tags['aeroway'] IS NOT NULL OR tags['building'] = 'aerodrome' OR tags['emergency:helipad'] IS NOT NULL OR tags['emergency'] = 'landing_site'",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Sea Ports": {
"hdx": {
"tags": [
"facilities-infrastructure",
"geodata",
],
"tags": ["facilities-infrastructure", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["points", "lines", "polygons"],
Expand All @@ -373,16 +373,13 @@ async def process_custom_requests(
"source",
],
"where": "tags['amenity'] = 'ferry_terminal' OR tags['building'] = 'ferry_terminal' OR tags['port'] IS NOT NULL",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Education Facilities": {
"hdx": {
"tags": [
"education facilities-schools",
"geodata",
],
"tags": ["education facilities-schools", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["points", "polygons"],
Expand All @@ -397,13 +394,13 @@ async def process_custom_requests(
"source",
],
"where": "tags['amenity'] IN ('kindergarten', 'school', 'college', 'university') OR building IN ('kindergarten', 'school', 'college', 'university')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Health Facilities": {
"hdx": {
"tags": ["geodata"],
"tags": ["geodata", "health facilities", "health"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["points", "polygons"],
Expand All @@ -420,14 +417,15 @@ async def process_custom_requests(
"source",
],
"where": "tags['healthcare'] IS NOT NULL OR tags['amenity'] IN ('doctors', 'dentist', 'clinic', 'hospital', 'pharmacy')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Populated Places": {
"hdx": {
"tags": [
"populated places-settlements",
"villages",
"geodata",
],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
Expand All @@ -441,13 +439,18 @@ async def process_custom_requests(
"source",
],
"where": "tags['place'] IN ('isolated_dwelling', 'town', 'village', 'hamlet', 'city')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
"Financial Services": {
"hdx": {
"tags": ["economics", "geodata"],
"tags": [
"economics",
"financial institutions",
"financial services",
"geodata",
],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["points", "polygons"],
Expand All @@ -461,7 +464,7 @@ async def process_custom_requests(
"source",
],
"where": "tags['amenity'] IN ('mobile_money_agent','bureau_de_change','bank','microfinance','atm','sacco','money_transfer','post_office')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
{
Expand All @@ -487,7 +490,7 @@ async def process_custom_requests(
"source",
],
"where": "tags['railway'] IN ('rail','station')",
"formats": ["geojson"],
"formats": ["geojson", "shp", "kml"],
}
},
],
Expand Down Expand Up @@ -528,7 +531,7 @@ async def process_custom_requests(
{
"Roads": {
"hdx": {
"tags": ["transportation", "geodata"],
"tags": ["transportation", "roads", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["lines"],
Expand All @@ -551,7 +554,7 @@ async def process_custom_requests(
{
"Waterways": {
"hdx": {
"tags": ["hydrology", "geodata"],
"tags": ["hydrology", "rivers", "geodata"],
"caveats": "OpenStreetMap data is crowd sourced and cannot be considered to be exhaustive",
},
"types": ["lines", "polygons"],
Expand Down

0 comments on commit 0c0f7d4

Please sign in to comment.