fix: re-georeference flood zones and make them clearly visible
CI/CD Pipeline - Northern Thailand Ping River Monitor / Test Suite (3.11) (push) Failing after 24s
CI/CD Pipeline - Northern Thailand Ping River Monitor / Build Docker Image (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Integration Test with Services (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Deploy to Staging (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Deploy to Production (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Performance Test (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Code Quality (push) Successful in 15s
CI/CD Pipeline - Northern Thailand Ping River Monitor / Cleanup (push) Successful in 1s
CI/CD Pipeline - Northern Thailand Ping River Monitor / Test Suite (3.11) (push) Failing after 24s
CI/CD Pipeline - Northern Thailand Ping River Monitor / Build Docker Image (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Integration Test with Services (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Deploy to Staging (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Deploy to Production (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Performance Test (push) Skipped
CI/CD Pipeline - Northern Thailand Ping River Monitor / Code Quality (push) Successful in 15s
CI/CD Pipeline - Northern Thailand Ping River Monitor / Cleanup (push) Successful in 1s
The previous affine fit slid along the mostly north-south river (an ill-conditioned direction) leaving the zones ~1 km south-west of their true position. New approach: extract the scanned river band by color, match it to the OSM Ping mainstem centerline by arc length (which pins the along-river position), then correct residual translation using known district locations cross-checked against the river residual (533 m -> ~300 m median; Chang Khlan zone centroid now within 200 m). Mountain-area artifacts are clipped away via the municipality hull. Zones were also nearly invisible at fillOpacity 0.16 - base opacity is now 0.38, rising with the live 24 h exceedance probability, and 0.72 with a solid red border once the river is at or above a zone's level.
This commit is contained in:
1 parent
f05289e628
commit
c4e0fb6bae
2 files changed
+3
-3
No files matched your search
@@ -624,10 +624,10 @@
|
||||
const flooded = state.p1Now != null && state.p1Now >= level;
|
||||
return {
|
||||
color: flooded ? '#7a1512' : '#8a5a2b',
|
||||
weight: flooded ? 2.5 : 1,
|
||||
weight: flooded ? 2.5 : 1.2,
|
||||
dashArray: flooded ? null : '4 4',
|
||||
fillColor: ZONE_COLORS[zone] || '#f9e3a1',
|
||||
fillOpacity: flooded ? .55 : .16 + .38 * Math.min(1, p),
|
||||
fillOpacity: flooded ? .72 : .38 + .3 * Math.min(1, p),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"type": "FeatureCollection", "source": "Digitized from the Chiang Mai municipal inundation map (flood extents of 2548/2554/2565 BE), georeferenced by least-squares fit to the OSM Ping centerline (~150-200 m accuracy)", "features": [{"type": "Feature", "properties": {"zone": 1, "level": 3.7}, "geometry": {"type": "Polygon", "coordinates": [[[98.98929538642234, 18.75826047362413], [98.98929290303863, 18.758974837838622], [98.99206971032511, 18.760760826878315], [98.99265438969589, 18.76192168533337], [98.99559020346827, 18.764154156536165], [98.99898426558495, 18.767993960305482], [98.99962277491225, 18.769065524743407], [98.99957778253433, 18.771744389541297], [99.0001649452888, 18.772190883781857], [99.00116010577094, 18.768172612752842], [99.00073443288606, 18.767458236460893], [99.00145051005072, 18.766743892375494], [99.00170585548737, 18.76513657993807], [99.00132269159673, 18.76245770306272], [98.99995430075874, 18.76093964035842], [98.99973898093262, 18.76129681642694], [98.99813649915508, 18.76040381586836], [98.99756314074662, 18.761118163979578], [98.99496411105946, 18.75951077102578], [98.99332408705511, 18.759153542621622], [98.99285838855971, 18.75968930269858], [98.99125590678219, 18.758796302140006], [98.99093292704298, 18.75933206624278], [98.98929538642234, 18.75826047362413]]]}}, {"type": "Feature", "properties": {"zone": 2, "level": 3.9}, "geometry": {"type": "Polygon", "coordinates": [[[98.99852988805186, 18.77040492694871], [98.99786515746004, 18.771744341231475], [98.9984310657174, 18.773173085763734], [98.99802803475716, 18.776209122604325], [98.9987391451544, 18.776923506947913], [98.99830850550214, 18.777637859084948], [98.99905219135881, 18.779245199703105], [98.99876427046273, 18.779959555865958], [99.00015143241411, 18.781209732493053], [98.99953556501143, 18.78388858118767], [99.0008802179686, 18.787103258398165], [99.00147125153428, 18.791568051848472], [99.00454233391176, 18.795943619720564], [99.00561644965875, 18.794872103592468], [99.00675819970827, 18.794872135799015], [99.00775474761791, 18.79558652819424], [99.00854094246881, 18.795229368228995], [99.00916316406641, 18.795854454529632], [99.00857103454453, 18.796836688718056], [99.00793004183352, 18.796479488494626], [99.00600209693309, 18.796836616253323], [99.00532604537895, 18.796300823969815], [99.00512701328253, 18.797104478175616], [99.00750575637616, 18.80049777562692], [99.00946379335231, 18.801747968357287], [99.00986821174007, 18.803444594940935], [99.00999960953395, 18.801569392400484], [99.0092884991367, 18.800855008056896], [99.00966530883244, 18.80022994993699], [99.01016358278726, 18.800587146134603], [99.01043521595363, 18.799426311834463], [99.00969153009694, 18.797818971216305], [99.0100683397927, 18.7971939130964], [99.01056661374751, 18.79755110929401], [99.01121008984222, 18.797193945302947], [99.01187482043404, 18.795854531020186], [99.0112111857984, 18.791746917664216], [99.0099717093706, 18.789068016633955], [99.00881615497507, 18.78790714207563], [99.0079247835948, 18.78772852586064], [99.00500774093582, 18.785228168580634], [99.00447192475418, 18.785406744537436], [99.00313859275933, 18.784067273893214], [99.00129318246366, 18.7812097646996], [99.00109027955601, 18.777995119695657], [99.00011250275979, 18.77701284122323], [98.99957420319444, 18.777905781394523], [98.99895198159685, 18.777280695093886], [98.99954411111872, 18.776298460905462], [99.00022016267286, 18.77683425318897], [99.00056191352547, 18.776030603008984], [98.99907205842841, 18.773530285987164], [98.99852988805186, 18.77040492694871]]]}}, {"type": "Feature", "properties": {"zone": 3, "level": 4.0}, "geometry": {"type": "Polygon", "coordinates": [[[99.00409591954332, 18.770405083955637], [99.00311317597969, 18.770851533912193], [99.0032884701953, 18.771744494212584], [99.00256990964695, 18.773173202512474], [99.0034212554167, 18.774601955096372], [99.00341628864929, 18.776030683525356], [99.00455307193143, 18.77745944416089], [99.00423009219222, 18.77799520826367], [99.00526169894498, 18.77888819271897], [99.00472339937964, 18.779781132890264], [99.00500635350832, 18.780495505156395], [99.00864831091056, 18.784871089131762], [99.01359350823192, 18.78897882326229], [99.01379254032835, 18.788175169056487], [99.0115189737641, 18.78531764778542], [99.01042469947619, 18.781924386566487], [99.00840151158118, 18.778888281286978], [99.00822870074927, 18.777280956772096], [99.00751759035201, 18.77656657242851], [99.0078055112481, 18.775852216265655], [99.00709440085085, 18.77513783192207], [99.00738232174693, 18.774423475759214], [99.00603021863866, 18.7733518911922], [99.00560951252119, 18.771208786471266], [99.00409591954332, 18.770405083955637]]]}}, {"type": "Feature", "properties": {"zone": 4, "level": 4.1}, "geometry": {"type": "Polygon", "coordinates": [[[99.02229190220848, 18.791122161480704], [99.02132296299087, 18.79272945378904], [99.02057927713419, 18.791122113170882], [99.01911454734545, 18.79165784506711], [99.01843849579133Line truncated
|
||||
{"type": "FeatureCollection", "source": "Digitized from the Chiang Mai municipal inundation map; georeferenced by arc-length river matching plus landmark correction (positions approximate to a few hundred metres)", "features": [{"type": "Feature", "properties": {"zone": 1, "level": 3.7}, "geometry": {"type": "Polygon", "coordinates": [[[98.98774962450227, 18.74969821976622], [98.98910645308516, 18.750289004501216], [98.9897848673766, 18.750978253358713], [98.9895910347219, 18.75156903809371], [98.99182011025094, 18.753636784666195], [98.99298310617912, 18.754030641156195], [98.99656901029105, 18.75826459842367], [98.99715050825515, 18.75944616789366], [98.99637517763635, 18.760824665608652], [98.99637517763635, 18.762400091568644], [98.99705359192781, 18.76289241218114], [98.99831350418334, 18.760824665608652], [98.99850733683805, 18.75944616789366], [98.99947650011154, 18.75846152666867], [98.99908883480214, 18.757673813688672], [99.00025183073033, 18.756886100708677], [99.00102716134913, 18.75511374650369], [99.00122099400383, 18.752159822828705], [98.99976724909358, 18.750485932746216], [98.99937958378419, 18.750879789236212], [98.9974412572372, 18.74989514801122], [98.9964720939637, 18.750682860991216], [98.99259544086974, 18.748713578541228], [98.99123861228684, 18.748516650296228], [98.99046328166804, 18.749107435031224], [98.98984641137208, 18.748677641298112], [98.98774962450227, 18.74969821976622]]]}}, {"type": "Feature", "properties": {"zone": 2, "level": 3.9}, "geometry": {"type": "Polygon", "coordinates": [[[98.99511526538082, 18.760923129731154], [98.99404918577997, 18.762400091568644], [98.99443685108938, 18.763975517528635], [98.99308002250648, 18.767323297693615], [98.99385535312527, 18.768111010673607], [98.99308002250648, 18.768898723653603], [98.99366152047058, 18.770671077858594], [98.99308002250648, 18.77145879083859], [98.99463068374406, 18.772837288553582], [98.99308002250648, 18.77579121222856], [98.99346768781588, 18.778745135903545], [98.99404918577997, 18.77933592063854], [98.99366152047058, 18.784259126763512], [98.99521218170817, 18.78760690692849], [98.9966659266184, 18.78908386876598], [98.9984104205107, 18.78790229929599], [98.99996108174828, 18.78790229929599], [99.00112407767648, 18.788690012275985], [99.00228707360466, 18.788296155785986], [99.0029654878961, 18.788985404643483], [99.00189940829527, 18.790068509990977], [99.00112407767648, 18.789674653500978], [98.9984104205107, 18.790068509990977], [98.9976350898919, 18.78947772525598], [98.99715050825515, 18.790363902358475], [98.99734434090985, 18.791348543583467], [98.99947650011154, 18.79410553901345], [99.00180249196792, 18.795484036728443], [99.00141482665852, 18.796862534443434], [99.00189940829527, 18.797354855055932], [99.00257782258672, 18.795287108483446], [99.00180249196792, 18.79449939550345], [99.00248090625936, 18.793810146645953], [99.00306240422346, 18.794204003135953], [99.00374081851491, 18.79292396954346], [99.00315932055081, 18.79115161533847], [99.00383773484225, 18.790462366480973], [99.00441923280636, 18.790856222970973], [99.00538839607985, 18.790462366480973], [99.00664830833539, 18.788985404643483], [99.00684214099009, 18.78445605500851], [99.00587297771659, 18.78150213133353], [99.00015491440298, 18.777268174066055], [98.99937958378419, 18.77746510231105], [98.99792583887394, 18.77598814047356], [98.99753817356455, 18.77441271451357], [98.99618134498166, 18.772837288553582], [98.99676284294576, 18.77145879083859], [98.99676284294576, 18.769292580143603], [98.99569676334491, 18.76820947479611], [98.99472760007141, 18.7691941160211], [98.99404918577997, 18.768504867163607], [98.99511526538082, 18.767421761816113], [98.99589059599961, 18.76801254655111], [98.99656901029105, 18.767126369448615], [98.99521218170817, 18.76436937401863], [98.99559984701756, 18.761218522098652], [98.99511526538082, 18.760923129731154]]]}}, {"type": "Feature", "properties": {"zone": 3, "level": 4.0}, "geometry": {"type": "Polygon", "coordinates": [[[99.00267473891407, 18.760923129731154], [99.00141482665852, 18.761415450343648], [99.00141482665852, 18.762400091568644], [99.00005799807563, 18.763975517528635], [99.00083332869443, 18.765550943488623], [99.00044566338502, 18.767126369448615], [99.00160865931322, 18.768701795408607], [99.00102716134913, 18.769292580143603], [99.00219015727731, 18.770277221368595], [99.00122099400383, 18.77126186259359], [99.00141482665852, 18.772049575573586], [99.00519456342515, 18.776874317576056], [99.0108157104114, 18.781403667211027], [99.01130029204816, 18.780517490108533], [99.00897430019177, 18.777366638188553], [99.00916813284647, 18.77618506871856], [99.00858663488238, 18.775594283983562], [99.00839280222768, 18.773625001533574], [99.00703597364479, 18.772246503818582], [99.00742363895418, 18.771655719083586], [99.00645447568068, 18.770277221368595], [99.00664830833539, 18.768504867163607], [99.00587297771659, 18.76771715418361], [99.00645447568068, 18.766929441203615], [99.005679Line truncated
|
||||
Reference in new issue
Block a user