Re: [mapserver-users] Label frame offset with leader line

2016-09-15 Thread thomas bonfort
It's a bug, you can open an issue for it.

--
thomas

On 15 September 2016 at 16:19, Stephen O'Connell
 wrote:
> Hello.
>
> I have a problem with label rendering Mapserver, and I haven't been able to
> find a solution myself.
>
> I'm rendering point labels with GEOMTRANSFORM 'labelpoly' to get a frame
> around the label. To get more labels to show, I have enabled LEADER so that
> labels are more likely to be visible but farther away from the point.
> However, when a label is moved away and attached with a LEADER, then the
> frame around the label gets an offset both vertically and horizontally. See
> the image https://www.dropbox.com/s/hwbt370d8371oqw/labeloffset.png?dl=0
> where the bottom left label has a leader, but the green frame is moved a few
> pixels down and to the right.
>
> Is the combination of LEADER and GEOMTRANSFORM 'labelpoly' not supported, or
> am I doing something wrong?
>
> Here is a section of my mapfile for the relevant layer:
>
> LABEL
> WRAP "!"
> ALIGN center
> TEXT ('[name]' + "!D116.7 " + '[ident]')
> MAXSCALEDENOM 2600064
> POSITION auto
> PARTIALS false
> SIZE 8
> COLOR 100 150 100
> TYPE truetype
> FONT vera
> FORCE false
> STYLE
> GEOMTRANSFORM 'labelpoly'
> OFFSET 2 2
> COLOR 150 200 150
> OUTLINECOLOR 150 200 150
> WIDTH 1
> OPACITY 100
> END
> STYLE
> GEOMTRANSFORM 'labelpoly'
> COLOR 255 255 255
> OUTLINECOLOR 150 200 150
> WIDTH 1
> OPACITY 95
> END
> END
> LEADER
> GRIDSTEP 40
> MAXDISTANCE 1000
> STYLE
> COLOR 150 200 150
> WIDTH 2
> END
> END
>
>
> I appreciate any assistance or comments.
>
> Kind regards,
>
> Stephen
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Label frame offset with leader line

2016-09-15 Thread Stephen O'Connell

Hello.

I have a problem with label rendering Mapserver, and I haven't been able 
to find a solution myself.


I'm rendering point labels with GEOMTRANSFORM 'labelpoly' to get a frame 
around the label. To get more labels to show, I have enabled LEADER so 
that labels are more likely to be visible but farther away from the 
point. However, when a label is moved away and attached with a LEADER, 
then the frame around the label gets an offset both vertically and 
horizontally. See the image 
https://www.dropbox.com/s/hwbt370d8371oqw/labeloffset.png?dl=0 where the 
bottom left label has a leader, but the green frame is moved a few 
pixels down and to the right.


Is the combination of LEADER and GEOMTRANSFORM 'labelpoly' not 
supported, or am I doing something wrong?


Here is a section of my mapfile for the relevant layer:

LABEL
WRAP "!"
ALIGN center
TEXT ('[name]' + "!D116.7 " + '[ident]')
MAXSCALEDENOM 2600064
POSITION auto
PARTIALS false
SIZE 8
COLOR 100 150 100
TYPE truetype
FONT vera
FORCE false
STYLE
GEOMTRANSFORM 'labelpoly'
OFFSET 2 2
COLOR 150 200 150
OUTLINECOLOR 150 200 150
WIDTH 1
OPACITY 100
END
STYLE
GEOMTRANSFORM 'labelpoly'
COLOR 255 255 255
OUTLINECOLOR 150 200 150
WIDTH 1
OPACITY 95
END
END
LEADER
GRIDSTEP 40
MAXDISTANCE 1000
STYLE
COLOR 150 200 150
WIDTH 2
END
END


I appreciate any assistance or comments.

Kind regards,

Stephen

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Using polygon fills with GAP

2016-09-15 Thread Rahkonen Jukka (MML)
Hi,

It is not impossible but you need to think differently. You can make a symbol 
that contains two copies of your icon placed so that the desired offsets are 
baked in.  See http://www.mapserver.org/_images/polygon-symbol-fill.png and the 
attached grass symbol.

-Jukka Rahkonen-



Tamas Szekeres wrote:


Hi,

We are trying to implement polygon fills with symbols where the X and Y offset 
between the symbols are different. But it seems impossible, since we can 
specify a single GAP setting (the same for both directions). I might also think 
to specify edge to edge fill by not specifying GAP, but that would invole the 
need of specifying the symbol (container) size in both directions, but that is 
not possible either.

Do we have further options to achieve the desired result? (ie. to arrange the 
symbol using different offsets vertically and horizontally).

Thanks,

Tamas

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Using polygon fills with GAP

2016-09-15 Thread Tamas Szekeres
Hi,

We are trying to implement polygon fills with symbols where the X and Y
offset between the symbols are different. But it seems impossible, since we
can specify a single GAP setting (the same for both directions). I might
also think to specify edge to edge fill by not specifying GAP, but that
would invole the need of specifying the symbol (container) size in both
directions, but that is not possible either.

Do we have further options to achieve the desired result? (ie. to arrange
the symbol using different offsets vertically and horizontally).

Thanks,

Tamas
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users