christopheprudent / pow

initialize a db with hierarchized territories and addresses (for each country, beginning w/ FR)
0 stars 0 forks source link

define management of territory, as BCAA (to be continue...) #17

Closed christopheprudent closed 1 year ago

christopheprudent commented 1 year ago

territory inventorires all cuttings (administrative, postal) for a country, with theirs relations (country, ID, parent ID) can define a territory with (level, code and others)-properties

the built-in procedure has to follow an UP-DOWN way first, create the country, and next go down through the hierarchy (level by level) for France, the lowest level is equivalent to a postal zone, combining zipcode and municipality (well-known as ZA, ie 'Zone Adresse')

the geometry are supplied by IGN for administrative cuttings we have to calculate the postal side, beginning by ZA, and next benefitting of PostGIS union operation for supra cuttings

BUT id_territory has to be invariant, due to attachment of addresses : changes must be done by updates, especially the lowest level (ZA)

this ticket is too ambitious from scratch!

christopheprudent commented 1 year ago

merge the work into main branch, and restart analyze