perf: simplify WFIGS perimeter geometry at query time
Ask ArcGIS for 500 features, 5-decimal precision, and ~250m offset so fire rings are outlines instead of tens of thousands of vertices.
This commit is contained in:
parent
fdd59052c5
commit
9c14b899ee
2 changed files with 15 additions and 2 deletions
|
|
@ -351,3 +351,14 @@ def test_slim_alert_properties_keeps_popup_fields_only():
|
|||
"wfo": "RAH",
|
||||
"source": "nws",
|
||||
}
|
||||
|
||||
|
||||
def test_wfigs_params_requests_simplified_geometry():
|
||||
params = _wfigs_params("-84.5,33.8,-75.4,36.6")
|
||||
assert "maxAllowableOffset" in params
|
||||
assert float(params["maxAllowableOffset"]) > 0
|
||||
assert params["geometryPrecision"] == 5
|
||||
assert int(params["resultRecordCount"]) <= 500
|
||||
# Envelope is the quantized cell, not the raw pan box.
|
||||
geom = params["geometry"]
|
||||
assert geom != "-84.5,33.8,-75.4,36.6"
|
||||
|
|
|
|||
Loading…
Reference in a new issue