feat(parcel-sync): store UAT geometries from LIMITE_UAT in local DB
- Add geometry (Json), areaValue (Float), lastUpdatedDtm (String) to GisUat model for local caching of UAT boundaries - County refresh now fetches LIMITE_UAT with returnGeometry=true and stores EsriGeometry rings per UAT in EPSG:3844 - Uses LAST_UPDATED_DTM from eTerra for future incremental sync - Skips geometry fetch if >50% already have geometry stored Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -73,11 +73,14 @@ model GisSyncRun {
|
||||
}
|
||||
|
||||
model GisUat {
|
||||
siruta String @id
|
||||
name String
|
||||
county String?
|
||||
workspacePk Int?
|
||||
updatedAt DateTime @updatedAt
|
||||
siruta String @id
|
||||
name String
|
||||
county String?
|
||||
workspacePk Int?
|
||||
geometry Json? /// EsriGeometry { rings: number[][][] } in EPSG:3844
|
||||
areaValue Float? /// Area in sqm from LIMITE_UAT AREA_VALUE field
|
||||
lastUpdatedDtm String? /// LAST_UPDATED_DTM from eTerra — for incremental sync
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([name])
|
||||
@@index([county])
|
||||
|
||||
Reference in New Issue
Block a user