Re: [Qgis-developer] Week 8 - report on "Multithread Support on QGIS Toolbox"

2015-07-19 Thread Victor Olaya
Marcus

Great work!

Just one suggestion. The run iterative mode is not urgent, since it is
not often used, and it's nothing but a batch process, so I would
recommend not working on that, leaving that for later, once the single
execution is working fine. That should be the priority.

I will test your code later today and let you know what i see.

Thanks!

2015-07-20 1:24 GMT+02:00 Marcus Santos :
> Hi all,
>
> Here is the eighth report on my GSoC project [1].
> You can find the code on the master branch [2].
>
> Have a nice week,
> Marcus Santos
>
> [1] -
> https://qgisgsoc2015.wordpress.com/2015/07/19/eighth-gsoc-report-multithreading-on-processing/
> [2] - https://github.com/mvcsantos/QGIS
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Point feature labels: add a "buffer" option around point features

2015-07-19 Thread Nyall Dawson
On 19 Jul 2015 11:37 pm, "Andreas Neumann"  wrote:
>
> Hi,
>
> I have yet another label question: would it be possible to add a "buffer"
option around labels to avoid overlapping of labels with point features,
like shown in the attached file: the last "f" of "Nänikon/Bahnhof" overlaps
with the point feature of "Nänikon/Volg".
>
> I had the option "Discourage Labels from Covering Features" on, but it
probably only takes the point into account and no buffer around the point,
so it still overlaps with the point symbol.

Correct... It only considers a zero size point as the obstacle and doesn't
account for the size of the marker.

I guess the ideal solution would be if the actual marker's bounding box is
considered to be the obstacle.

It's possible (and not too complex for single symbol renderers), but would
be a bit of work to make it handle the other renderer types without
affecting speed.

Nyall
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Week 8 - report on "Multithread Support on QGIS Toolbox"

2015-07-19 Thread Marcus Santos
Hi all,

Here is the eighth report on my GSoC project [1].
You can find the code on the master branch [2].

Have a nice week,
Marcus Santos

[1] - 
https://qgisgsoc2015.wordpress.com/2015/07/19/eighth-gsoc-report-multithreading-on-processing/
 

 
[2] - https://github.com/mvcsantos/QGIS 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Label polygons only outside of polygons

2015-07-19 Thread aperi2007

Sorry for my english.
I would mean

Perhaps a better choice could be to have a label outside from a Polygon 
only when it is could not be COMPLETELY CONTAINS ON it.




Il 19/07/2015 16:47, aperi2007 ha scritto:
Perhaps a better choice could be to have a label outside from a 
Polygon only when it is could not be all inside it ? 


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Label polygons only outside of polygons

2015-07-19 Thread aperi2007

Hi,
Andreas

An option to put always a label outside from a polygon seem a good 
solution only when all the polygon are quite similar size (all small).
Perhaps a better choice could be to have a label outside from a Polygon 
only when it is could not be all inside it ?


Andrea Peri.


Il 19/07/2015 15:14, Andreas Neumann ha scritto:

Hi,

I see that there are some recent new features regarding labelling:

https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30 


and
https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe 



I have a question regarding Nyalls recent labelling improvements (the 
new options to act as obstacle layers).
For a polygon layer, would it be possible to force the labels to 
always label outside of the feature? As an example I have a 
waste-water layer with small polygons representing special-form 
manholes (irregularly shaped). These polygons are usually too small to 
properly display the label inside the polygon and I would prefer to 
automatically place the label fully outside of the polygon.


So, can I have a layer act both, as a label layer and as an obstacle 
layer? Or have another option, something like "Force label to be 
outside of the polygon", to label always outside of the polygon of the 
feature?


Here are two screenshots:

This is how QGIS currently labels these polygons:
http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf

And this is how I would label them manually, outside of the polygon, 
but hope that a future QGIS version can do this automatically:

http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf

Thanks,
Andreas


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Point feature labels: add a "buffer" option around point features

2015-07-19 Thread Andreas Neumann

Hi,

I have yet another label question: would it be possible to add a 
"buffer" option around labels to avoid overlapping of labels with point 
features, like shown in the attached file: the last "f" of 
"Nänikon/Bahnhof" overlaps with the point feature of "Nänikon/Volg".


I had the option "Discourage Labels from Covering Features" on, but it 
probably only takes the point into account and no buffer around the 
point, so it still overlaps with the point symbol. In this case I would 
have manually placed the label of "Nänikon Bahnhof" to the left of the 
point feature.


Or maybe the label distance could automatically be applied to act as the 
buffer distance for the "Discourage labels from covering features" test?


Thanks,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Different label distances for point feature labelling

2015-07-19 Thread Andreas Neumann

Hi,

I have another label question:

For labeling point features when using the "Around point" placement 
option, I noticed that I would need different label distances depending 
on the position the automatic labelling engine uses. As an example, 
while the label distance is ok for a "top-right" position, it would have 
to be bigger for a "right" position, as the label is still too close to 
the point symbol in this case. The top-middle and bottom-middle 
positions would also need yet another label distance.


Would it be possible to add position-dependent label offsets in the 
future while still letting QGIS place the labels automatically?


Thanks,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Label polygons only outside of polygons

2015-07-19 Thread Andreas Neumann

Hi,

I see that there are some recent new features regarding labelling:

https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30
and
https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe

I have a question regarding Nyalls recent labelling improvements (the 
new options to act as obstacle layers).
For a polygon layer, would it be possible to force the labels to always 
label outside of the feature? As an example I have a waste-water layer 
with small polygons representing special-form manholes (irregularly 
shaped). These polygons are usually too small to properly display the 
label inside the polygon and I would prefer to automatically place the 
label fully outside of the polygon.


So, can I have a layer act both, as a label layer and as an obstacle 
layer? Or have another option, something like "Force label to be outside 
of the polygon", to label always outside of the polygon of the feature?


Here are two screenshots:

This is how QGIS currently labels these polygons:
http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf

And this is how I would label them manually, outside of the polygon, but 
hope that a future QGIS version can do this automatically:

http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf

Thanks,
Andreas


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer