Commit a18b4a3
1 parent d59ab80 commit a18b4a3
File tree
15 files changed
+294
-62
lines changed- python/core
- symbology-ng
- src
- app
- core
- symbology-ng
- gui
15 files changed
+294
-62
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 |
| |
32 | 38 |
| |
33 | 39 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 |
| |
44 | 50 |
| |
45 | 51 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 |
| |
46 | 52 |
| |
47 | 53 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 |
| |
67 | 71 |
| |
68 | 72 |
| |
|
Lines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1172 | 1172 |
| |
1173 | 1173 |
| |
1174 | 1174 |
| |
1175 |
| - | |
1176 |
| - | |
| 1175 | + | |
1177 | 1176 |
| |
1178 |
| - | |
| 1177 | + | |
1179 | 1178 |
| |
1180 | 1179 |
| |
1181 | 1180 |
| |
1182 | 1181 |
| |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1183 | 1193 |
| |
1184 | 1194 |
| |
1185 | 1195 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + |
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
| 48 | + | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 |
| |
58 | 64 |
| |
59 | 65 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 |
| |
126 | 131 |
| |
127 | 132 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
68 | 82 |
| |
69 | 83 |
| |
70 | 84 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
| 52 | + | |
51 | 53 |
| |
52 | 54 |
| |
53 | 55 |
| |
| |||
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
76 | 92 |
| |
77 | 93 |
| |
78 | 94 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 |
| |
53 | 65 |
| |
54 | 66 |
| |
|
Lines changed: 164 additions & 56 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 |
| |
| 22 | + | |
18 | 23 |
| |
19 | 24 |
| |
20 | 25 |
| |
21 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 |
| |
23 | 30 |
| |
24 | 31 |
| |
| |||
29 | 36 |
| |
30 | 37 |
| |
31 | 38 |
| |
| 39 | + | |
32 | 40 |
| |
33 | 41 |
| |
34 | 42 |
| |
| |||
37 | 45 |
| |
38 | 46 |
| |
39 | 47 |
| |
| 48 | + | |
40 | 49 |
| |
41 | 50 |
| |
42 | 51 |
| |
43 | 52 |
| |
44 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
45 | 64 |
| |
46 | 65 |
| |
47 | 66 |
| |
48 | 67 |
| |
49 | 68 |
| |
50 | 69 |
| |
51 | 70 |
| |
52 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
53 | 79 |
| |
54 | 80 |
| |
55 | 81 |
| |
| |||
60 | 86 |
| |
61 | 87 |
| |
62 | 88 |
| |
| 89 | + | |
63 | 90 |
| |
64 | 91 |
| |
65 | 92 |
| |
| |||
71 | 98 |
| |
72 | 99 |
| |
73 | 100 |
| |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
74 | 146 |
| |
75 | 147 |
| |
76 | 148 |
| |
| |||
145 | 217 |
| |
146 | 218 |
| |
147 | 219 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
| 220 | + | |
157 | 221 |
| |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
| 222 | + | |
| 223 | + | |
164 | 224 |
| |
165 |
| - | |
166 |
| - | |
| 225 | + | |
167 | 226 |
| |
168 |
| - | |
169 |
| - | |
| 227 | + | |
| 228 | + | |
170 | 229 |
| |
171 |
| - | |
| 230 | + | |
172 | 231 |
| |
173 |
| - | |
174 |
| - | |
| 232 | + | |
175 | 233 |
| |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
182 | 244 |
| |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
187 | 251 |
| |
188 |
| - | |
| 252 | + | |
| 253 | + | |
189 | 254 |
| |
190 |
| - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
191 | 261 |
| |
192 |
| - | |
193 |
| - | |
| 262 | + | |
194 | 263 |
| |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
201 | 270 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
| 271 | + | |
| 272 | + | |
207 | 273 |
| |
208 |
| - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
209 | 279 |
| |
210 |
| - | |
211 |
| - | |
| 280 | + | |
212 | 281 |
| |
213 |
| - | |
214 |
| - | |
215 |
| - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
216 | 310 |
| |
217 | 311 |
| |
218 | 312 |
| |
| |||
234 | 328 |
| |
235 | 329 |
| |
236 | 330 |
| |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
237 | 340 |
| |
238 | 341 |
| |
239 | 342 |
| |
240 | 343 |
| |
241 | 344 |
| |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + |
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
| |||
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
| 30 | + | |
28 | 31 |
| |
29 | 32 |
| |
30 | 33 |
| |
| |||
33 | 36 |
| |
34 | 37 |
| |
35 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 |
| |
37 | 47 |
| |
38 | 48 |
| |
| 49 | + | |
| 50 | + | |
39 | 51 |
| |
40 | 52 |
| |
41 | 53 |
| |
| |||
46 | 58 |
| |
47 | 59 |
| |
48 | 60 |
| |
| 61 | + | |
49 | 62 |
| |
50 | 63 |
| |
51 | 64 |
| |
52 | 65 |
| |
| 66 | + | |
| 67 | + | |
53 | 68 |
| |
54 | 69 |
| |
55 | 70 |
| |
56 | 71 |
| |
57 | 72 |
| |
58 | 73 |
| |
| 74 | + | |
| 75 | + | |
59 | 76 |
| |
60 | 77 |
| |
61 | 78 |
|
11 commit comments
haubourg commentedon Jan 13, 2014
Hi Radim, could you explain qhat the commit does? I remember we founded generalisation for identify highlight because it was extremely slow for big features and sometimes led to crash.. Could your commit reintroduce that?
Thanks for your lights
Régis
blazek commentedon Jan 13, 2014
The highlight was originally using a rectangle, simple line or simple polygon ignoring feature symbology. The commit renders highlighted features using current renderer with additional highlight symbol layer over each original symbol layer so that the whole current appearance of the feature including all markers, patterns etc. is highlighted.
"Real shape" in comment was meant for symbology not for geometry. It is true however, that original geometry simplification in QgsHighlight::paintPolygon() is not used anymore. OTOH, rendering is done using standard renderer with all its tricks (cut by extent, simplification...) so I believe that it may not crash (because the same methods are used to render the layer itself). It may be slower (of course, rendering of true symbology may be slower if it is complex) but it should not become so slow to make it unusable because, as said, the same algorithm is used to render the whole layer.
Could you please test with your data and computer?
timlinux commentedon Jan 13, 2014
For me the selection post Radim's patch is working very nice and quickly even for layers with quite complex polygons.
haubourg commentedon Jan 13, 2014
Thanks Radim, will test when osgeo4w builds gets it. I have some huge 400 000 vertices polygons full of rings and islands for that ( crazy dataset... )
Régis
haubourg commentedon Jan 14, 2014
Hi I tested today, and it works well and fast. Not sure if it is a problem, but I was amazed when I zoomed out.. identified object appears clipped to the old extent.. Not totally sure this is good from a user point of view the real object is not shown entirely. By myself, conscious of the performance gain, I do accept that behaviour. Maybe should we request user comments on this?
timlinux commentedon Jan 14, 2014
blazek commentedon Jan 14, 2014
Zoom out: I know about it. I'll fix that.
blazek commentedon Jan 16, 2014
I have fixed the clip on zoom out.
BTW, the highlight is painted 10 times when mouse enters or leaves map canvas, that may be additional source of possible slowness.
blazek commentedon Jan 27, 2014
As @slarosa pointed out, new highlight covers features in other layer. It is because the feature is rendered with all its symbol layers + highlight layer above each. That covers all other features. The reason for rendering all original symbol layers is that otherwise the lower symbol layers become visible if the highlight is only transparent (lower transparent highlight layers are visible).
I'll try to fix that using blending modes.
blazek commentedon Feb 9, 2014
It should be fixed in b05c93c.
slarosa commentedon Feb 10, 2014
thanks!