[mapserver-users] GetLegendGraphics don't return correctly the point symbol

thomas bonfort thomas.bonfort at gmail.com
Tue Jan 8 04:34:25 PST 2013


then you need geomtransform centroid, no?

On 8 January 2013 13:33, Andrea Peri <aperi2007 at gmail.com> wrote:
> Actually it is returning something like this:
>
> OOOOOOO
> OOOOOOO
> OOOOOOO
> OOOOOOO
>
> These seem a polygon filled with many circles internally
>
> Instead I would like to obtain something like this:
>
>         O
>
>
>
> 2013/1/8 thomas bonfort <thomas.bonfort at gmail.com>:
>> what are you trying to obtain ?
>>
>> On 8 January 2013 13:16, Andrea Peri <aperi2007 at gmail.com> wrote:
>>> Hi,
>>> many thx for response.
>>>
>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ?
>>>
>>> No.
>>>
>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM
>>>
>>> I try to removing the geomtransform, but it do disappeared all symbol
>>> (ie polygons lesser then defined area).
>>>
>>> But I see something of good try-ing to increase the size and also
>>> adding a lesser than default outline.
>>>
>>> ie:
>>>    size 6
>>>    with 0.1
>>> and leaving the GeomTransform 'start'
>>>
>>> It is surely better, but still it seem a polygon filled with many circles.
>>> Instead my rendering is 1 only point for an entire polygon.
>>>
>>> This seem not clearly understandable from the returned legend.
>>>
>>> This is the result:
>>>
>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000
>>>
>>>
>>> Many thx for hints,
>>>
>>> Andrea.
>>>
>>> 2013/1/8 thomas bonfort <thomas.bonfort at gmail.com>:
>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ?
>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM
>>>>
>>>> --
>>>> thomas
>>>>
>>>> On 8 January 2013 12:18, Andrea Peri <aperi2007 at gmail.com> wrote:
>>>>> Hi,
>>>>>
>>>>> I have a polygon layer that at some scales try to render with a symbol.
>>>>> To do this I define a specific symbol style:
>>>>>
>>>>>   SYMBOL
>>>>>     NAME "circlefill"
>>>>>     TYPE ellipse
>>>>>     POINTS
>>>>>       1 1
>>>>>     END
>>>>>     FILLED true
>>>>>     ANCHORPOINT 0.5 0.5
>>>>>   END
>>>>>
>>>>>
>>>>> And use this in the class definition as here where I put two class one
>>>>> with a polygon rendering (when area bigger) and a second class with
>>>>> point rendering when area is lower:
>>>>>
>>>>>     CLASS
>>>>>       NAME 'area superiore a 1ha'
>>>>>       EXPRESSION ( ([AREA] >= 1000000) )
>>>>>       GROUP 'delimitazione zona di vincolo'
>>>>>       MAXSCALEDENOM 4000100
>>>>>       MINSCALEDENOM 50100
>>>>>       STYLE
>>>>>          COLOR "#F2BAFE80"
>>>>>          OUTLINECOLOR "#F2BAFE"
>>>>>          ANTIALIAS false
>>>>>       END
>>>>>     END
>>>>>     CLASS
>>>>>       NAME 'area inferiore a 1ha'
>>>>>       EXPRESSION ( ([AREA] < 1000000) )
>>>>>       GROUP 'delimitazione zona di vincolo'
>>>>>       MAXSCALEDENOM 4000100
>>>>>       MINSCALEDENOM 50100
>>>>>       STYLE
>>>>>          GEOMTRANSFORM 'start'
>>>>>          SYMBOL 'circlefill'
>>>>>          SIZE 4
>>>>>          COLOR "#F2BAFEFF"
>>>>>          OUTLINECOLOR "#F2BAFE"
>>>>>          ANTIALIAS false
>>>>>       END
>>>>>     END
>>>>>
>>>>> Unfortunately the getlegendgraphis don't recognize this symbol
>>>>> definition and seem to render always using a polygon style (because
>>>>> the layer is originally a polygon).
>>>>>
>>>>> This is what return the GetLegendGraphics.
>>>>>
>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000
>>>>>
>>>>> Am I wrong something in the class definitions ?
>>>>>
>>>>> Many thx,
>>>>>
>>>>> --
>>>>> -----------------
>>>>> Andrea Peri
>>>>> . . . . . . . . .
>>>>> qwerty àèìòù
>>>>> -----------------
>>>>> _______________________________________________
>>>>> mapserver-users mailing list
>>>>> mapserver-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>>
>>> --
>>> -----------------
>>> Andrea Peri
>>> . . . . . . . . .
>>> qwerty àèìòù
>>> -----------------
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------



More information about the MapServer-users mailing list