feat: 采样点排序范围改为 10 到 70

This commit is contained in:
nixevol
2026-10-16 09:42:05 +08:00
parent ac7868960c
commit 5ef514bdbc
4 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -15,9 +15,9 @@ from .raster_math import to_float
TABLE = "采样点图层"
GEOM = "geom"
SRS_ID = 4326
FIELDS = ("电联采样点", "广电采样点", "移动采样点", "总采样点数", "透明度")
OPACITY_MIN = 5.0
OPACITY_MAX = 65.0
FIELDS = ("电联采样点", "广电采样点", "移动采样点", "总采样点数", "rank")
OPACITY_MIN = 10.0
OPACITY_MAX = 70.0
STYLES = Path(__file__).with_name("styles")
WGS84 = (
'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,'
@@ -52,7 +52,7 @@ def export_sample_grid(grid_5g_conn, grid_5g_layer, grid_5g_rtree, grid_4g_conn,
def opacity_by_total(totals):
"""总采样点数的名次映射到 5–65。越多越高,最多为 65;相同数量同一档。"""
"""总采样点数的名次映射到 10–70。越多越高,最多为 70;相同数量同一档。"""
levels = sorted(set(totals))
if not levels:
return {}
+1 -1
View File
@@ -9,7 +9,7 @@
<Option name="properties" type="Map">
<Option name="alpha" type="Map">
<Option name="active" type="bool" value="true"/>
<Option name="expression" type="QString" value="&quot;透明度&quot;"/>
<Option name="expression" type="QString" value="&quot;rank&quot;"/>
<Option name="type" type="int" value="3"/>
</Option>
</Option>