[mapserver-users] GEOMTRANSFORM LABELPNT example

Ian Walberg ian.walberg at airborne.aero
Sun Dec 11 07:20:28 PST 2011


Here is the map file we are using ms4w  3.0.3.

 

We thought the larger grey circle should be drawn in the center of the
label text.

 

What have we done wrong?

 

Thanks

 

Ian

 

 

 

LAYER

               DEBUG 5

               NAME Test

               TYPE annotation

               STATUS DEFAULT

 

               FEATURE

    POINTS

      -122 33

    END

    TEXT "Some label text"

               END

               

               CLASS

                              LABEL

                                             FONT "arialuni"

                                             TYPE truetype

                                             ENCODING 'UTF-8'

                                             SIZE 14

                                             COLOR 255 255 0

                                             POSITION LR

                                             OFFSET 8 8 

 

                                             STYLE 

                                               GEOMTRANSFORM LABELPOLY

                                               COLOR 200 50 50

                                             END 

 

                                             STYLE 

                                               GEOMTRANSFORM LABELPNT

        SYMBOL 'circle'

                                               COLOR 100 100 100

                                                            SIZE 20

                                             END 

 

                                             STYLE 

                                               COLOR 255 255 255

                                               SYMBOL 'circle'

                                               SIZE 6

                                             END

 

                              END

  END    

END

 

 

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian
Walberg
Sent: Saturday, December 10, 2011 3:53 PM
To: Brent Fraser
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example

 

Brent,

 

We copied the example

http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t
<http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-
t> 

d6408065.html.

 

However we see the GEOMTRANSFORM labelpnt drawing the circle on the
point location not the center of the label text.

 

Thanks

 

Ian

 

-----Original Message-----

From: Brent Fraser [mailto:bfraser at geoanalytic.com]
<mailto:[mailto:bfraser at geoanalytic.com]> 

Sent: Saturday, December 10, 2011 1:25 PM

To: Ian Walberg

Cc: mapserver-users at lists.osgeo.org
<mailto:mapserver-users at lists.osgeo.org> 

Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example

 

Ian,

 

  How are you specifying it in your mapfile?

 

Brent Fraser

 

 

> Steve,

> 

> We are still not seeing what we expect, we are testing with the ms4w

> 3.0.3 install, will this work?

> 

> Thanks

> 

> Ian

> 

> -----Original Message-----

> From: mapserver-users-bounces at lists.osgeo.org
<mailto:mapserver-users-bounces at lists.osgeo.org> 

> [mailto:mapserver-users-bounces at lists.osgeo.org]
<mailto:[mailto:mapserver-users-bounces at lists.osgeo.org]>  On Behalf Of
Stephen 

> Woodbridge

> Sent: Saturday, December 10, 2011 7:48 AM

> To: mapserver-users at lists.osgeo.org
<mailto:mapserver-users at lists.osgeo.org> 

> Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example

> 

> On 12/10/2011 10:36 AM, Ian Walberg wrote:

>> Does anyone have an example of the GEOMTRANSFORM LABELPNT?

>> 

>> We have been trying this I were expecting the center to be located on

 

>> the center of the label test border rectangle but  we seem to be 

>> getting the center as the point location.

>> 

>> Any ideas?

> 

> Hi Ian,

> 

> The label point is the that the label is placed about. The actual 

> label position can change relative to the label point based on 

> POSITION and other attributes of the label.

> 

> I don't have the RFC in front of me but here is a good example to test

> with:

> 

> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location
<http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location>


> -t

> d6408065.html

> 

> Try varying the LABEL POSITION and see how it behaves.

> 

> -Steve W

> _______________________________________________

> mapserver-users mailing list

> mapserver-users at lists.osgeo.org
<mailto:mapserver-users at lists.osgeo.org> 

> http://lists.osgeo.org/mailman/listinfo/mapserver-users
<http://lists.osgeo.org/mailman/listinfo/mapserver-users> 

> _______________________________________________

> mapserver-users mailing list

> mapserver-users at lists.osgeo.org
<mailto:mapserver-users at lists.osgeo.org> 

> http://lists.osgeo.org/mailman/listinfo/mapserver-users
<http://lists.osgeo.org/mailman/listinfo/mapserver-users> 

> 

 

 

 

_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>


http://lists.osgeo.org/mailman/listinfo/mapserver-users
<http://lists.osgeo.org/mailman/listinfo/mapserver-users> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111211/98d3e544/attachment.htm>


More information about the MapServer-users mailing list