teqo-backup/src/lib/bahiaGeometriesTypes.ts
Francisco Ignácio Fontoura Solla b8547ff292 Deliver B3 Leaflet choropleth maps and register post-simplify follow-ups.
Add BahiaMap surfaces on nuclei list, detail, and geral dashboard with server-side choropleth aggregation, lazy geometry loading (B5 F1), and roadmap plans for A7 F4, B5 F3, and B6 scale debts.
2026-07-19 17:13:27 -03:00

39 lines
1.1 KiB
TypeScript

import type { Feature, MultiPolygon, Polygon } from 'geojson'
import type { GeometryCollection, Topology } from 'topojson-specification'
export type BahiaMunicipalityProperties = {
codarea: string
name: string
}
export type BahiaTerritoryProperties = {
code: string
name: string
}
export type BahiaMunicipalityFeature = Feature<
Polygon | MultiPolygon,
BahiaMunicipalityProperties
>
export type BahiaTerritoryFeature = Feature<Polygon | MultiPolygon, BahiaTerritoryProperties>
export type MunicipalityTopology = Topology<{
municipalities: GeometryCollection<BahiaMunicipalityProperties>
}>
export type TerritoryTopology = Topology<{
territories: GeometryCollection<BahiaTerritoryProperties>
}>
export type MunicipalityGeometryModule = {
topology: MunicipalityTopology
features: readonly BahiaMunicipalityFeature[]
getMunicipalityFeature: (codarea: string) => BahiaMunicipalityFeature | undefined
}
export type TerritoryGeometryModule = {
topology: TerritoryTopology
features: readonly BahiaTerritoryFeature[]
getTerritoryFeature: (code: string) => BahiaTerritoryFeature | undefined
}