feat: 渠道图层沿用已保存的 QGIS 样式

This commit is contained in:
2026-11-13 15:13:22 +08:00
parent 41ddf7df4f
commit adffcecdb9
4 changed files with 533 additions and 1 deletions
+39
View File
@@ -15,6 +15,7 @@ import numpy as np
ROOT = Path(__file__).resolve().parents[1]
TOOL = "AoiChannel"
STYLE_DIR = Path(__file__).resolve().parent / "styles"
AOI_FIELDS = ["AOI唯一标签", "AOI名称", "空间信息(几何)"]
CHANNEL_LAYER_FIELDS = [
"渠道编码", "渠道类型", "全网渠道编码", "渠道名称", "星级",
@@ -308,6 +309,44 @@ def write_gpkg(layer, path, name):
found = connection.execute("SELECT 1 FROM sqlite_master WHERE name LIKE 'rtree_%' LIMIT 1").fetchone()
if found is None:
raise RuntimeError(f"{path.name} 没有空间索引")
if (STYLE_DIR / f"{name}.qml").is_file():
apply_layer_style(path, name)
def apply_layer_style(path, table_name):
qml = (STYLE_DIR / f"{table_name}.qml").read_text(encoding="utf-8")
sld_path = STYLE_DIR / f"{table_name}.sld"
sld = sld_path.read_text(encoding="utf-8") if sld_path.is_file() else ""
with sqlite3.connect(path) as connection:
connection.execute(
"""
CREATE TABLE IF NOT EXISTS layer_styles (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
f_table_catalog TEXT(256),
f_table_schema TEXT(256),
f_table_name TEXT(256),
f_geometry_column TEXT(256),
styleName TEXT(30),
styleQML TEXT,
styleSLD TEXT,
useAsDefault BOOLEAN,
description TEXT,
owner TEXT(30),
ui TEXT(30),
update_time DATETIME DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
)
"""
)
connection.execute("DELETE FROM layer_styles WHERE f_table_name = ?", (table_name,))
connection.execute(
"""
INSERT INTO layer_styles (
f_table_catalog, f_table_schema, f_table_name, f_geometry_column,
styleName, styleQML, styleSLD, useAsDefault, description, owner, ui, update_time
) VALUES ('', '', ?, 'geom', 'Default', ?, ?, 1, '', '', NULL, strftime('%Y-%m-%dT%H:%M:%fZ','now'))
""",
(table_name, qml, sld),
)
def new_stamp():
+472
View File
@@ -0,0 +1,472 @@
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis autoRefreshMode="Disabled" autoRefreshTime="0" hasScaleBasedVisibilityFlag="0" labelsEnabled="0" layerType="Vector" maxScale="0" minScale="100000000" readOnly="0" simplifyAlgorithm="0" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyLocal="1" simplifyMaxScale="1" styleCategories="AllStyleCategories" symbologyReferenceScale="-1" version="4.2.2-Belém do Pará">
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
<Private>0</Private>
</flags>
<temporal accumulate="0" durationField="fid" durationUnit="min" enabled="0" endExpression="" endField="" fixedDuration="0" limitMode="0" mode="0" startExpression="" startField="">
<fixedRange>
<start></start>
<end></end>
</fixedRange>
</temporal>
<elevation binding="Centroid" clamping="Terrain" customToleranceEnabled="1" extrusion="0" extrusionEnabled="0" respectLayerSymbol="1" showMarkerSymbolInSurfacePlots="0" symbology="Line" type="IndividualFeatures" zoffset="0" zscale="1">
<data-defined-properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data-defined-properties>
<profileLineSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="line">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
<layer class="SimpleLine" enabled="1" id="{833d90e7-7eb1-4865-b4ab-94b6c63cf029}" locked="0" pass="0">
<Option type="Map">
<Option name="align_dash_pattern" type="QString" value="0"/>
<Option name="capstyle" type="QString" value="square"/>
<Option name="customdash" type="QString" value="5;2"/>
<Option name="customdash_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="customdash_unit" type="QString" value="MM"/>
<Option name="dash_pattern_offset" type="QString" value="0"/>
<Option name="dash_pattern_offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="dash_pattern_offset_unit" type="QString" value="MM"/>
<Option name="draw_inside_polygon" type="QString" value="0"/>
<Option name="joinstyle" type="QString" value="bevel"/>
<Option name="line_color" type="QString" value="125,139,143,255,rgb:0.4901961,0.5450981,0.5607843,1"/>
<Option name="line_style" type="QString" value="solid"/>
<Option name="line_width" type="QString" value="0.6"/>
<Option name="line_width_unit" type="QString" value="MM"/>
<Option name="offset" type="QString" value="0"/>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="offset_unit" type="QString" value="MM"/>
<Option name="ring_filter" type="QString" value="0"/>
<Option name="trim_distance_end" type="QString" value="0"/>
<Option name="trim_distance_end_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="trim_distance_end_unit" type="QString" value="MM"/>
<Option name="trim_distance_start" type="QString" value="0"/>
<Option name="trim_distance_start_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="trim_distance_start_unit" type="QString" value="MM"/>
<Option name="tweak_dash_pattern_on_corners" type="QString" value="0"/>
<Option name="use_custom_dash" type="QString" value="0"/>
<Option name="width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</profileLineSymbol>
<profileFillSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="fill">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
<layer class="SimpleFill" enabled="1" id="{df119b1f-1fc8-480a-9ee1-a26652e2e522}" locked="0" pass="0">
<Option type="Map">
<Option name="border_width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="color" type="QString" value="125,139,143,255,rgb:0.4901961,0.5450981,0.5607843,1"/>
<Option name="joinstyle" type="QString" value="bevel"/>
<Option name="offset" type="QString" value="0,0"/>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="offset_unit" type="QString" value="MM"/>
<Option name="outline_color" type="QString" value="89,99,102,255,rgb:0.3501335,0.3893492,0.4005493,1"/>
<Option name="outline_style" type="QString" value="solid"/>
<Option name="outline_width" type="QString" value="0.2"/>
<Option name="outline_width_unit" type="QString" value="MM"/>
<Option name="style" type="QString" value="solid"/>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</profileFillSymbol>
<profileMarkerSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="marker">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
<layer class="SimpleMarker" enabled="1" id="{b5f49bd8-ae8b-4502-9740-f6b82a34964f}" locked="0" pass="0">
<Option type="Map">
<Option name="angle" type="QString" value="0"/>
<Option name="cap_style" type="QString" value="square"/>
<Option name="color" type="QString" value="125,139,143,255,rgb:0.4901961,0.5450981,0.5607843,1"/>
<Option name="horizontal_anchor_point" type="QString" value="1"/>
<Option name="joinstyle" type="QString" value="bevel"/>
<Option name="name" type="QString" value="diamond"/>
<Option name="offset" type="QString" value="0,0"/>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="offset_unit" type="QString" value="MM"/>
<Option name="outline_color" type="QString" value="89,99,102,255,rgb:0.3501335,0.3893492,0.4005493,1"/>
<Option name="outline_style" type="QString" value="solid"/>
<Option name="outline_width" type="QString" value="0.2"/>
<Option name="outline_width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="outline_width_unit" type="QString" value="MM"/>
<Option name="scale_method" type="QString" value="diameter"/>
<Option name="size" type="QString" value="3"/>
<Option name="size_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="size_unit" type="QString" value="MM"/>
<Option name="vertical_anchor_point" type="QString" value="1"/>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</profileMarkerSymbol>
</elevation>
<renderer-v2 enableorderby="0" forceraster="0" referencescale="-1" symbollevels="0" type="singleSymbol">
<symbols>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="0" type="fill">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
<layer class="SimpleFill" enabled="1" id="{c19d4afc-ea2f-40be-9f37-538f938a45fa}" locked="0" pass="0">
<Option type="Map">
<Option name="border_width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="color" type="QString" value="133,182,111,255,rgb:0.5215687,0.7137255,0.4352941,1"/>
<Option name="joinstyle" type="QString" value="bevel"/>
<Option name="offset" type="QString" value="0,0"/>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="offset_unit" type="QString" value="MM"/>
<Option name="outline_color" type="QString" value="227,26,28,255,rgb:0.8901961,0.1019608,0.1098039,1"/>
<Option name="outline_style" type="QString" value="solid"/>
<Option name="outline_width" type="QString" value="0.6"/>
<Option name="outline_width_unit" type="QString" value="MM"/>
<Option name="style" type="QString" value="no"/>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</symbols>
<rotation/>
<sizescale/>
<data-defined-properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data-defined-properties>
</renderer-v2>
<selection mode="Default">
<selectionColor invalid="1"/>
<selectionSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="fill">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
<layer class="SimpleFill" enabled="1" id="{45658902-4a96-4aa7-a86f-a662aeacff1a}" locked="0" pass="0">
<Option type="Map">
<Option name="border_width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="color" type="QString" value="0,0,255,255,rgb:0,0,1,1"/>
<Option name="joinstyle" type="QString" value="bevel"/>
<Option name="offset" type="QString" value="0,0"/>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"/>
<Option name="offset_unit" type="QString" value="MM"/>
<Option name="outline_color" type="QString" value="35,35,35,255,rgb:0.1372549,0.1372549,0.1372549,1"/>
<Option name="outline_style" type="QString" value="solid"/>
<Option name="outline_width" type="QString" value="0.26"/>
<Option name="outline_width_unit" type="QString" value="MM"/>
<Option name="style" type="QString" value="solid"/>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""/>
<Option name="properties"/>
<Option name="type" type="QString" value="collection"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</selectionSymbol>
</selection>
<customproperties>
<Option type="Map">
<Option name="QFieldSync/action" type="QString" value="copy"/>
<Option name="QFieldSync/attachment_naming" type="QString" value="{}"/>
<Option name="QFieldSync/attribute_editing_locked_expression" type="QString" value=""/>
<Option name="QFieldSync/cloud_action" type="QString" value="offline"/>
<Option name="QFieldSync/feature_addition_locked_expression" type="QString" value=""/>
<Option name="QFieldSync/feature_deletion_locked_expression" type="QString" value=""/>
<Option name="QFieldSync/geometry_editing_locked_expression" type="QString" value=""/>
<Option name="QFieldSync/photo_naming" type="QString" value="{}"/>
<Option name="QFieldSync/relationship_maximum_visible" type="QString" value="{}"/>
<Option name="QFieldSync/tracking_distance_requirement_minimum_meters" type="int" value="30"/>
<Option name="QFieldSync/tracking_erroneous_distance_safeguard_maximum_meters" type="int" value="1"/>
<Option name="QFieldSync/tracking_measurement_type" type="int" value="0"/>
<Option name="QFieldSync/tracking_time_requirement_interval_seconds" type="int" value="30"/>
<Option name="QFieldSync/value_map_button_interface_threshold" type="int" value="0"/>
<Option name="embeddedWidgets/count" type="int" value="0"/>
<Option name="variableNames"/>
<Option name="variableValues"/>
</Option>
</customproperties>
<blendMode>0</blendMode>
<featureBlendMode>0</featureBlendMode>
<layerOpacity>1</layerOpacity>
<geometryOptions geometryPrecision="0" removeDuplicateNodes="0">
<activeChecks/>
<checkConfiguration type="Map">
<Option name="QgsGeometryGapCheck" type="Map">
<Option name="allowedGapsBuffer" type="double" value="0"/>
<Option name="allowedGapsEnabled" type="bool" value="false"/>
<Option name="allowedGapsLayer" type="QString" value=""/>
</Option>
</checkConfiguration>
</geometryOptions>
<legend showLabelLegend="0" type="default-vector"/>
<referencedLayers/>
<referencingLayers/>
<fieldConfiguration>
<field configurationFlags="0" name="fid">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="渠道编码">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="渠道类型">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="全网渠道编码">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="渠道名称">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="星级">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="地理经度">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="地理纬度">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="连锁">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field configurationFlags="0" name="头腰尾标识">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
</fieldConfiguration>
<aliases>
<alias field="fid" index="0" name=""/>
<alias field="渠道编码" index="1" name=""/>
<alias field="渠道类型" index="2" name=""/>
<alias field="全网渠道编码" index="3" name=""/>
<alias field="渠道名称" index="4" name=""/>
<alias field="星级" index="5" name=""/>
<alias field="地理经度" index="6" name=""/>
<alias field="地理纬度" index="7" name=""/>
<alias field="连锁" index="8" name=""/>
<alias field="头腰尾标识" index="9" name=""/>
</aliases>
<defaults>
<default applyOnUpdate="0" expression="" field="fid"/>
<default applyOnUpdate="0" expression="" field="渠道编码"/>
<default applyOnUpdate="0" expression="" field="渠道类型"/>
<default applyOnUpdate="0" expression="" field="全网渠道编码"/>
<default applyOnUpdate="0" expression="" field="渠道名称"/>
<default applyOnUpdate="0" expression="" field="星级"/>
<default applyOnUpdate="0" expression="" field="地理经度"/>
<default applyOnUpdate="0" expression="" field="地理纬度"/>
<default applyOnUpdate="0" expression="" field="连锁"/>
<default applyOnUpdate="0" expression="" field="头腰尾标识"/>
</defaults>
<constraints>
<constraint constraints="3" exp_strength="0" field="fid" notnull_strength="1" unique_strength="1"/>
<constraint constraints="0" exp_strength="0" field="渠道编码" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="渠道类型" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="全网渠道编码" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="渠道名称" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="星级" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="地理经度" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="地理纬度" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="连锁" notnull_strength="0" unique_strength="0"/>
<constraint constraints="0" exp_strength="0" field="头腰尾标识" notnull_strength="0" unique_strength="0"/>
</constraints>
<constraintExpressions>
<constraint desc="" exp="" field="fid"/>
<constraint desc="" exp="" field="渠道编码"/>
<constraint desc="" exp="" field="渠道类型"/>
<constraint desc="" exp="" field="全网渠道编码"/>
<constraint desc="" exp="" field="渠道名称"/>
<constraint desc="" exp="" field="星级"/>
<constraint desc="" exp="" field="地理经度"/>
<constraint desc="" exp="" field="地理纬度"/>
<constraint desc="" exp="" field="连锁"/>
<constraint desc="" exp="" field="头腰尾标识"/>
</constraintExpressions>
<expressionfields/>
<attributeactions>
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
</attributeactions>
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
<columns>
<column hidden="0" name="fid" type="field" width="-1"/>
<column hidden="0" name="渠道编码" type="field" width="-1"/>
<column hidden="0" name="渠道类型" type="field" width="-1"/>
<column hidden="0" name="全网渠道编码" type="field" width="-1"/>
<column hidden="0" name="渠道名称" type="field" width="-1"/>
<column hidden="0" name="星级" type="field" width="-1"/>
<column hidden="0" name="地理经度" type="field" width="-1"/>
<column hidden="0" name="地理纬度" type="field" width="-1"/>
<column hidden="0" name="连锁" type="field" width="-1"/>
<column hidden="0" name="头腰尾标识" type="field" width="-1"/>
<column hidden="1" type="actions" width="-1"/>
</columns>
</attributetableconfig>
<conditionalstyles>
<rowstyles/>
<fieldstyles/>
</conditionalstyles>
<storedexpressions/>
<editform tolerant="1"></editform>
<editforminit/>
<editforminitcodesource>0</editforminitcodesource>
<editforminitfilepath></editforminitfilepath>
<editforminitcode><![CDATA[# -*- 编码: utf-8 -*-
"""
QGIS表单含有一个Python函数,该函数在打开表单时被调用。
使用此函数为您的表单添加扩展逻辑。
在 "Python Init function" 字段中输入函数名。
示例如下:
"""
from qgis.PyQt.QtWidgets import QWidget
def my_form_open(dialog, layer, feature):
geom = feature.geometry()
control = dialog.findChild(QWidget, "MyLineEdit")
]]></editforminitcode>
<featformsuppress>0</featformsuppress>
<editorlayout>generatedlayout</editorlayout>
<editable>
<field editable="1" name="fid"/>
<field editable="1" name="全网渠道编码"/>
<field editable="1" name="地理纬度"/>
<field editable="1" name="地理经度"/>
<field editable="1" name="头腰尾标识"/>
<field editable="1" name="星级"/>
<field editable="1" name="渠道名称"/>
<field editable="1" name="渠道类型"/>
<field editable="1" name="渠道编码"/>
<field editable="1" name="连锁"/>
</editable>
<labelOnTop>
<field labelOnTop="0" name="fid"/>
<field labelOnTop="0" name="全网渠道编码"/>
<field labelOnTop="0" name="地理纬度"/>
<field labelOnTop="0" name="地理经度"/>
<field labelOnTop="0" name="头腰尾标识"/>
<field labelOnTop="0" name="星级"/>
<field labelOnTop="0" name="渠道名称"/>
<field labelOnTop="0" name="渠道类型"/>
<field labelOnTop="0" name="渠道编码"/>
<field labelOnTop="0" name="连锁"/>
</labelOnTop>
<reuseLastValuePolicy>
<field name="fid" reuseLastValuePolicy="NotAllowed"/>
<field name="全网渠道编码" reuseLastValuePolicy="NotAllowed"/>
<field name="地理纬度" reuseLastValuePolicy="NotAllowed"/>
<field name="地理经度" reuseLastValuePolicy="NotAllowed"/>
<field name="头腰尾标识" reuseLastValuePolicy="NotAllowed"/>
<field name="星级" reuseLastValuePolicy="NotAllowed"/>
<field name="渠道名称" reuseLastValuePolicy="NotAllowed"/>
<field name="渠道类型" reuseLastValuePolicy="NotAllowed"/>
<field name="渠道编码" reuseLastValuePolicy="NotAllowed"/>
<field name="连锁" reuseLastValuePolicy="NotAllowed"/>
</reuseLastValuePolicy>
<dataDefinedFieldProperties/>
<widgets/>
<previewExpression>"渠道编码"</previewExpression>
<mapTip enabled="1"></mapTip>
<layerGeometryType>2</layerGeometryType>
</qgis>
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" version="1.1.0" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<se:Name>Channel</se:Name>
<UserStyle>
<se:Name>Channel</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PolygonSymbolizer>
<se:Stroke>
<se:SvgParameter name="stroke">#e31a1c</se:SvgParameter>
<se:SvgParameter name="stroke-width">2</se:SvgParameter>
<se:SvgParameter name="stroke-linejoin">bevel</se:SvgParameter>
</se:Stroke>
</se:PolygonSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
+1 -1
View File
@@ -14,4 +14,4 @@
- 命名格式:`实体渠道匹配表*.xlsx`
- 数据格式:xlsx。使用含下列字段的工作表,当前是 Sheet1。
- 字段:渠道编码、渠道类型、全网渠道编码、渠道名称、星级、所属渠道管理员工姓名、地理经度、地理纬度、连锁、头腰尾标识
- 说明:经纬度是十进制度。经度或纬度为空的记录先丢弃。其余记录提取这些字段后去重。每个点生成半径 2 公里的圆。渠道图层保留渠道编码、渠道类型、全网渠道编码、渠道名称、星级、地理经度、地理纬度、连锁、头腰尾标识。交叠面积单位是平方米。
- 说明:经纬度是十进制度。经度或纬度为空的记录先丢弃。其余记录提取这些字段后去重。每个点生成半径 2 公里的圆。渠道图层保留渠道编码、渠道类型、全网渠道编码、渠道名称、星级、地理经度、地理纬度、连锁、头腰尾标识。样式为无填充、红色边线,保存在 `Scripts/styles/Channel.qml`。交叠面积单位是平方米。