skfarhad / hazard_reporting_system

BSD 3-Clause "New" or "Revised" License
15 stars 17 forks source link

Add Geo Models for Division, District, and Thana #31

Closed TasfiqulGhani closed 2 weeks ago

TasfiqulGhani commented 3 weeks ago

Summary

This PR introduces three new models to the project: Division, District, and Thana. These models are designed to represent geographical divisions with associated polygon data.

Changes:

Admin Panel Enhancements:

Additional Notes:

dg1223 commented 1 week ago

@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py.

I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless.

If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know.

Here are the official admin levels from the latest available shapefiles.

adm = Administration Regions

skfarhad commented 1 week ago

@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py.

I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless.

If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know.

Here are the official admin levels from the latest available shapefiles.

adm = Administration Regions

  • adm0 = Entire Bangladesh
  • adm1 = 8 Divisions
  • adm2 = 64 Districts/Zilas
  • adm3 = 544 Upazilas
  • adm4 = 5160 Thanas/Unions

@dg1223 you may add a new column Upazila. And, is Union goin to be one level higher than corresponding Thana? Or they are in the same admin level?

dg1223 commented 1 week ago

@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py. I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless. If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know. Here are the official admin levels from the latest available shapefiles. adm = Administration Regions

  • adm0 = Entire Bangladesh
  • adm1 = 8 Divisions
  • adm2 = 64 Districts/Zilas
  • adm3 = 544 Upazilas
  • adm4 = 5160 Thanas/Unions

@dg1223 you may add a new column Upazila. And, is Union goin to be one level higher than corresponding Thana? Or they are in the same admin level?

@skfarhad Union and Thana are at the same level.