CYMHSAS_33

Access geospatial data from MCYS

The Ministry of Children and Youth Services (MCYS) has defined two administrative views of Ontario’s geography:

  • Integrated Service Regions
  • Children and Youth Mental Health Service Areas

Children and Youth Mental Health (CYMH) Service Areas

The Ministry of Children and Youth Services (MCYS) funds a variety of planned, multidisciplinary interventions for children, youth and their families in thirty-three Service Areas across Ontario. 1 Let’s download the shapefile that contains the geospatial data used by the provincial government to map these Service Areas and rename the shapefiles “CYMH-Service-Areas.*”.

Generate GeoJSON files

We use ogr2ogr to convert the shapefiles to GeoJSON files:


ogr2ogr -t_srs EPSG:4269 -f GeoJSON cymhsas_geo.json CYMH-Service-Areas.shp

We use Notepad++ to give more meaningful names to the variables in cymhsas_geo.json in all lowercase letters:

cymhsas_geo.json
Original variable Modified variable
ServiceAre area_index
ServiceA00 area_name

Next: We convert the geojson file into a more compact topojson file:

topojson -o cymhsas_topo.json --id-property area_index  --properties -- cymhsas_geo.json

xx