Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the Input to Province County and Hexagon Data (NT) #52

Open
DannyThorne01 opened this issue Oct 26, 2024 · 0 comments
Open

Split the Input to Province County and Hexagon Data (NT) #52

DannyThorne01 opened this issue Oct 26, 2024 · 0 comments

Comments

@DannyThorne01
Copy link
Collaborator

DannyThorne01 commented Oct 26, 2024

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.
Image

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

@DannyThorne01 DannyThorne01 changed the title Split the Input to Province County and Hexagon Data Split the Input to Province County and Hexagon Data (NT) Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants