Re: [Qgis-developer] How should work the placement "over" on adv-label

2011-10-05 Thread aperi2007

> Hi Andrea
>
> I assume you are using old labeling system (Labels tab in layer
> properties) - this one does not handle collisions at all. Try new
> labeling instead (menu Layer>  Labeling -or- look for the icon in
> toolbar) and use "horizontal" or "free" placement - it should do what
> you need.
>
> Martin
>

Great !

Thx Martin its exactly what I need.

Regards,

Andrea.

Il 05/10/2011 19:45, Martin Dobias ha scritto:

On Mon, Oct 3, 2011 at 5:38 PM, Andrea Peri  wrote:

Hi,

I have a situation of polygon like this:

   -
   | A  |
   ||
   |    |
   |  |  B ||
   |  |||
   |  |||
   |  |||
   |  |||
   |    |
   ||
   -

Where the poly A has a hole and the poly-B fill exactly the hole of poly-A


Hi Andrea

I assume you are using old labeling system (Labels tab in layer
properties) - this one does not handle collisions at all. Try new
labeling instead (menu Layer>  Labeling -or- look for the icon in
toolbar) and use "horizontal" or "free" placement - it should do what
you need.

Martin



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


Re: [Qgis-developer] How should work the placement "over" on adv-label

2011-10-05 Thread Martin Dobias
On Mon, Oct 3, 2011 at 5:38 PM, Andrea Peri  wrote:
> Hi,
>
> I have a situation of polygon like this:
>
>   -
>   | A  |
>   |    |
>   |    |
>   |  |  B |    |
>   |  |    |    |
>   |  |    |    |
>   |  |    |    |
>   |  |    |    |
>   |    |
>   |    |
>   -
>
> Where the poly A has a hole and the poly-B fill exactly the hole of poly-A

Hi Andrea

I assume you are using old labeling system (Labels tab in layer
properties) - this one does not handle collisions at all. Try new
labeling instead (menu Layer > Labeling -or- look for the icon in
toolbar) and use "horizontal" or "free" placement - it should do what
you need.

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


Re: [Qgis-developer] How should work the placement "over" on adv-label

2011-10-04 Thread Sandro Santilli
On Mon, Oct 03, 2011 at 10:38:54PM +0200, Andrea Peri wrote:
> Hi,
> 
> I have a situation of polygon like this:
> 
>   -
>   | A  |
>   ||
>   |    |
>   |  |  B ||
>   |  |||
>   |  |||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 
> Where the poly A has a hole and the poly-B fill exactly the hole of poly-A
> 
> I need to have a labeling like this:
> 
>   -
>   |   value1   |
>   ||
>   |    |
>   |  |||
>   |  |||
>   |  | value2 ||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 
> I try with the label-advanced plugin and use the option Placement "Over".
> 
> But it produce instead this situation:
> 
>   -
>   ||
>   ||
>   |    |
>   |  | value1 ||
>   |  |||
>   |  | value2 ||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 
> I don't know if this is a wanted result or not for the "over" placement.
> But I guess this is not the better solution , because don't allow to
> understand what is the label
> of PolyA and the label of PolyB.

Recently someone committed a fix for labeling that used GEOS intersection
to avoid scanning too many segments for candidates. Since GEOS is involved
already, it could as well be used for GEOSPointOnSurface on the intersection
between the polygon and the viewport. That will give you what you want.

Sounds like worth a ticket on the tracker.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] How should work the placement "over" on adv-label

2011-10-03 Thread Ramon Andiñach

On 04/10/2011, at 4:38, Andrea Peri  wrote:

> Hi,
> 
> I have a situation of polygon like this:
> 
>   -
>   | A  |
>   ||
>   |    |
>   |  |  B ||
>   |  |||
>   |  |||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 
> Where the poly A has a hole and the poly-B fill exactly the hole of poly-A
> 
> I need to have a labeling like this:
> 
>   -
>   |   value1   |
>   ||
>   |    |
>   |  |||
>   |  |||
>   |  | value2 ||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 
> I try with the label-advanced plugin and use the option Placement "Over".
> 
> But it produce instead this situation:
> 
>   -
>   ||
>   ||
>   |    |
>   |  | value1 ||
>   |  |||
>   |  | value2 ||
>   |  |||
>   |  |||
>   |    |
>   ||
>   -
> 

I also get into this situation, and other similar problems. Short of defining 
coordinates for my labels, I don't think there is a good answer yet.

(In my cases it's usually only a small number of problem fields in a large 
dataset and I can't convince myself that it's worth the effort.)

In one of the datasets that I get a situation like this the objects all have 
straight sides and I usually put the labelling parallel to the edge of the 
polygon. Would that work as a work-around?

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


[Qgis-developer] How should work the placement "over" on adv-label

2011-10-03 Thread Andrea Peri
Hi,

I have a situation of polygon like this:

  -
  | A  |
  ||
  |    |
  |  |  B ||
  |  |||
  |  |||
  |  |||
  |  |||
  |    |
  ||
  -

Where the poly A has a hole and the poly-B fill exactly the hole of poly-A

I need to have a labeling like this:

  -
  |   value1   |
  ||
  |    |
  |  |||
  |  |||
  |  | value2 ||
  |  |||
  |  |||
  |    |
  ||
  -

I try with the label-advanced plugin and use the option Placement "Over".

But it produce instead this situation:

  -
  ||
  ||
  |    |
  |  | value1 ||
  |  |||
  |  | value2 ||
  |  |||
  |  |||
  |    |
  ||
  -

I don't know if this is a wanted result or not for the "over" placement.
But I guess this is not the better solution , because don't allow to
understand what is the label
of PolyA and the label of PolyB.


Thx,

Andrea.


-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer