Task: Split the big geoJSON file provided and then route the necessary data to the Province, County and Hexagon fields in the database.
Features: Take a look at the geoJSON file in ``. It's a huge file and that's <1% of the data we need to store . For now we'll focus on processing this file to extract information about each Province and County and Hexagon. A quick breakdown of the geoJSON file.
The different keys are:
grid_id: Unique identifier for each hexagon (necessary for ticket)
geometry: Global Positioning Coordinates for each hexagon (necessary for ticket)
grid_area: how big is a hexagon. Notice each hexagon has the same uniform size. (necessary for ticket)
aid: The Province that the hexagon is associated with
sid: The County that the hexagon is associated with
asid: Combination of ProvinceID and CountyID
soum_utm_crs: I have no idea as yet.
attribute_1: No clue
area_km2: How big is the area that a hexagon represents in real life.
livestock: number of livestock in these hexagon region
herders: number of herders in this hexagon region
Each Feature in the features list is a hexagon that with it's own data. Additionally, each hexagon is associated with a County/Soum and each County is associated with a Province. So we can gather information about a County by aggregating the data of the hexagons in that County, furthermore we can gather information about a Province by gathering information about all the Counties in that Province. Your job will be to use the given geoJson file and populate the MongoDB.
Estimated Time: This will probably take about 2 hours including testing time. It's preferred to do them in stages and then test at each stage.
Working Directory:
-backend/src/controller - make a controller for hexagons, province and soum
-backend/src/models - make a schema for hexagons, province and soum
-backend/src/routes.ts
-backend/src/server.ts
Task: Split the big geoJSON file provided and then route the necessary data to the Province, County and Hexagon fields in the database.
Features: Take a look at the geoJSON file in ``. It's a huge file and that's <1% of the data we need to store . For now we'll focus on processing this file to extract information about each Province and County and Hexagon. A quick breakdown of the geoJSON file.
Each
Feature
in the features list is a hexagon that with it's own data. Additionally, each hexagon is associated with aCounty/Soum
and eachCounty
is associated with aProvince
. So we can gather information about a County by aggregating the data of the hexagons in that County, furthermore we can gather information about a Province by gathering information about all the Counties in that Province. Your job will be to use the given geoJson file and populate the MongoDB.Estimated Time: This will probably take about 2 hours including testing time. It's preferred to do them in stages and then test at each stage.
Working Directory: -backend/src/controller - make a controller for hexagons, province and soum -backend/src/models - make a schema for hexagons, province and soum -backend/src/routes.ts -backend/src/server.ts