continents.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [{
  2. "name": "read_data",
  3. "file_name": "/Users/kirilllebedev/Maps/ne_110m_admin_0_map_units/ne_110m_admin_0_map_units.shp"
  4. },{
  5. "name": "join_data",
  6. "data": {
  7. },
  8. "fields": [{
  9. "name": "region_wb",
  10. "type": 4,
  11. "width": 100
  12. },{
  13. "name": "r_wb_code",
  14. "type": 4,
  15. "width": 4
  16. }],
  17. "on": "region_wb"
  18. },{
  19. "name": "merge",
  20. "fields": [{
  21. "name": "code",
  22. "type": 4,
  23. "width": 2
  24. },{
  25. "name": "name",
  26. "type": 4,
  27. "width": 100
  28. }],
  29. "rules": [{
  30. "fields": {
  31. "name": "Americas",
  32. "code": "AM"
  33. },
  34. "where": "region_wb in {'Latin America & Caribbean', 'North America'}"
  35. },{
  36. "fields": {
  37. "name": "Europe",
  38. "code": "EU"
  39. },
  40. "where": "region_wb == 'Europe & Central Asia'"
  41. },{
  42. "fields": {
  43. "name": "Asia Pacific and MEIA",
  44. "code": "AP"
  45. },
  46. "where": "region_wb == 'East Asia & Pacific'"
  47. },{
  48. "fields": {
  49. "name": "India and Africa",
  50. "code": "IA"
  51. },
  52. "where": "region_wb in {'Middle East & North Africa', 'South Asia', 'Sub-Saharan Africa'}"
  53. }]
  54. },{
  55. "name": "write_data",
  56. "file_name": "/Users/kirilllebedev/Maps/continents/continents.shp"
  57. }]