Skip to content

Commit a74dd61

Browse files
committedAug 10, 2016
Further tweaks to line labeling, add tests
Sponsored by Andreas Neumann (cherry-picked from dc0cc32) o
1 parent 34d5f5a commit a74dd61

File tree

16 files changed

+1397
-1
lines changed

16 files changed

+1397
-1
lines changed
 

‎src/core/pal/feature.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ int FeaturePart::createCandidatesAlongLineNearStraightSegments( QList<LabelPosit
683683
straightSegmentLengths << currentStraightSegmentLength;
684684
straightSegmentAngles << QgsGeometryUtils::normalizedAngle( atan2( y[numberNodes-1] - segmentStartY, x[numberNodes-1] - segmentStartX ) );
685685
longestSegmentLength = qMax( longestSegmentLength, currentStraightSegmentLength );
686+
double middleOfLine = totalLineLength / 2.0;
686687

687688
if ( totalLineLength < labelWidth )
688689
{
@@ -729,6 +730,10 @@ int FeaturePart::createCandidatesAlongLineNearStraightSegments( QList<LabelPosit
729730

730731
candidateLength = sqrt(( candidateEndX - candidateStartX ) * ( candidateEndX - candidateStartX ) + ( candidateEndY - candidateStartY ) * ( candidateEndY - candidateStartY ) );
731732

733+
734+
// LOTS OF DIFFERENT COSTS TO BALANCE HERE - feel free to tweak these, but please add a unit test
735+
// which covers the situation you are adjusting for (eg "given equal length lines, choose the more horizontal line")
736+
732737
cost = candidateLength / labelWidth;
733738
if ( cost > 0.98 )
734739
cost = 0.0001;
@@ -738,10 +743,15 @@ int FeaturePart::createCandidatesAlongLineNearStraightSegments( QList<LabelPosit
738743
cost = ( 1 - cost ) / 100; // ranges from 0.0001 to 0.01 (however a cost 0.005 is already a lot!)
739744
}
740745

741-
// penalize positions which are further from the line's midpoint
746+
// penalize positions which are further from the straight segments's midpoint
742747
double labelCenter = currentDistanceAlongLine + labelWidth / 2.0;
743748
double costCenter = 2 * qAbs( labelCenter - distanceToCenterOfSegment ) / ( distanceToEndOfSegment - distanceToStartOfSegment ); // 0 -> 1
744749
cost += costCenter * 0.0005; // < 0, 0.0005 >
750+
751+
// penalize positions which are further from absolute center of whole linestring
752+
double costLineCenter = 2 * qAbs( labelCenter - middleOfLine ) / totalLineLength; // 0 -> 1
753+
cost += costLineCenter * 0.0005; // < 0, 0.0005 >
754+
745755
cost += segmentCost * 0.0005; // prefer labels on longer straight segments
746756
cost += segmentAngleCost * 0.0001; // prefer more horizontal segments, but this is less important than length considerations
747757

‎tests/src/python/test_qgspallabeling_placement.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def test_polygon_placement_perimeter(self):
276276
self.layer = TestQgsPalLabeling.loadFeatureLayer('polygon_perimeter')
277277
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
278278
self.lyr.placement = QgsPalLayerSettings.Line
279+
self.lyr.placementFlags = QgsPalLayerSettings.AboveLine
279280
self.checkTest()
280281
self.removeMapLayer(self.layer)
281282
self.layer = None
@@ -385,6 +386,51 @@ def test_prefer_line_below_instead_of_online(self):
385386
self.removeMapLayer(self.layer)
386387
self.layer = None
387388

389+
def test_prefer_longer_lines_over_shorter(self):
390+
# Test that labeling a line using parallel labels will tend to place the labels over the longer straight parts of
391+
# the line
392+
self.layer = TestQgsPalLabeling.loadFeatureLayer('line_placement_1')
393+
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
394+
self.lyr.placement = QgsPalLayerSettings.Line
395+
self.checkTest()
396+
self.removeMapLayer(self.layer)
397+
self.layer = None
398+
399+
def test_prefer_more_horizontal_lines(self):
400+
# Test that labeling a line using parallel labels will tend to place the labels over more horizontal sections
401+
self.layer = TestQgsPalLabeling.loadFeatureLayer('line_placement_2')
402+
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
403+
self.lyr.placement = QgsPalLayerSettings.Line
404+
self.checkTest()
405+
self.removeMapLayer(self.layer)
406+
self.layer = None
407+
408+
def test_label_line_over_small_angles(self):
409+
# Test that labeling a line using parallel labels will place labels near center of straightish line
410+
self.layer = TestQgsPalLabeling.loadFeatureLayer('line_placement_3')
411+
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
412+
self.lyr.placement = QgsPalLayerSettings.Line
413+
self.checkTest()
414+
self.removeMapLayer(self.layer)
415+
self.layer = None
416+
417+
def test_label_line_toward_center(self):
418+
# Test that labeling a line using parallel labels will try to place labels as close to center of line as possible
419+
self.layer = TestQgsPalLabeling.loadFeatureLayer('line_placement_4')
420+
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
421+
self.lyr.placement = QgsPalLayerSettings.Line
422+
self.checkTest()
423+
self.removeMapLayer(self.layer)
424+
self.layer = None
425+
426+
def test_label_line_avoid_jaggy(self):
427+
# Test that labeling a line using parallel labels won't place labels over jaggy bits of line
428+
self.layer = TestQgsPalLabeling.loadFeatureLayer('line_placement_5')
429+
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
430+
self.lyr.placement = QgsPalLayerSettings.Line
431+
self.checkTest()
432+
self.removeMapLayer(self.layer)
433+
self.layer = None
388434

389435
if __name__ == '__main__':
390436
# NOTE: unless PAL_SUITE env var is set all test class methods will be run

Error rendering embedded code

Invalid image source.

Error rendering embedded code

Invalid image source.

Error rendering embedded code

Invalid image source.

Error rendering embedded code

Invalid image source.

Error rendering embedded code

Invalid image source.

Lines changed: 272 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,272 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="2.99.0-Master" simplifyAlgorithm="0" minimumScale="100000" maximumScale="1e+08" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1">
3+
<edittypes>
4+
<edittype widgetv2type="TextEdit" name="pkuid">
5+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
6+
</edittype>
7+
<edittype widgetv2type="TextEdit" name="text">
8+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
9+
</edittype>
10+
</edittypes>
11+
<renderer-v2 forceraster="0" symbollevels="0" type="singleSymbol" enableorderby="0">
12+
<symbols>
13+
<symbol alpha="1" clip_to_extent="1" type="line" name="0">
14+
<layer pass="0" class="SimpleLine" locked="0">
15+
<prop k="capstyle" v="square"/>
16+
<prop k="customdash" v="5;2"/>
17+
<prop k="customdash_map_unit_scale" v="0,0,0,0,0,0"/>
18+
<prop k="customdash_unit" v="MM"/>
19+
<prop k="draw_inside_polygon" v="0"/>
20+
<prop k="joinstyle" v="bevel"/>
21+
<prop k="line_color" v="227,26,28,255"/>
22+
<prop k="line_style" v="solid"/>
23+
<prop k="line_width" v="0.5"/>
24+
<prop k="line_width_unit" v="MM"/>
25+
<prop k="offset" v="0"/>
26+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
27+
<prop k="offset_unit" v="MM"/>
28+
<prop k="use_custom_dash" v="0"/>
29+
<prop k="width_map_unit_scale" v="0,0,0,0,0,0"/>
30+
</layer>
31+
</symbol>
32+
</symbols>
33+
<rotation/>
34+
<sizescale scalemethod="diameter"/>
35+
</renderer-v2>
36+
<labeling type="simple"/>
37+
<customproperties>
38+
<property key="embeddedWidgets/count" value="0"/>
39+
<property key="labeling" value="pal"/>
40+
<property key="labeling/addDirectionSymbol" value="false"/>
41+
<property key="labeling/angleOffset" value="0"/>
42+
<property key="labeling/blendMode" value="0"/>
43+
<property key="labeling/bufferBlendMode" value="0"/>
44+
<property key="labeling/bufferColorA" value="255"/>
45+
<property key="labeling/bufferColorB" value="255"/>
46+
<property key="labeling/bufferColorG" value="255"/>
47+
<property key="labeling/bufferColorR" value="255"/>
48+
<property key="labeling/bufferDraw" value="false"/>
49+
<property key="labeling/bufferJoinStyle" value="64"/>
50+
<property key="labeling/bufferNoFill" value="false"/>
51+
<property key="labeling/bufferSize" value="1"/>
52+
<property key="labeling/bufferSizeInMapUnits" value="false"/>
53+
<property key="labeling/bufferSizeMapUnitMaxScale" value="0"/>
54+
<property key="labeling/bufferSizeMapUnitMinScale" value="0"/>
55+
<property key="labeling/bufferSizeMapUnitScale" value="0,0,0,0,0,0"/>
56+
<property key="labeling/bufferTransp" value="0"/>
57+
<property key="labeling/centroidInside" value="false"/>
58+
<property key="labeling/centroidWhole" value="false"/>
59+
<property key="labeling/decimals" value="3"/>
60+
<property key="labeling/displayAll" value="false"/>
61+
<property key="labeling/dist" value="0"/>
62+
<property key="labeling/distInMapUnits" value="false"/>
63+
<property key="labeling/distMapUnitMaxScale" value="0"/>
64+
<property key="labeling/distMapUnitMinScale" value="0"/>
65+
<property key="labeling/distMapUnitScale" value="0,0,0,0,0,0"/>
66+
<property key="labeling/drawLabels" value="false"/>
67+
<property key="labeling/enabled" value="false"/>
68+
<property key="labeling/fieldName" value=""/>
69+
<property key="labeling/fitInPolygonOnly" value="false"/>
70+
<property key="labeling/fontBold" value="false"/>
71+
<property key="labeling/fontCapitals" value="0"/>
72+
<property key="labeling/fontFamily" value="Ubuntu"/>
73+
<property key="labeling/fontItalic" value="false"/>
74+
<property key="labeling/fontLetterSpacing" value="0"/>
75+
<property key="labeling/fontLimitPixelSize" value="false"/>
76+
<property key="labeling/fontMaxPixelSize" value="10000"/>
77+
<property key="labeling/fontMinPixelSize" value="3"/>
78+
<property key="labeling/fontSize" value="11"/>
79+
<property key="labeling/fontSizeInMapUnits" value="false"/>
80+
<property key="labeling/fontSizeMapUnitMaxScale" value="0"/>
81+
<property key="labeling/fontSizeMapUnitMinScale" value="0"/>
82+
<property key="labeling/fontSizeMapUnitScale" value="0,0,0,0,0,0"/>
83+
<property key="labeling/fontStrikeout" value="false"/>
84+
<property key="labeling/fontUnderline" value="false"/>
85+
<property key="labeling/fontWeight" value="63"/>
86+
<property key="labeling/fontWordSpacing" value="0"/>
87+
<property key="labeling/formatNumbers" value="false"/>
88+
<property key="labeling/isExpression" value="true"/>
89+
<property key="labeling/labelOffsetInMapUnits" value="true"/>
90+
<property key="labeling/labelOffsetMapUnitMaxScale" value="0"/>
91+
<property key="labeling/labelOffsetMapUnitMinScale" value="0"/>
92+
<property key="labeling/labelOffsetMapUnitScale" value="0,0,0,0,0,0"/>
93+
<property key="labeling/labelPerPart" value="false"/>
94+
<property key="labeling/leftDirectionSymbol" value="&lt;"/>
95+
<property key="labeling/limitNumLabels" value="false"/>
96+
<property key="labeling/maxCurvedCharAngleIn" value="20"/>
97+
<property key="labeling/maxCurvedCharAngleOut" value="-20"/>
98+
<property key="labeling/maxNumLabels" value="2000"/>
99+
<property key="labeling/mergeLines" value="false"/>
100+
<property key="labeling/minFeatureSize" value="0"/>
101+
<property key="labeling/multilineAlign" value="0"/>
102+
<property key="labeling/multilineHeight" value="1"/>
103+
<property key="labeling/namedStyle" value="Medium"/>
104+
<property key="labeling/obstacle" value="true"/>
105+
<property key="labeling/obstacleFactor" value="1"/>
106+
<property key="labeling/obstacleType" value="0"/>
107+
<property key="labeling/offsetType" value="0"/>
108+
<property key="labeling/placeDirectionSymbol" value="0"/>
109+
<property key="labeling/placement" value="2"/>
110+
<property key="labeling/placementFlags" value="10"/>
111+
<property key="labeling/plussign" value="false"/>
112+
<property key="labeling/predefinedPositionOrder" value="TR,TL,BR,BL,R,L,TSR,BSR"/>
113+
<property key="labeling/preserveRotation" value="true"/>
114+
<property key="labeling/previewBkgrdColor" value="#ffffff"/>
115+
<property key="labeling/priority" value="5"/>
116+
<property key="labeling/quadOffset" value="4"/>
117+
<property key="labeling/repeatDistance" value="0"/>
118+
<property key="labeling/repeatDistanceMapUnitMaxScale" value="0"/>
119+
<property key="labeling/repeatDistanceMapUnitMinScale" value="0"/>
120+
<property key="labeling/repeatDistanceMapUnitScale" value="0,0,0,0,0,0"/>
121+
<property key="labeling/repeatDistanceUnit" value="1"/>
122+
<property key="labeling/reverseDirectionSymbol" value="false"/>
123+
<property key="labeling/rightDirectionSymbol" value=">"/>
124+
<property key="labeling/scaleMax" value="10000000"/>
125+
<property key="labeling/scaleMin" value="1"/>
126+
<property key="labeling/scaleVisibility" value="false"/>
127+
<property key="labeling/shadowBlendMode" value="6"/>
128+
<property key="labeling/shadowColorB" value="0"/>
129+
<property key="labeling/shadowColorG" value="0"/>
130+
<property key="labeling/shadowColorR" value="0"/>
131+
<property key="labeling/shadowDraw" value="false"/>
132+
<property key="labeling/shadowOffsetAngle" value="135"/>
133+
<property key="labeling/shadowOffsetDist" value="1"/>
134+
<property key="labeling/shadowOffsetGlobal" value="true"/>
135+
<property key="labeling/shadowOffsetMapUnitMaxScale" value="0"/>
136+
<property key="labeling/shadowOffsetMapUnitMinScale" value="0"/>
137+
<property key="labeling/shadowOffsetMapUnitScale" value="0,0,0,0,0,0"/>
138+
<property key="labeling/shadowOffsetUnits" value="1"/>
139+
<property key="labeling/shadowRadius" value="1.5"/>
140+
<property key="labeling/shadowRadiusAlphaOnly" value="false"/>
141+
<property key="labeling/shadowRadiusMapUnitMaxScale" value="0"/>
142+
<property key="labeling/shadowRadiusMapUnitMinScale" value="0"/>
143+
<property key="labeling/shadowRadiusMapUnitScale" value="0,0,0,0,0,0"/>
144+
<property key="labeling/shadowRadiusUnits" value="1"/>
145+
<property key="labeling/shadowScale" value="100"/>
146+
<property key="labeling/shadowTransparency" value="30"/>
147+
<property key="labeling/shadowUnder" value="0"/>
148+
<property key="labeling/shapeBlendMode" value="0"/>
149+
<property key="labeling/shapeBorderColorA" value="255"/>
150+
<property key="labeling/shapeBorderColorB" value="128"/>
151+
<property key="labeling/shapeBorderColorG" value="128"/>
152+
<property key="labeling/shapeBorderColorR" value="128"/>
153+
<property key="labeling/shapeBorderWidth" value="0"/>
154+
<property key="labeling/shapeBorderWidthMapUnitMaxScale" value="0"/>
155+
<property key="labeling/shapeBorderWidthMapUnitMinScale" value="0"/>
156+
<property key="labeling/shapeBorderWidthMapUnitScale" value="0,0,0,0,0,0"/>
157+
<property key="labeling/shapeBorderWidthUnits" value="1"/>
158+
<property key="labeling/shapeDraw" value="false"/>
159+
<property key="labeling/shapeFillColorA" value="255"/>
160+
<property key="labeling/shapeFillColorB" value="255"/>
161+
<property key="labeling/shapeFillColorG" value="255"/>
162+
<property key="labeling/shapeFillColorR" value="255"/>
163+
<property key="labeling/shapeJoinStyle" value="64"/>
164+
<property key="labeling/shapeOffsetMapUnitMaxScale" value="0"/>
165+
<property key="labeling/shapeOffsetMapUnitMinScale" value="0"/>
166+
<property key="labeling/shapeOffsetMapUnitScale" value="0,0,0,0,0,0"/>
167+
<property key="labeling/shapeOffsetUnits" value="1"/>
168+
<property key="labeling/shapeOffsetX" value="0"/>
169+
<property key="labeling/shapeOffsetY" value="0"/>
170+
<property key="labeling/shapeRadiiMapUnitMaxScale" value="0"/>
171+
<property key="labeling/shapeRadiiMapUnitMinScale" value="0"/>
172+
<property key="labeling/shapeRadiiMapUnitScale" value="0,0,0,0,0,0"/>
173+
<property key="labeling/shapeRadiiUnits" value="1"/>
174+
<property key="labeling/shapeRadiiX" value="0"/>
175+
<property key="labeling/shapeRadiiY" value="0"/>
176+
<property key="labeling/shapeRotation" value="0"/>
177+
<property key="labeling/shapeRotationType" value="0"/>
178+
<property key="labeling/shapeSVGFile" value=""/>
179+
<property key="labeling/shapeSizeMapUnitMaxScale" value="0"/>
180+
<property key="labeling/shapeSizeMapUnitMinScale" value="0"/>
181+
<property key="labeling/shapeSizeMapUnitScale" value="0,0,0,0,0,0"/>
182+
<property key="labeling/shapeSizeType" value="0"/>
183+
<property key="labeling/shapeSizeUnits" value="1"/>
184+
<property key="labeling/shapeSizeX" value="0"/>
185+
<property key="labeling/shapeSizeY" value="0"/>
186+
<property key="labeling/shapeTransparency" value="0"/>
187+
<property key="labeling/shapeType" value="0"/>
188+
<property key="labeling/textColorA" value="255"/>
189+
<property key="labeling/textColorB" value="0"/>
190+
<property key="labeling/textColorG" value="0"/>
191+
<property key="labeling/textColorR" value="0"/>
192+
<property key="labeling/textTransp" value="0"/>
193+
<property key="labeling/upsidedownLabels" value="0"/>
194+
<property key="labeling/wrapChar" value=""/>
195+
<property key="labeling/xOffset" value="0"/>
196+
<property key="labeling/yOffset" value="0"/>
197+
<property key="labeling/zIndex" value="0"/>
198+
<property key="variableNames" value="_fields_"/>
199+
<property key="variableValues" value=""/>
200+
</customproperties>
201+
<blendMode>0</blendMode>
202+
<featureBlendMode>0</featureBlendMode>
203+
<layerTransparency>0</layerTransparency>
204+
<SingleCategoryDiagramRenderer diagramType="Histogram" sizeLegend="0" attributeLegend="1">
205+
<DiagramCategory penColor="#000000" labelPlacementMethod="XHeight" penWidth="0" diagramOrientation="Up" sizeScale="0,0,0,0,0,0" minimumSize="0" barWidth="5" penAlpha="255" maxScaleDenominator="1e+08" backgroundColor="#ffffff" transparency="0" width="15" scaleDependency="Area" backgroundAlpha="255" angleOffset="1440" scaleBasedVisibility="0" enabled="0" height="15" lineSizeScale="0,0,0,0,0,0" sizeType="MM" lineSizeType="MM" minScaleDenominator="100000">
206+
<fontProperties description="Ubuntu,11,-1,5,50,0,0,0,0,0" style=""/>
207+
</DiagramCategory>
208+
<symbol alpha="1" clip_to_extent="1" type="marker" name="sizeSymbol">
209+
<layer pass="0" class="SimpleMarker" locked="0">
210+
<prop k="angle" v="0"/>
211+
<prop k="color" v="255,0,0,255"/>
212+
<prop k="horizontal_anchor_point" v="1"/>
213+
<prop k="joinstyle" v="bevel"/>
214+
<prop k="name" v="circle"/>
215+
<prop k="offset" v="0,0"/>
216+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
217+
<prop k="offset_unit" v="MM"/>
218+
<prop k="outline_color" v="0,0,0,255"/>
219+
<prop k="outline_style" v="solid"/>
220+
<prop k="outline_width" v="0"/>
221+
<prop k="outline_width_map_unit_scale" v="0,0,0,0,0,0"/>
222+
<prop k="outline_width_unit" v="MM"/>
223+
<prop k="scale_method" v="diameter"/>
224+
<prop k="size" v="2"/>
225+
<prop k="size_map_unit_scale" v="0,0,0,0,0,0"/>
226+
<prop k="size_unit" v="MM"/>
227+
<prop k="vertical_anchor_point" v="1"/>
228+
</layer>
229+
</symbol>
230+
</SingleCategoryDiagramRenderer>
231+
<DiagramLayerSettings yPosColumn="-1" showColumn="-1" linePlacementFlags="10" placement="2" dist="0" xPosColumn="-1" priority="0" obstacle="0" zIndex="0" showAll="1"/>
232+
<annotationform></annotationform>
233+
<excludeAttributesWMS/>
234+
<excludeAttributesWFS/>
235+
<attributeactions default="-1"/>
236+
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
237+
<columns>
238+
<column width="-1" hidden="0" type="field" name="pkuid"/>
239+
<column width="-1" hidden="0" type="field" name="text"/>
240+
<column width="-1" hidden="1" type="actions"/>
241+
</columns>
242+
</attributetableconfig>
243+
<editform></editform>
244+
<editforminit/>
245+
<editforminitcodesource>0</editforminitcodesource>
246+
<editforminitfilepath></editforminitfilepath>
247+
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
248+
"""
249+
QGIS forms can have a Python function that is called when the form is
250+
opened.
251+
252+
Use this function to add extra logic to your forms.
253+
254+
Enter the name of the function in the "Python Init function"
255+
field.
256+
An example follows:
257+
"""
258+
from qgis.PyQt.QtWidgets import QWidget
259+
260+
def my_form_open(dialog, layer, feature):
261+
geom = feature.geometry()
262+
control = dialog.findChild(QWidget, "MyLineEdit")
263+
]]></editforminitcode>
264+
<featformsuppress>0</featformsuppress>
265+
<editorlayout>generatedlayout</editorlayout>
266+
<widgets/>
267+
<conditionalstyles>
268+
<rowstyles/>
269+
<fieldstyles/>
270+
</conditionalstyles>
271+
<layerGeometryType>1</layerGeometryType>
272+
</qgis>
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="2.99.0-Master" simplifyAlgorithm="0" minimumScale="100000" maximumScale="1e+08" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1">
3+
<edittypes>
4+
<edittype widgetv2type="TextEdit" name="pkuid">
5+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
6+
</edittype>
7+
<edittype widgetv2type="TextEdit" name="text">
8+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
9+
</edittype>
10+
</edittypes>
11+
<renderer-v2 forceraster="0" symbollevels="0" type="singleSymbol" enableorderby="0">
12+
<symbols>
13+
<symbol alpha="1" clip_to_extent="1" type="line" name="0">
14+
<layer pass="0" class="SimpleLine" locked="0">
15+
<prop k="capstyle" v="square"/>
16+
<prop k="customdash" v="5;2"/>
17+
<prop k="customdash_map_unit_scale" v="0,0,0,0,0,0"/>
18+
<prop k="customdash_unit" v="MM"/>
19+
<prop k="draw_inside_polygon" v="0"/>
20+
<prop k="joinstyle" v="bevel"/>
21+
<prop k="line_color" v="227,26,28,255"/>
22+
<prop k="line_style" v="solid"/>
23+
<prop k="line_width" v="0.5"/>
24+
<prop k="line_width_unit" v="MM"/>
25+
<prop k="offset" v="0"/>
26+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
27+
<prop k="offset_unit" v="MM"/>
28+
<prop k="use_custom_dash" v="0"/>
29+
<prop k="width_map_unit_scale" v="0,0,0,0,0,0"/>
30+
</layer>
31+
</symbol>
32+
</symbols>
33+
<rotation/>
34+
<sizescale scalemethod="diameter"/>
35+
</renderer-v2>
36+
<labeling type="simple"/>
37+
<customproperties>
38+
<property key="embeddedWidgets/count" value="0"/>
39+
<property key="labeling" value="pal"/>
40+
<property key="labeling/addDirectionSymbol" value="false"/>
41+
<property key="labeling/angleOffset" value="0"/>
42+
<property key="labeling/blendMode" value="0"/>
43+
<property key="labeling/bufferBlendMode" value="0"/>
44+
<property key="labeling/bufferColorA" value="255"/>
45+
<property key="labeling/bufferColorB" value="255"/>
46+
<property key="labeling/bufferColorG" value="255"/>
47+
<property key="labeling/bufferColorR" value="255"/>
48+
<property key="labeling/bufferDraw" value="false"/>
49+
<property key="labeling/bufferJoinStyle" value="64"/>
50+
<property key="labeling/bufferNoFill" value="false"/>
51+
<property key="labeling/bufferSize" value="1"/>
52+
<property key="labeling/bufferSizeInMapUnits" value="false"/>
53+
<property key="labeling/bufferSizeMapUnitMaxScale" value="0"/>
54+
<property key="labeling/bufferSizeMapUnitMinScale" value="0"/>
55+
<property key="labeling/bufferSizeMapUnitScale" value="0,0,0,0,0,0"/>
56+
<property key="labeling/bufferTransp" value="0"/>
57+
<property key="labeling/centroidInside" value="false"/>
58+
<property key="labeling/centroidWhole" value="false"/>
59+
<property key="labeling/decimals" value="3"/>
60+
<property key="labeling/displayAll" value="false"/>
61+
<property key="labeling/dist" value="0"/>
62+
<property key="labeling/distInMapUnits" value="false"/>
63+
<property key="labeling/distMapUnitMaxScale" value="0"/>
64+
<property key="labeling/distMapUnitMinScale" value="0"/>
65+
<property key="labeling/distMapUnitScale" value="0,0,0,0,0,0"/>
66+
<property key="labeling/drawLabels" value="false"/>
67+
<property key="labeling/enabled" value="false"/>
68+
<property key="labeling/fieldName" value=""/>
69+
<property key="labeling/fitInPolygonOnly" value="false"/>
70+
<property key="labeling/fontBold" value="false"/>
71+
<property key="labeling/fontCapitals" value="0"/>
72+
<property key="labeling/fontFamily" value="Ubuntu"/>
73+
<property key="labeling/fontItalic" value="false"/>
74+
<property key="labeling/fontLetterSpacing" value="0"/>
75+
<property key="labeling/fontLimitPixelSize" value="false"/>
76+
<property key="labeling/fontMaxPixelSize" value="10000"/>
77+
<property key="labeling/fontMinPixelSize" value="3"/>
78+
<property key="labeling/fontSize" value="11"/>
79+
<property key="labeling/fontSizeInMapUnits" value="false"/>
80+
<property key="labeling/fontSizeMapUnitMaxScale" value="0"/>
81+
<property key="labeling/fontSizeMapUnitMinScale" value="0"/>
82+
<property key="labeling/fontSizeMapUnitScale" value="0,0,0,0,0,0"/>
83+
<property key="labeling/fontStrikeout" value="false"/>
84+
<property key="labeling/fontUnderline" value="false"/>
85+
<property key="labeling/fontWeight" value="63"/>
86+
<property key="labeling/fontWordSpacing" value="0"/>
87+
<property key="labeling/formatNumbers" value="false"/>
88+
<property key="labeling/isExpression" value="true"/>
89+
<property key="labeling/labelOffsetInMapUnits" value="true"/>
90+
<property key="labeling/labelOffsetMapUnitMaxScale" value="0"/>
91+
<property key="labeling/labelOffsetMapUnitMinScale" value="0"/>
92+
<property key="labeling/labelOffsetMapUnitScale" value="0,0,0,0,0,0"/>
93+
<property key="labeling/labelPerPart" value="false"/>
94+
<property key="labeling/leftDirectionSymbol" value="&lt;"/>
95+
<property key="labeling/limitNumLabels" value="false"/>
96+
<property key="labeling/maxCurvedCharAngleIn" value="20"/>
97+
<property key="labeling/maxCurvedCharAngleOut" value="-20"/>
98+
<property key="labeling/maxNumLabels" value="2000"/>
99+
<property key="labeling/mergeLines" value="false"/>
100+
<property key="labeling/minFeatureSize" value="0"/>
101+
<property key="labeling/multilineAlign" value="0"/>
102+
<property key="labeling/multilineHeight" value="1"/>
103+
<property key="labeling/namedStyle" value="Medium"/>
104+
<property key="labeling/obstacle" value="true"/>
105+
<property key="labeling/obstacleFactor" value="1"/>
106+
<property key="labeling/obstacleType" value="0"/>
107+
<property key="labeling/offsetType" value="0"/>
108+
<property key="labeling/placeDirectionSymbol" value="0"/>
109+
<property key="labeling/placement" value="2"/>
110+
<property key="labeling/placementFlags" value="10"/>
111+
<property key="labeling/plussign" value="false"/>
112+
<property key="labeling/predefinedPositionOrder" value="TR,TL,BR,BL,R,L,TSR,BSR"/>
113+
<property key="labeling/preserveRotation" value="true"/>
114+
<property key="labeling/previewBkgrdColor" value="#ffffff"/>
115+
<property key="labeling/priority" value="5"/>
116+
<property key="labeling/quadOffset" value="4"/>
117+
<property key="labeling/repeatDistance" value="0"/>
118+
<property key="labeling/repeatDistanceMapUnitMaxScale" value="0"/>
119+
<property key="labeling/repeatDistanceMapUnitMinScale" value="0"/>
120+
<property key="labeling/repeatDistanceMapUnitScale" value="0,0,0,0,0,0"/>
121+
<property key="labeling/repeatDistanceUnit" value="1"/>
122+
<property key="labeling/reverseDirectionSymbol" value="false"/>
123+
<property key="labeling/rightDirectionSymbol" value=">"/>
124+
<property key="labeling/scaleMax" value="10000000"/>
125+
<property key="labeling/scaleMin" value="1"/>
126+
<property key="labeling/scaleVisibility" value="false"/>
127+
<property key="labeling/shadowBlendMode" value="6"/>
128+
<property key="labeling/shadowColorB" value="0"/>
129+
<property key="labeling/shadowColorG" value="0"/>
130+
<property key="labeling/shadowColorR" value="0"/>
131+
<property key="labeling/shadowDraw" value="false"/>
132+
<property key="labeling/shadowOffsetAngle" value="135"/>
133+
<property key="labeling/shadowOffsetDist" value="1"/>
134+
<property key="labeling/shadowOffsetGlobal" value="true"/>
135+
<property key="labeling/shadowOffsetMapUnitMaxScale" value="0"/>
136+
<property key="labeling/shadowOffsetMapUnitMinScale" value="0"/>
137+
<property key="labeling/shadowOffsetMapUnitScale" value="0,0,0,0,0,0"/>
138+
<property key="labeling/shadowOffsetUnits" value="1"/>
139+
<property key="labeling/shadowRadius" value="1.5"/>
140+
<property key="labeling/shadowRadiusAlphaOnly" value="false"/>
141+
<property key="labeling/shadowRadiusMapUnitMaxScale" value="0"/>
142+
<property key="labeling/shadowRadiusMapUnitMinScale" value="0"/>
143+
<property key="labeling/shadowRadiusMapUnitScale" value="0,0,0,0,0,0"/>
144+
<property key="labeling/shadowRadiusUnits" value="1"/>
145+
<property key="labeling/shadowScale" value="100"/>
146+
<property key="labeling/shadowTransparency" value="30"/>
147+
<property key="labeling/shadowUnder" value="0"/>
148+
<property key="labeling/shapeBlendMode" value="0"/>
149+
<property key="labeling/shapeBorderColorA" value="255"/>
150+
<property key="labeling/shapeBorderColorB" value="128"/>
151+
<property key="labeling/shapeBorderColorG" value="128"/>
152+
<property key="labeling/shapeBorderColorR" value="128"/>
153+
<property key="labeling/shapeBorderWidth" value="0"/>
154+
<property key="labeling/shapeBorderWidthMapUnitMaxScale" value="0"/>
155+
<property key="labeling/shapeBorderWidthMapUnitMinScale" value="0"/>
156+
<property key="labeling/shapeBorderWidthMapUnitScale" value="0,0,0,0,0,0"/>
157+
<property key="labeling/shapeBorderWidthUnits" value="1"/>
158+
<property key="labeling/shapeDraw" value="false"/>
159+
<property key="labeling/shapeFillColorA" value="255"/>
160+
<property key="labeling/shapeFillColorB" value="255"/>
161+
<property key="labeling/shapeFillColorG" value="255"/>
162+
<property key="labeling/shapeFillColorR" value="255"/>
163+
<property key="labeling/shapeJoinStyle" value="64"/>
164+
<property key="labeling/shapeOffsetMapUnitMaxScale" value="0"/>
165+
<property key="labeling/shapeOffsetMapUnitMinScale" value="0"/>
166+
<property key="labeling/shapeOffsetMapUnitScale" value="0,0,0,0,0,0"/>
167+
<property key="labeling/shapeOffsetUnits" value="1"/>
168+
<property key="labeling/shapeOffsetX" value="0"/>
169+
<property key="labeling/shapeOffsetY" value="0"/>
170+
<property key="labeling/shapeRadiiMapUnitMaxScale" value="0"/>
171+
<property key="labeling/shapeRadiiMapUnitMinScale" value="0"/>
172+
<property key="labeling/shapeRadiiMapUnitScale" value="0,0,0,0,0,0"/>
173+
<property key="labeling/shapeRadiiUnits" value="1"/>
174+
<property key="labeling/shapeRadiiX" value="0"/>
175+
<property key="labeling/shapeRadiiY" value="0"/>
176+
<property key="labeling/shapeRotation" value="0"/>
177+
<property key="labeling/shapeRotationType" value="0"/>
178+
<property key="labeling/shapeSVGFile" value=""/>
179+
<property key="labeling/shapeSizeMapUnitMaxScale" value="0"/>
180+
<property key="labeling/shapeSizeMapUnitMinScale" value="0"/>
181+
<property key="labeling/shapeSizeMapUnitScale" value="0,0,0,0,0,0"/>
182+
<property key="labeling/shapeSizeType" value="0"/>
183+
<property key="labeling/shapeSizeUnits" value="1"/>
184+
<property key="labeling/shapeSizeX" value="0"/>
185+
<property key="labeling/shapeSizeY" value="0"/>
186+
<property key="labeling/shapeTransparency" value="0"/>
187+
<property key="labeling/shapeType" value="0"/>
188+
<property key="labeling/textColorA" value="255"/>
189+
<property key="labeling/textColorB" value="0"/>
190+
<property key="labeling/textColorG" value="0"/>
191+
<property key="labeling/textColorR" value="0"/>
192+
<property key="labeling/textTransp" value="0"/>
193+
<property key="labeling/upsidedownLabels" value="0"/>
194+
<property key="labeling/wrapChar" value=""/>
195+
<property key="labeling/xOffset" value="0"/>
196+
<property key="labeling/yOffset" value="0"/>
197+
<property key="labeling/zIndex" value="0"/>
198+
<property key="variableNames" value="_fields_"/>
199+
<property key="variableValues" value=""/>
200+
</customproperties>
201+
<blendMode>0</blendMode>
202+
<featureBlendMode>0</featureBlendMode>
203+
<layerTransparency>0</layerTransparency>
204+
<SingleCategoryDiagramRenderer diagramType="Histogram" sizeLegend="0" attributeLegend="1">
205+
<DiagramCategory penColor="#000000" labelPlacementMethod="XHeight" penWidth="0" diagramOrientation="Up" sizeScale="0,0,0,0,0,0" minimumSize="0" barWidth="5" penAlpha="255" maxScaleDenominator="1e+08" backgroundColor="#ffffff" transparency="0" width="15" scaleDependency="Area" backgroundAlpha="255" angleOffset="1440" scaleBasedVisibility="0" enabled="0" height="15" lineSizeScale="0,0,0,0,0,0" sizeType="MM" lineSizeType="MM" minScaleDenominator="100000">
206+
<fontProperties description="Ubuntu,11,-1,5,50,0,0,0,0,0" style=""/>
207+
<attribute field="" color="#000000" label=""/>
208+
</DiagramCategory>
209+
<symbol alpha="1" clip_to_extent="1" type="marker" name="sizeSymbol">
210+
<layer pass="0" class="SimpleMarker" locked="0">
211+
<prop k="angle" v="0"/>
212+
<prop k="color" v="255,0,0,255"/>
213+
<prop k="horizontal_anchor_point" v="1"/>
214+
<prop k="joinstyle" v="bevel"/>
215+
<prop k="name" v="circle"/>
216+
<prop k="offset" v="0,0"/>
217+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
218+
<prop k="offset_unit" v="MM"/>
219+
<prop k="outline_color" v="0,0,0,255"/>
220+
<prop k="outline_style" v="solid"/>
221+
<prop k="outline_width" v="0"/>
222+
<prop k="outline_width_map_unit_scale" v="0,0,0,0,0,0"/>
223+
<prop k="outline_width_unit" v="MM"/>
224+
<prop k="scale_method" v="diameter"/>
225+
<prop k="size" v="2"/>
226+
<prop k="size_map_unit_scale" v="0,0,0,0,0,0"/>
227+
<prop k="size_unit" v="MM"/>
228+
<prop k="vertical_anchor_point" v="1"/>
229+
</layer>
230+
</symbol>
231+
</SingleCategoryDiagramRenderer>
232+
<DiagramLayerSettings yPosColumn="-1" showColumn="-1" linePlacementFlags="10" placement="2" dist="0" xPosColumn="-1" priority="0" obstacle="0" zIndex="0" showAll="1"/>
233+
<annotationform></annotationform>
234+
<excludeAttributesWMS/>
235+
<excludeAttributesWFS/>
236+
<attributeactions default="-1"/>
237+
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
238+
<columns>
239+
<column width="-1" hidden="0" type="field" name="pkuid"/>
240+
<column width="-1" hidden="0" type="field" name="text"/>
241+
<column width="-1" hidden="1" type="actions"/>
242+
</columns>
243+
</attributetableconfig>
244+
<editform></editform>
245+
<editforminit/>
246+
<editforminitcodesource>0</editforminitcodesource>
247+
<editforminitfilepath></editforminitfilepath>
248+
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
249+
"""
250+
QGIS forms can have a Python function that is called when the form is
251+
opened.
252+
253+
Use this function to add extra logic to your forms.
254+
255+
Enter the name of the function in the "Python Init function"
256+
field.
257+
An example follows:
258+
"""
259+
from qgis.PyQt.QtWidgets import QWidget
260+
261+
def my_form_open(dialog, layer, feature):
262+
geom = feature.geometry()
263+
control = dialog.findChild(QWidget, "MyLineEdit")
264+
]]></editforminitcode>
265+
<featformsuppress>0</featformsuppress>
266+
<editorlayout>generatedlayout</editorlayout>
267+
<widgets/>
268+
<conditionalstyles>
269+
<rowstyles/>
270+
<fieldstyles/>
271+
</conditionalstyles>
272+
<layerGeometryType>1</layerGeometryType>
273+
</qgis>
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="2.99.0-Master" simplifyAlgorithm="0" minimumScale="100000" maximumScale="1e+08" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1">
3+
<edittypes>
4+
<edittype widgetv2type="TextEdit" name="pkuid">
5+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
6+
</edittype>
7+
<edittype widgetv2type="TextEdit" name="text">
8+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
9+
</edittype>
10+
</edittypes>
11+
<renderer-v2 forceraster="0" symbollevels="0" type="singleSymbol" enableorderby="0">
12+
<symbols>
13+
<symbol alpha="1" clip_to_extent="1" type="line" name="0">
14+
<layer pass="0" class="SimpleLine" locked="0">
15+
<prop k="capstyle" v="square"/>
16+
<prop k="customdash" v="5;2"/>
17+
<prop k="customdash_map_unit_scale" v="0,0,0,0,0,0"/>
18+
<prop k="customdash_unit" v="MM"/>
19+
<prop k="draw_inside_polygon" v="0"/>
20+
<prop k="joinstyle" v="bevel"/>
21+
<prop k="line_color" v="227,26,28,255"/>
22+
<prop k="line_style" v="solid"/>
23+
<prop k="line_width" v="0.5"/>
24+
<prop k="line_width_unit" v="MM"/>
25+
<prop k="offset" v="0"/>
26+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
27+
<prop k="offset_unit" v="MM"/>
28+
<prop k="use_custom_dash" v="0"/>
29+
<prop k="width_map_unit_scale" v="0,0,0,0,0,0"/>
30+
</layer>
31+
</symbol>
32+
</symbols>
33+
<rotation/>
34+
<sizescale scalemethod="diameter"/>
35+
</renderer-v2>
36+
<labeling type="simple"/>
37+
<customproperties>
38+
<property key="embeddedWidgets/count" value="0"/>
39+
<property key="labeling" value="pal"/>
40+
<property key="labeling/addDirectionSymbol" value="false"/>
41+
<property key="labeling/angleOffset" value="0"/>
42+
<property key="labeling/blendMode" value="0"/>
43+
<property key="labeling/bufferBlendMode" value="0"/>
44+
<property key="labeling/bufferColorA" value="255"/>
45+
<property key="labeling/bufferColorB" value="255"/>
46+
<property key="labeling/bufferColorG" value="255"/>
47+
<property key="labeling/bufferColorR" value="255"/>
48+
<property key="labeling/bufferDraw" value="false"/>
49+
<property key="labeling/bufferJoinStyle" value="64"/>
50+
<property key="labeling/bufferNoFill" value="false"/>
51+
<property key="labeling/bufferSize" value="1"/>
52+
<property key="labeling/bufferSizeInMapUnits" value="false"/>
53+
<property key="labeling/bufferSizeMapUnitMaxScale" value="0"/>
54+
<property key="labeling/bufferSizeMapUnitMinScale" value="0"/>
55+
<property key="labeling/bufferSizeMapUnitScale" value="0,0,0,0,0,0"/>
56+
<property key="labeling/bufferTransp" value="0"/>
57+
<property key="labeling/centroidInside" value="false"/>
58+
<property key="labeling/centroidWhole" value="false"/>
59+
<property key="labeling/decimals" value="3"/>
60+
<property key="labeling/displayAll" value="false"/>
61+
<property key="labeling/dist" value="0"/>
62+
<property key="labeling/distInMapUnits" value="false"/>
63+
<property key="labeling/distMapUnitMaxScale" value="0"/>
64+
<property key="labeling/distMapUnitMinScale" value="0"/>
65+
<property key="labeling/distMapUnitScale" value="0,0,0,0,0,0"/>
66+
<property key="labeling/drawLabels" value="false"/>
67+
<property key="labeling/enabled" value="false"/>
68+
<property key="labeling/fieldName" value=""/>
69+
<property key="labeling/fitInPolygonOnly" value="false"/>
70+
<property key="labeling/fontBold" value="false"/>
71+
<property key="labeling/fontCapitals" value="0"/>
72+
<property key="labeling/fontFamily" value="Ubuntu"/>
73+
<property key="labeling/fontItalic" value="false"/>
74+
<property key="labeling/fontLetterSpacing" value="0"/>
75+
<property key="labeling/fontLimitPixelSize" value="false"/>
76+
<property key="labeling/fontMaxPixelSize" value="10000"/>
77+
<property key="labeling/fontMinPixelSize" value="3"/>
78+
<property key="labeling/fontSize" value="11"/>
79+
<property key="labeling/fontSizeInMapUnits" value="false"/>
80+
<property key="labeling/fontSizeMapUnitMaxScale" value="0"/>
81+
<property key="labeling/fontSizeMapUnitMinScale" value="0"/>
82+
<property key="labeling/fontSizeMapUnitScale" value="0,0,0,0,0,0"/>
83+
<property key="labeling/fontStrikeout" value="false"/>
84+
<property key="labeling/fontUnderline" value="false"/>
85+
<property key="labeling/fontWeight" value="63"/>
86+
<property key="labeling/fontWordSpacing" value="0"/>
87+
<property key="labeling/formatNumbers" value="false"/>
88+
<property key="labeling/isExpression" value="true"/>
89+
<property key="labeling/labelOffsetInMapUnits" value="true"/>
90+
<property key="labeling/labelOffsetMapUnitMaxScale" value="0"/>
91+
<property key="labeling/labelOffsetMapUnitMinScale" value="0"/>
92+
<property key="labeling/labelOffsetMapUnitScale" value="0,0,0,0,0,0"/>
93+
<property key="labeling/labelPerPart" value="false"/>
94+
<property key="labeling/leftDirectionSymbol" value="&lt;"/>
95+
<property key="labeling/limitNumLabels" value="false"/>
96+
<property key="labeling/maxCurvedCharAngleIn" value="20"/>
97+
<property key="labeling/maxCurvedCharAngleOut" value="-20"/>
98+
<property key="labeling/maxNumLabels" value="2000"/>
99+
<property key="labeling/mergeLines" value="false"/>
100+
<property key="labeling/minFeatureSize" value="0"/>
101+
<property key="labeling/multilineAlign" value="0"/>
102+
<property key="labeling/multilineHeight" value="1"/>
103+
<property key="labeling/namedStyle" value="Medium"/>
104+
<property key="labeling/obstacle" value="true"/>
105+
<property key="labeling/obstacleFactor" value="1"/>
106+
<property key="labeling/obstacleType" value="0"/>
107+
<property key="labeling/offsetType" value="0"/>
108+
<property key="labeling/placeDirectionSymbol" value="0"/>
109+
<property key="labeling/placement" value="2"/>
110+
<property key="labeling/placementFlags" value="10"/>
111+
<property key="labeling/plussign" value="false"/>
112+
<property key="labeling/predefinedPositionOrder" value="TR,TL,BR,BL,R,L,TSR,BSR"/>
113+
<property key="labeling/preserveRotation" value="true"/>
114+
<property key="labeling/previewBkgrdColor" value="#ffffff"/>
115+
<property key="labeling/priority" value="5"/>
116+
<property key="labeling/quadOffset" value="4"/>
117+
<property key="labeling/repeatDistance" value="0"/>
118+
<property key="labeling/repeatDistanceMapUnitMaxScale" value="0"/>
119+
<property key="labeling/repeatDistanceMapUnitMinScale" value="0"/>
120+
<property key="labeling/repeatDistanceMapUnitScale" value="0,0,0,0,0,0"/>
121+
<property key="labeling/repeatDistanceUnit" value="1"/>
122+
<property key="labeling/reverseDirectionSymbol" value="false"/>
123+
<property key="labeling/rightDirectionSymbol" value=">"/>
124+
<property key="labeling/scaleMax" value="10000000"/>
125+
<property key="labeling/scaleMin" value="1"/>
126+
<property key="labeling/scaleVisibility" value="false"/>
127+
<property key="labeling/shadowBlendMode" value="6"/>
128+
<property key="labeling/shadowColorB" value="0"/>
129+
<property key="labeling/shadowColorG" value="0"/>
130+
<property key="labeling/shadowColorR" value="0"/>
131+
<property key="labeling/shadowDraw" value="false"/>
132+
<property key="labeling/shadowOffsetAngle" value="135"/>
133+
<property key="labeling/shadowOffsetDist" value="1"/>
134+
<property key="labeling/shadowOffsetGlobal" value="true"/>
135+
<property key="labeling/shadowOffsetMapUnitMaxScale" value="0"/>
136+
<property key="labeling/shadowOffsetMapUnitMinScale" value="0"/>
137+
<property key="labeling/shadowOffsetMapUnitScale" value="0,0,0,0,0,0"/>
138+
<property key="labeling/shadowOffsetUnits" value="1"/>
139+
<property key="labeling/shadowRadius" value="1.5"/>
140+
<property key="labeling/shadowRadiusAlphaOnly" value="false"/>
141+
<property key="labeling/shadowRadiusMapUnitMaxScale" value="0"/>
142+
<property key="labeling/shadowRadiusMapUnitMinScale" value="0"/>
143+
<property key="labeling/shadowRadiusMapUnitScale" value="0,0,0,0,0,0"/>
144+
<property key="labeling/shadowRadiusUnits" value="1"/>
145+
<property key="labeling/shadowScale" value="100"/>
146+
<property key="labeling/shadowTransparency" value="30"/>
147+
<property key="labeling/shadowUnder" value="0"/>
148+
<property key="labeling/shapeBlendMode" value="0"/>
149+
<property key="labeling/shapeBorderColorA" value="255"/>
150+
<property key="labeling/shapeBorderColorB" value="128"/>
151+
<property key="labeling/shapeBorderColorG" value="128"/>
152+
<property key="labeling/shapeBorderColorR" value="128"/>
153+
<property key="labeling/shapeBorderWidth" value="0"/>
154+
<property key="labeling/shapeBorderWidthMapUnitMaxScale" value="0"/>
155+
<property key="labeling/shapeBorderWidthMapUnitMinScale" value="0"/>
156+
<property key="labeling/shapeBorderWidthMapUnitScale" value="0,0,0,0,0,0"/>
157+
<property key="labeling/shapeBorderWidthUnits" value="1"/>
158+
<property key="labeling/shapeDraw" value="false"/>
159+
<property key="labeling/shapeFillColorA" value="255"/>
160+
<property key="labeling/shapeFillColorB" value="255"/>
161+
<property key="labeling/shapeFillColorG" value="255"/>
162+
<property key="labeling/shapeFillColorR" value="255"/>
163+
<property key="labeling/shapeJoinStyle" value="64"/>
164+
<property key="labeling/shapeOffsetMapUnitMaxScale" value="0"/>
165+
<property key="labeling/shapeOffsetMapUnitMinScale" value="0"/>
166+
<property key="labeling/shapeOffsetMapUnitScale" value="0,0,0,0,0,0"/>
167+
<property key="labeling/shapeOffsetUnits" value="1"/>
168+
<property key="labeling/shapeOffsetX" value="0"/>
169+
<property key="labeling/shapeOffsetY" value="0"/>
170+
<property key="labeling/shapeRadiiMapUnitMaxScale" value="0"/>
171+
<property key="labeling/shapeRadiiMapUnitMinScale" value="0"/>
172+
<property key="labeling/shapeRadiiMapUnitScale" value="0,0,0,0,0,0"/>
173+
<property key="labeling/shapeRadiiUnits" value="1"/>
174+
<property key="labeling/shapeRadiiX" value="0"/>
175+
<property key="labeling/shapeRadiiY" value="0"/>
176+
<property key="labeling/shapeRotation" value="0"/>
177+
<property key="labeling/shapeRotationType" value="0"/>
178+
<property key="labeling/shapeSVGFile" value=""/>
179+
<property key="labeling/shapeSizeMapUnitMaxScale" value="0"/>
180+
<property key="labeling/shapeSizeMapUnitMinScale" value="0"/>
181+
<property key="labeling/shapeSizeMapUnitScale" value="0,0,0,0,0,0"/>
182+
<property key="labeling/shapeSizeType" value="0"/>
183+
<property key="labeling/shapeSizeUnits" value="1"/>
184+
<property key="labeling/shapeSizeX" value="0"/>
185+
<property key="labeling/shapeSizeY" value="0"/>
186+
<property key="labeling/shapeTransparency" value="0"/>
187+
<property key="labeling/shapeType" value="0"/>
188+
<property key="labeling/textColorA" value="255"/>
189+
<property key="labeling/textColorB" value="0"/>
190+
<property key="labeling/textColorG" value="0"/>
191+
<property key="labeling/textColorR" value="0"/>
192+
<property key="labeling/textTransp" value="0"/>
193+
<property key="labeling/upsidedownLabels" value="0"/>
194+
<property key="labeling/wrapChar" value=""/>
195+
<property key="labeling/xOffset" value="0"/>
196+
<property key="labeling/yOffset" value="0"/>
197+
<property key="labeling/zIndex" value="0"/>
198+
<property key="variableNames" value="_fields_"/>
199+
<property key="variableValues" value=""/>
200+
</customproperties>
201+
<blendMode>0</blendMode>
202+
<featureBlendMode>0</featureBlendMode>
203+
<layerTransparency>0</layerTransparency>
204+
<SingleCategoryDiagramRenderer diagramType="Histogram" sizeLegend="0" attributeLegend="1">
205+
<DiagramCategory penColor="#000000" labelPlacementMethod="XHeight" penWidth="0" diagramOrientation="Up" sizeScale="0,0,0,0,0,0" minimumSize="0" barWidth="5" penAlpha="255" maxScaleDenominator="1e+08" backgroundColor="#ffffff" transparency="0" width="15" scaleDependency="Area" backgroundAlpha="255" angleOffset="1440" scaleBasedVisibility="0" enabled="0" height="15" lineSizeScale="0,0,0,0,0,0" sizeType="MM" lineSizeType="MM" minScaleDenominator="100000">
206+
<fontProperties description="Ubuntu,11,-1,5,50,0,0,0,0,0" style=""/>
207+
<attribute field="" color="#000000" label=""/>
208+
</DiagramCategory>
209+
<symbol alpha="1" clip_to_extent="1" type="marker" name="sizeSymbol">
210+
<layer pass="0" class="SimpleMarker" locked="0">
211+
<prop k="angle" v="0"/>
212+
<prop k="color" v="255,0,0,255"/>
213+
<prop k="horizontal_anchor_point" v="1"/>
214+
<prop k="joinstyle" v="bevel"/>
215+
<prop k="name" v="circle"/>
216+
<prop k="offset" v="0,0"/>
217+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
218+
<prop k="offset_unit" v="MM"/>
219+
<prop k="outline_color" v="0,0,0,255"/>
220+
<prop k="outline_style" v="solid"/>
221+
<prop k="outline_width" v="0"/>
222+
<prop k="outline_width_map_unit_scale" v="0,0,0,0,0,0"/>
223+
<prop k="outline_width_unit" v="MM"/>
224+
<prop k="scale_method" v="diameter"/>
225+
<prop k="size" v="2"/>
226+
<prop k="size_map_unit_scale" v="0,0,0,0,0,0"/>
227+
<prop k="size_unit" v="MM"/>
228+
<prop k="vertical_anchor_point" v="1"/>
229+
</layer>
230+
</symbol>
231+
</SingleCategoryDiagramRenderer>
232+
<DiagramLayerSettings yPosColumn="-1" showColumn="-1" linePlacementFlags="10" placement="2" dist="0" xPosColumn="-1" priority="0" obstacle="0" zIndex="0" showAll="1"/>
233+
<annotationform></annotationform>
234+
<excludeAttributesWMS/>
235+
<excludeAttributesWFS/>
236+
<attributeactions default="-1"/>
237+
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
238+
<columns>
239+
<column width="-1" hidden="0" type="field" name="pkuid"/>
240+
<column width="-1" hidden="0" type="field" name="text"/>
241+
<column width="-1" hidden="1" type="actions"/>
242+
</columns>
243+
</attributetableconfig>
244+
<editform></editform>
245+
<editforminit/>
246+
<editforminitcodesource>0</editforminitcodesource>
247+
<editforminitfilepath></editforminitfilepath>
248+
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
249+
"""
250+
QGIS forms can have a Python function that is called when the form is
251+
opened.
252+
253+
Use this function to add extra logic to your forms.
254+
255+
Enter the name of the function in the "Python Init function"
256+
field.
257+
An example follows:
258+
"""
259+
from qgis.PyQt.QtWidgets import QWidget
260+
261+
def my_form_open(dialog, layer, feature):
262+
geom = feature.geometry()
263+
control = dialog.findChild(QWidget, "MyLineEdit")
264+
]]></editforminitcode>
265+
<featformsuppress>0</featformsuppress>
266+
<editorlayout>generatedlayout</editorlayout>
267+
<widgets/>
268+
<conditionalstyles>
269+
<rowstyles/>
270+
<fieldstyles/>
271+
</conditionalstyles>
272+
<layerGeometryType>1</layerGeometryType>
273+
</qgis>
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="2.99.0-Master" simplifyAlgorithm="0" minimumScale="100000" maximumScale="1e+08" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1">
3+
<edittypes>
4+
<edittype widgetv2type="TextEdit" name="pkuid">
5+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
6+
</edittype>
7+
<edittype widgetv2type="TextEdit" name="text">
8+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
9+
</edittype>
10+
</edittypes>
11+
<renderer-v2 forceraster="0" symbollevels="0" type="singleSymbol" enableorderby="0">
12+
<symbols>
13+
<symbol alpha="1" clip_to_extent="1" type="line" name="0">
14+
<layer pass="0" class="SimpleLine" locked="0">
15+
<prop k="capstyle" v="square"/>
16+
<prop k="customdash" v="5;2"/>
17+
<prop k="customdash_map_unit_scale" v="0,0,0,0,0,0"/>
18+
<prop k="customdash_unit" v="MM"/>
19+
<prop k="draw_inside_polygon" v="0"/>
20+
<prop k="joinstyle" v="bevel"/>
21+
<prop k="line_color" v="227,26,28,255"/>
22+
<prop k="line_style" v="solid"/>
23+
<prop k="line_width" v="0.5"/>
24+
<prop k="line_width_unit" v="MM"/>
25+
<prop k="offset" v="0"/>
26+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
27+
<prop k="offset_unit" v="MM"/>
28+
<prop k="use_custom_dash" v="0"/>
29+
<prop k="width_map_unit_scale" v="0,0,0,0,0,0"/>
30+
</layer>
31+
</symbol>
32+
</symbols>
33+
<rotation/>
34+
<sizescale scalemethod="diameter"/>
35+
</renderer-v2>
36+
<labeling type="simple"/>
37+
<customproperties>
38+
<property key="embeddedWidgets/count" value="0"/>
39+
<property key="labeling" value="pal"/>
40+
<property key="labeling/addDirectionSymbol" value="false"/>
41+
<property key="labeling/angleOffset" value="0"/>
42+
<property key="labeling/blendMode" value="0"/>
43+
<property key="labeling/bufferBlendMode" value="0"/>
44+
<property key="labeling/bufferColorA" value="255"/>
45+
<property key="labeling/bufferColorB" value="255"/>
46+
<property key="labeling/bufferColorG" value="255"/>
47+
<property key="labeling/bufferColorR" value="255"/>
48+
<property key="labeling/bufferDraw" value="false"/>
49+
<property key="labeling/bufferJoinStyle" value="64"/>
50+
<property key="labeling/bufferNoFill" value="false"/>
51+
<property key="labeling/bufferSize" value="1"/>
52+
<property key="labeling/bufferSizeInMapUnits" value="false"/>
53+
<property key="labeling/bufferSizeMapUnitMaxScale" value="0"/>
54+
<property key="labeling/bufferSizeMapUnitMinScale" value="0"/>
55+
<property key="labeling/bufferSizeMapUnitScale" value="0,0,0,0,0,0"/>
56+
<property key="labeling/bufferTransp" value="0"/>
57+
<property key="labeling/centroidInside" value="false"/>
58+
<property key="labeling/centroidWhole" value="false"/>
59+
<property key="labeling/decimals" value="3"/>
60+
<property key="labeling/displayAll" value="false"/>
61+
<property key="labeling/dist" value="0"/>
62+
<property key="labeling/distInMapUnits" value="false"/>
63+
<property key="labeling/distMapUnitMaxScale" value="0"/>
64+
<property key="labeling/distMapUnitMinScale" value="0"/>
65+
<property key="labeling/distMapUnitScale" value="0,0,0,0,0,0"/>
66+
<property key="labeling/drawLabels" value="false"/>
67+
<property key="labeling/enabled" value="false"/>
68+
<property key="labeling/fieldName" value=""/>
69+
<property key="labeling/fitInPolygonOnly" value="false"/>
70+
<property key="labeling/fontBold" value="false"/>
71+
<property key="labeling/fontCapitals" value="0"/>
72+
<property key="labeling/fontFamily" value="Ubuntu"/>
73+
<property key="labeling/fontItalic" value="false"/>
74+
<property key="labeling/fontLetterSpacing" value="0"/>
75+
<property key="labeling/fontLimitPixelSize" value="false"/>
76+
<property key="labeling/fontMaxPixelSize" value="10000"/>
77+
<property key="labeling/fontMinPixelSize" value="3"/>
78+
<property key="labeling/fontSize" value="11"/>
79+
<property key="labeling/fontSizeInMapUnits" value="false"/>
80+
<property key="labeling/fontSizeMapUnitMaxScale" value="0"/>
81+
<property key="labeling/fontSizeMapUnitMinScale" value="0"/>
82+
<property key="labeling/fontSizeMapUnitScale" value="0,0,0,0,0,0"/>
83+
<property key="labeling/fontStrikeout" value="false"/>
84+
<property key="labeling/fontUnderline" value="false"/>
85+
<property key="labeling/fontWeight" value="63"/>
86+
<property key="labeling/fontWordSpacing" value="0"/>
87+
<property key="labeling/formatNumbers" value="false"/>
88+
<property key="labeling/isExpression" value="true"/>
89+
<property key="labeling/labelOffsetInMapUnits" value="true"/>
90+
<property key="labeling/labelOffsetMapUnitMaxScale" value="0"/>
91+
<property key="labeling/labelOffsetMapUnitMinScale" value="0"/>
92+
<property key="labeling/labelOffsetMapUnitScale" value="0,0,0,0,0,0"/>
93+
<property key="labeling/labelPerPart" value="false"/>
94+
<property key="labeling/leftDirectionSymbol" value="&lt;"/>
95+
<property key="labeling/limitNumLabels" value="false"/>
96+
<property key="labeling/maxCurvedCharAngleIn" value="20"/>
97+
<property key="labeling/maxCurvedCharAngleOut" value="-20"/>
98+
<property key="labeling/maxNumLabels" value="2000"/>
99+
<property key="labeling/mergeLines" value="false"/>
100+
<property key="labeling/minFeatureSize" value="0"/>
101+
<property key="labeling/multilineAlign" value="0"/>
102+
<property key="labeling/multilineHeight" value="1"/>
103+
<property key="labeling/namedStyle" value="Medium"/>
104+
<property key="labeling/obstacle" value="true"/>
105+
<property key="labeling/obstacleFactor" value="1"/>
106+
<property key="labeling/obstacleType" value="0"/>
107+
<property key="labeling/offsetType" value="0"/>
108+
<property key="labeling/placeDirectionSymbol" value="0"/>
109+
<property key="labeling/placement" value="2"/>
110+
<property key="labeling/placementFlags" value="10"/>
111+
<property key="labeling/plussign" value="false"/>
112+
<property key="labeling/predefinedPositionOrder" value="TR,TL,BR,BL,R,L,TSR,BSR"/>
113+
<property key="labeling/preserveRotation" value="true"/>
114+
<property key="labeling/previewBkgrdColor" value="#ffffff"/>
115+
<property key="labeling/priority" value="5"/>
116+
<property key="labeling/quadOffset" value="4"/>
117+
<property key="labeling/repeatDistance" value="0"/>
118+
<property key="labeling/repeatDistanceMapUnitMaxScale" value="0"/>
119+
<property key="labeling/repeatDistanceMapUnitMinScale" value="0"/>
120+
<property key="labeling/repeatDistanceMapUnitScale" value="0,0,0,0,0,0"/>
121+
<property key="labeling/repeatDistanceUnit" value="1"/>
122+
<property key="labeling/reverseDirectionSymbol" value="false"/>
123+
<property key="labeling/rightDirectionSymbol" value=">"/>
124+
<property key="labeling/scaleMax" value="10000000"/>
125+
<property key="labeling/scaleMin" value="1"/>
126+
<property key="labeling/scaleVisibility" value="false"/>
127+
<property key="labeling/shadowBlendMode" value="6"/>
128+
<property key="labeling/shadowColorB" value="0"/>
129+
<property key="labeling/shadowColorG" value="0"/>
130+
<property key="labeling/shadowColorR" value="0"/>
131+
<property key="labeling/shadowDraw" value="false"/>
132+
<property key="labeling/shadowOffsetAngle" value="135"/>
133+
<property key="labeling/shadowOffsetDist" value="1"/>
134+
<property key="labeling/shadowOffsetGlobal" value="true"/>
135+
<property key="labeling/shadowOffsetMapUnitMaxScale" value="0"/>
136+
<property key="labeling/shadowOffsetMapUnitMinScale" value="0"/>
137+
<property key="labeling/shadowOffsetMapUnitScale" value="0,0,0,0,0,0"/>
138+
<property key="labeling/shadowOffsetUnits" value="1"/>
139+
<property key="labeling/shadowRadius" value="1.5"/>
140+
<property key="labeling/shadowRadiusAlphaOnly" value="false"/>
141+
<property key="labeling/shadowRadiusMapUnitMaxScale" value="0"/>
142+
<property key="labeling/shadowRadiusMapUnitMinScale" value="0"/>
143+
<property key="labeling/shadowRadiusMapUnitScale" value="0,0,0,0,0,0"/>
144+
<property key="labeling/shadowRadiusUnits" value="1"/>
145+
<property key="labeling/shadowScale" value="100"/>
146+
<property key="labeling/shadowTransparency" value="30"/>
147+
<property key="labeling/shadowUnder" value="0"/>
148+
<property key="labeling/shapeBlendMode" value="0"/>
149+
<property key="labeling/shapeBorderColorA" value="255"/>
150+
<property key="labeling/shapeBorderColorB" value="128"/>
151+
<property key="labeling/shapeBorderColorG" value="128"/>
152+
<property key="labeling/shapeBorderColorR" value="128"/>
153+
<property key="labeling/shapeBorderWidth" value="0"/>
154+
<property key="labeling/shapeBorderWidthMapUnitMaxScale" value="0"/>
155+
<property key="labeling/shapeBorderWidthMapUnitMinScale" value="0"/>
156+
<property key="labeling/shapeBorderWidthMapUnitScale" value="0,0,0,0,0,0"/>
157+
<property key="labeling/shapeBorderWidthUnits" value="1"/>
158+
<property key="labeling/shapeDraw" value="false"/>
159+
<property key="labeling/shapeFillColorA" value="255"/>
160+
<property key="labeling/shapeFillColorB" value="255"/>
161+
<property key="labeling/shapeFillColorG" value="255"/>
162+
<property key="labeling/shapeFillColorR" value="255"/>
163+
<property key="labeling/shapeJoinStyle" value="64"/>
164+
<property key="labeling/shapeOffsetMapUnitMaxScale" value="0"/>
165+
<property key="labeling/shapeOffsetMapUnitMinScale" value="0"/>
166+
<property key="labeling/shapeOffsetMapUnitScale" value="0,0,0,0,0,0"/>
167+
<property key="labeling/shapeOffsetUnits" value="1"/>
168+
<property key="labeling/shapeOffsetX" value="0"/>
169+
<property key="labeling/shapeOffsetY" value="0"/>
170+
<property key="labeling/shapeRadiiMapUnitMaxScale" value="0"/>
171+
<property key="labeling/shapeRadiiMapUnitMinScale" value="0"/>
172+
<property key="labeling/shapeRadiiMapUnitScale" value="0,0,0,0,0,0"/>
173+
<property key="labeling/shapeRadiiUnits" value="1"/>
174+
<property key="labeling/shapeRadiiX" value="0"/>
175+
<property key="labeling/shapeRadiiY" value="0"/>
176+
<property key="labeling/shapeRotation" value="0"/>
177+
<property key="labeling/shapeRotationType" value="0"/>
178+
<property key="labeling/shapeSVGFile" value=""/>
179+
<property key="labeling/shapeSizeMapUnitMaxScale" value="0"/>
180+
<property key="labeling/shapeSizeMapUnitMinScale" value="0"/>
181+
<property key="labeling/shapeSizeMapUnitScale" value="0,0,0,0,0,0"/>
182+
<property key="labeling/shapeSizeType" value="0"/>
183+
<property key="labeling/shapeSizeUnits" value="1"/>
184+
<property key="labeling/shapeSizeX" value="0"/>
185+
<property key="labeling/shapeSizeY" value="0"/>
186+
<property key="labeling/shapeTransparency" value="0"/>
187+
<property key="labeling/shapeType" value="0"/>
188+
<property key="labeling/textColorA" value="255"/>
189+
<property key="labeling/textColorB" value="0"/>
190+
<property key="labeling/textColorG" value="0"/>
191+
<property key="labeling/textColorR" value="0"/>
192+
<property key="labeling/textTransp" value="0"/>
193+
<property key="labeling/upsidedownLabels" value="0"/>
194+
<property key="labeling/wrapChar" value=""/>
195+
<property key="labeling/xOffset" value="0"/>
196+
<property key="labeling/yOffset" value="0"/>
197+
<property key="labeling/zIndex" value="0"/>
198+
<property key="variableNames" value="_fields_"/>
199+
<property key="variableValues" value=""/>
200+
</customproperties>
201+
<blendMode>0</blendMode>
202+
<featureBlendMode>0</featureBlendMode>
203+
<layerTransparency>0</layerTransparency>
204+
<SingleCategoryDiagramRenderer diagramType="Histogram" sizeLegend="0" attributeLegend="1">
205+
<DiagramCategory penColor="#000000" labelPlacementMethod="XHeight" penWidth="0" diagramOrientation="Up" sizeScale="0,0,0,0,0,0" minimumSize="0" barWidth="5" penAlpha="255" maxScaleDenominator="1e+08" backgroundColor="#ffffff" transparency="0" width="15" scaleDependency="Area" backgroundAlpha="255" angleOffset="1440" scaleBasedVisibility="0" enabled="0" height="15" lineSizeScale="0,0,0,0,0,0" sizeType="MM" lineSizeType="MM" minScaleDenominator="100000">
206+
<fontProperties description="Ubuntu,11,-1,5,50,0,0,0,0,0" style=""/>
207+
<attribute field="" color="#000000" label=""/>
208+
</DiagramCategory>
209+
<symbol alpha="1" clip_to_extent="1" type="marker" name="sizeSymbol">
210+
<layer pass="0" class="SimpleMarker" locked="0">
211+
<prop k="angle" v="0"/>
212+
<prop k="color" v="255,0,0,255"/>
213+
<prop k="horizontal_anchor_point" v="1"/>
214+
<prop k="joinstyle" v="bevel"/>
215+
<prop k="name" v="circle"/>
216+
<prop k="offset" v="0,0"/>
217+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
218+
<prop k="offset_unit" v="MM"/>
219+
<prop k="outline_color" v="0,0,0,255"/>
220+
<prop k="outline_style" v="solid"/>
221+
<prop k="outline_width" v="0"/>
222+
<prop k="outline_width_map_unit_scale" v="0,0,0,0,0,0"/>
223+
<prop k="outline_width_unit" v="MM"/>
224+
<prop k="scale_method" v="diameter"/>
225+
<prop k="size" v="2"/>
226+
<prop k="size_map_unit_scale" v="0,0,0,0,0,0"/>
227+
<prop k="size_unit" v="MM"/>
228+
<prop k="vertical_anchor_point" v="1"/>
229+
</layer>
230+
</symbol>
231+
</SingleCategoryDiagramRenderer>
232+
<DiagramLayerSettings yPosColumn="-1" showColumn="-1" linePlacementFlags="10" placement="2" dist="0" xPosColumn="-1" priority="0" obstacle="0" zIndex="0" showAll="1"/>
233+
<annotationform></annotationform>
234+
<excludeAttributesWMS/>
235+
<excludeAttributesWFS/>
236+
<attributeactions default="-1"/>
237+
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
238+
<columns>
239+
<column width="-1" hidden="0" type="field" name="pkuid"/>
240+
<column width="-1" hidden="0" type="field" name="text"/>
241+
<column width="-1" hidden="1" type="actions"/>
242+
</columns>
243+
</attributetableconfig>
244+
<editform></editform>
245+
<editforminit/>
246+
<editforminitcodesource>0</editforminitcodesource>
247+
<editforminitfilepath></editforminitfilepath>
248+
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
249+
"""
250+
QGIS forms can have a Python function that is called when the form is
251+
opened.
252+
253+
Use this function to add extra logic to your forms.
254+
255+
Enter the name of the function in the "Python Init function"
256+
field.
257+
An example follows:
258+
"""
259+
from qgis.PyQt.QtWidgets import QWidget
260+
261+
def my_form_open(dialog, layer, feature):
262+
geom = feature.geometry()
263+
control = dialog.findChild(QWidget, "MyLineEdit")
264+
]]></editforminitcode>
265+
<featformsuppress>0</featformsuppress>
266+
<editorlayout>generatedlayout</editorlayout>
267+
<widgets/>
268+
<conditionalstyles>
269+
<rowstyles/>
270+
<fieldstyles/>
271+
</conditionalstyles>
272+
<layerGeometryType>1</layerGeometryType>
273+
</qgis>
Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="2.99.0-Master" simplifyAlgorithm="0" minimumScale="100000" maximumScale="1e+08" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1">
3+
<edittypes>
4+
<edittype widgetv2type="TextEdit" name="pkuid">
5+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
6+
</edittype>
7+
<edittype widgetv2type="TextEdit" name="text">
8+
<widgetv2config IsMultiline="0" fieldEditable="1" constraint="" UseHtml="0" labelOnTop="0" constraintDescription="" notNull="0"/>
9+
</edittype>
10+
</edittypes>
11+
<renderer-v2 forceraster="0" symbollevels="0" type="singleSymbol" enableorderby="0">
12+
<symbols>
13+
<symbol alpha="1" clip_to_extent="1" type="line" name="0">
14+
<layer pass="0" class="SimpleLine" locked="0">
15+
<prop k="capstyle" v="square"/>
16+
<prop k="customdash" v="5;2"/>
17+
<prop k="customdash_map_unit_scale" v="0,0,0,0,0,0"/>
18+
<prop k="customdash_unit" v="MM"/>
19+
<prop k="draw_inside_polygon" v="0"/>
20+
<prop k="joinstyle" v="bevel"/>
21+
<prop k="line_color" v="243,2,47,255"/>
22+
<prop k="line_style" v="solid"/>
23+
<prop k="line_width" v="0.26"/>
24+
<prop k="line_width_unit" v="MM"/>
25+
<prop k="offset" v="0"/>
26+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
27+
<prop k="offset_unit" v="MM"/>
28+
<prop k="use_custom_dash" v="0"/>
29+
<prop k="width_map_unit_scale" v="0,0,0,0,0,0"/>
30+
</layer>
31+
</symbol>
32+
</symbols>
33+
<rotation/>
34+
<sizescale scalemethod="diameter"/>
35+
</renderer-v2>
36+
<labeling type="simple"/>
37+
<customproperties>
38+
<property key="embeddedWidgets/count" value="0"/>
39+
<property key="labeling" value="pal"/>
40+
<property key="labeling/addDirectionSymbol" value="false"/>
41+
<property key="labeling/angleOffset" value="0"/>
42+
<property key="labeling/blendMode" value="0"/>
43+
<property key="labeling/bufferBlendMode" value="0"/>
44+
<property key="labeling/bufferColorA" value="255"/>
45+
<property key="labeling/bufferColorB" value="255"/>
46+
<property key="labeling/bufferColorG" value="255"/>
47+
<property key="labeling/bufferColorR" value="255"/>
48+
<property key="labeling/bufferDraw" value="false"/>
49+
<property key="labeling/bufferJoinStyle" value="64"/>
50+
<property key="labeling/bufferNoFill" value="false"/>
51+
<property key="labeling/bufferSize" value="1"/>
52+
<property key="labeling/bufferSizeInMapUnits" value="false"/>
53+
<property key="labeling/bufferSizeMapUnitScale" value="0,0,0,0,0,0"/>
54+
<property key="labeling/bufferTransp" value="0"/>
55+
<property key="labeling/centroidInside" value="false"/>
56+
<property key="labeling/centroidWhole" value="false"/>
57+
<property key="labeling/decimals" value="3"/>
58+
<property key="labeling/displayAll" value="false"/>
59+
<property key="labeling/dist" value="0"/>
60+
<property key="labeling/distInMapUnits" value="false"/>
61+
<property key="labeling/distMapUnitScale" value="0,0,0,0,0,0"/>
62+
<property key="labeling/drawLabels" value="false"/>
63+
<property key="labeling/enabled" value="false"/>
64+
<property key="labeling/fieldName" value=""/>
65+
<property key="labeling/fitInPolygonOnly" value="false"/>
66+
<property key="labeling/fontCapitals" value="0"/>
67+
<property key="labeling/fontFamily" value="Ubuntu"/>
68+
<property key="labeling/fontItalic" value="false"/>
69+
<property key="labeling/fontLetterSpacing" value="0"/>
70+
<property key="labeling/fontLimitPixelSize" value="false"/>
71+
<property key="labeling/fontMaxPixelSize" value="10000"/>
72+
<property key="labeling/fontMinPixelSize" value="3"/>
73+
<property key="labeling/fontSize" value="11"/>
74+
<property key="labeling/fontSizeInMapUnits" value="false"/>
75+
<property key="labeling/fontSizeMapUnitScale" value="0,0,0,0,0,0"/>
76+
<property key="labeling/fontStrikeout" value="false"/>
77+
<property key="labeling/fontUnderline" value="false"/>
78+
<property key="labeling/fontWeight" value="50"/>
79+
<property key="labeling/fontWordSpacing" value="0"/>
80+
<property key="labeling/formatNumbers" value="false"/>
81+
<property key="labeling/isExpression" value="true"/>
82+
<property key="labeling/labelOffsetInMapUnits" value="true"/>
83+
<property key="labeling/labelOffsetMapUnitScale" value="0,0,0,0,0,0"/>
84+
<property key="labeling/labelPerPart" value="false"/>
85+
<property key="labeling/leftDirectionSymbol" value="&lt;"/>
86+
<property key="labeling/limitNumLabels" value="false"/>
87+
<property key="labeling/maxCurvedCharAngleIn" value="25"/>
88+
<property key="labeling/maxCurvedCharAngleOut" value="-25"/>
89+
<property key="labeling/maxNumLabels" value="2000"/>
90+
<property key="labeling/mergeLines" value="false"/>
91+
<property key="labeling/minFeatureSize" value="0"/>
92+
<property key="labeling/multilineAlign" value="4294967295"/>
93+
<property key="labeling/multilineHeight" value="1"/>
94+
<property key="labeling/namedStyle" value="Medium Italic"/>
95+
<property key="labeling/obstacle" value="true"/>
96+
<property key="labeling/obstacleFactor" value="1"/>
97+
<property key="labeling/obstacleType" value="0"/>
98+
<property key="labeling/offsetType" value="0"/>
99+
<property key="labeling/placeDirectionSymbol" value="0"/>
100+
<property key="labeling/placement" value="2"/>
101+
<property key="labeling/placementFlags" value="10"/>
102+
<property key="labeling/plussign" value="false"/>
103+
<property key="labeling/predefinedPositionOrder" value="TR,TL,BR,BL,R,L,TSR,BSR"/>
104+
<property key="labeling/preserveRotation" value="true"/>
105+
<property key="labeling/previewBkgrdColor" value="#ffffff"/>
106+
<property key="labeling/priority" value="5"/>
107+
<property key="labeling/quadOffset" value="4"/>
108+
<property key="labeling/repeatDistance" value="0"/>
109+
<property key="labeling/repeatDistanceMapUnitScale" value="0,0,0,0,0,0"/>
110+
<property key="labeling/repeatDistanceUnit" value="1"/>
111+
<property key="labeling/reverseDirectionSymbol" value="false"/>
112+
<property key="labeling/rightDirectionSymbol" value=">"/>
113+
<property key="labeling/scaleMax" value="10000000"/>
114+
<property key="labeling/scaleMin" value="1"/>
115+
<property key="labeling/scaleVisibility" value="false"/>
116+
<property key="labeling/shadowBlendMode" value="6"/>
117+
<property key="labeling/shadowColorB" value="0"/>
118+
<property key="labeling/shadowColorG" value="0"/>
119+
<property key="labeling/shadowColorR" value="0"/>
120+
<property key="labeling/shadowDraw" value="false"/>
121+
<property key="labeling/shadowOffsetAngle" value="135"/>
122+
<property key="labeling/shadowOffsetDist" value="1"/>
123+
<property key="labeling/shadowOffsetGlobal" value="true"/>
124+
<property key="labeling/shadowOffsetMapUnitScale" value="0,0,0,0,0,0"/>
125+
<property key="labeling/shadowOffsetUnits" value="1"/>
126+
<property key="labeling/shadowRadius" value="1.5"/>
127+
<property key="labeling/shadowRadiusAlphaOnly" value="false"/>
128+
<property key="labeling/shadowRadiusMapUnitScale" value="0,0,0,0,0,0"/>
129+
<property key="labeling/shadowRadiusUnits" value="1"/>
130+
<property key="labeling/shadowScale" value="100"/>
131+
<property key="labeling/shadowTransparency" value="30"/>
132+
<property key="labeling/shadowUnder" value="0"/>
133+
<property key="labeling/shapeBlendMode" value="0"/>
134+
<property key="labeling/shapeBorderColorA" value="255"/>
135+
<property key="labeling/shapeBorderColorB" value="128"/>
136+
<property key="labeling/shapeBorderColorG" value="128"/>
137+
<property key="labeling/shapeBorderColorR" value="128"/>
138+
<property key="labeling/shapeBorderWidth" value="0"/>
139+
<property key="labeling/shapeBorderWidthMapUnitScale" value="0,0,0,0,0,0"/>
140+
<property key="labeling/shapeBorderWidthUnits" value="1"/>
141+
<property key="labeling/shapeDraw" value="false"/>
142+
<property key="labeling/shapeFillColorA" value="255"/>
143+
<property key="labeling/shapeFillColorB" value="255"/>
144+
<property key="labeling/shapeFillColorG" value="255"/>
145+
<property key="labeling/shapeFillColorR" value="255"/>
146+
<property key="labeling/shapeJoinStyle" value="64"/>
147+
<property key="labeling/shapeOffsetMapUnitScale" value="0,0,0,0,0,0"/>
148+
<property key="labeling/shapeOffsetUnits" value="1"/>
149+
<property key="labeling/shapeOffsetX" value="0"/>
150+
<property key="labeling/shapeOffsetY" value="0"/>
151+
<property key="labeling/shapeRadiiMapUnitScale" value="0,0,0,0,0,0"/>
152+
<property key="labeling/shapeRadiiUnits" value="1"/>
153+
<property key="labeling/shapeRadiiX" value="0"/>
154+
<property key="labeling/shapeRadiiY" value="0"/>
155+
<property key="labeling/shapeRotation" value="0"/>
156+
<property key="labeling/shapeRotationType" value="0"/>
157+
<property key="labeling/shapeSVGFile" value=""/>
158+
<property key="labeling/shapeSizeMapUnitScale" value="0,0,0,0,0,0"/>
159+
<property key="labeling/shapeSizeType" value="0"/>
160+
<property key="labeling/shapeSizeUnits" value="1"/>
161+
<property key="labeling/shapeSizeX" value="0"/>
162+
<property key="labeling/shapeSizeY" value="0"/>
163+
<property key="labeling/shapeTransparency" value="0"/>
164+
<property key="labeling/shapeType" value="0"/>
165+
<property key="labeling/textColorA" value="255"/>
166+
<property key="labeling/textColorB" value="0"/>
167+
<property key="labeling/textColorG" value="0"/>
168+
<property key="labeling/textColorR" value="0"/>
169+
<property key="labeling/textTransp" value="0"/>
170+
<property key="labeling/upsidedownLabels" value="0"/>
171+
<property key="labeling/wrapChar" value=""/>
172+
<property key="labeling/xOffset" value="0"/>
173+
<property key="labeling/yOffset" value="0"/>
174+
<property key="labeling/zIndex" value="0"/>
175+
<property key="variableNames" value="_fields_"/>
176+
<property key="variableValues" value=""/>
177+
</customproperties>
178+
<blendMode>0</blendMode>
179+
<featureBlendMode>0</featureBlendMode>
180+
<layerTransparency>0</layerTransparency>
181+
<SingleCategoryDiagramRenderer diagramType="Histogram" sizeLegend="0" attributeLegend="1">
182+
<DiagramCategory penColor="#000000" labelPlacementMethod="XHeight" penWidth="0" diagramOrientation="Up" sizeScale="0,0,0,0,0,0" minimumSize="0" barWidth="5" penAlpha="255" maxScaleDenominator="1e+08" backgroundColor="#ffffff" transparency="0" width="15" scaleDependency="Area" backgroundAlpha="255" angleOffset="1440" scaleBasedVisibility="0" enabled="0" height="15" lineSizeScale="0,0,0,0,0,0" sizeType="MM" lineSizeType="MM" minScaleDenominator="100000">
183+
<fontProperties description="Ubuntu,11,-1,5,50,0,0,0,0,0" style=""/>
184+
</DiagramCategory>
185+
<symbol alpha="1" clip_to_extent="1" type="marker" name="sizeSymbol">
186+
<layer pass="0" class="SimpleMarker" locked="0">
187+
<prop k="angle" v="0"/>
188+
<prop k="color" v="255,0,0,255"/>
189+
<prop k="horizontal_anchor_point" v="1"/>
190+
<prop k="joinstyle" v="bevel"/>
191+
<prop k="name" v="circle"/>
192+
<prop k="offset" v="0,0"/>
193+
<prop k="offset_map_unit_scale" v="0,0,0,0,0,0"/>
194+
<prop k="offset_unit" v="MM"/>
195+
<prop k="outline_color" v="0,0,0,255"/>
196+
<prop k="outline_style" v="solid"/>
197+
<prop k="outline_width" v="0"/>
198+
<prop k="outline_width_map_unit_scale" v="0,0,0,0,0,0"/>
199+
<prop k="outline_width_unit" v="MM"/>
200+
<prop k="scale_method" v="diameter"/>
201+
<prop k="size" v="2"/>
202+
<prop k="size_map_unit_scale" v="0,0,0,0,0,0"/>
203+
<prop k="size_unit" v="MM"/>
204+
<prop k="vertical_anchor_point" v="1"/>
205+
</layer>
206+
</symbol>
207+
</SingleCategoryDiagramRenderer>
208+
<DiagramLayerSettings yPosColumn="-1" showColumn="-1" linePlacementFlags="10" placement="2" dist="0" xPosColumn="-1" priority="0" obstacle="0" zIndex="0" showAll="1"/>
209+
<annotationform></annotationform>
210+
<excludeAttributesWMS/>
211+
<excludeAttributesWFS/>
212+
<attributeactions default="-1"/>
213+
<attributetableconfig actionWidgetStyle="dropDown" sortExpression="" sortOrder="0">
214+
<columns>
215+
<column width="-1" hidden="0" type="field" name="pkuid"/>
216+
<column width="-1" hidden="0" type="field" name="text"/>
217+
<column width="-1" hidden="1" type="actions"/>
218+
</columns>
219+
</attributetableconfig>
220+
<editform></editform>
221+
<editforminit/>
222+
<editforminitcodesource>0</editforminitcodesource>
223+
<editforminitfilepath></editforminitfilepath>
224+
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
225+
"""
226+
QGIS forms can have a Python function that is called when the form is
227+
opened.
228+
229+
Use this function to add extra logic to your forms.
230+
231+
Enter the name of the function in the "Python Init function"
232+
field.
233+
An example follows:
234+
"""
235+
from qgis.PyQt.QtWidgets import QWidget
236+
237+
def my_form_open(dialog, layer, feature):
238+
geom = feature.geometry()
239+
control = dialog.findChild(QWidget, "MyLineEdit")
240+
]]></editforminitcode>
241+
<featformsuppress>0</featformsuppress>
242+
<editorlayout>generatedlayout</editorlayout>
243+
<widgets/>
244+
<conditionalstyles>
245+
<rowstyles/>
246+
<fieldstyles/>
247+
</conditionalstyles>
248+
<layerGeometryType>1</layerGeometryType>
249+
</qgis>
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.