Hi,
i found out, if i use additionaly <VendorOption
name="followLine">true</VendorOption> then i can avoid text outer polygon.
Maybe it can help somebody.
<TextSymbolizer>
<Geometry><ogc:Function name="boundary">
<ogc:PropertyName>the_geom</ogc:PropertyName>
</ogc:Function>
</Geometry>
<Label>
<PropertyName>text</PropertyName>
</Label>
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>10</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>
<VendorOption name="forceLeftToRight">false</VendorOption>
<VendorOption name="followLine">true</VendorOption>
</TextSymbolizer>
2016-11-17 15:48 GMT+01:00 Andrea Aime <[email protected]>:
> Hi Kamil,
> nope, I don't know.... you might want to open a ticket at
> https://osgeo-org.atlassian.net/projects/GEOS/summary
>
> Cheers
> Andrea
>
> On Thu, Nov 17, 2016 at 3:44 PM, Kamil Roczniok <[email protected]>
> wrote:
>
>> Thx for your help Andrea and sorry for missed CC,
>>
>> Do you have any idea how can i avoid text outer polygon?
>> Second problem its text on polygon top, it is inversed in y axis, but i
>> assume that is side effect of forceLeftToRight and maybe cant be
>> resolved.
>>
>> <TextSymbolizer>
>> <Geometry><ogc:Function name="boundary">
>> <ogc:PropertyName>the_geom</ogc:PropertyName>
>> </ogc:Function>
>> </Geometry>
>> <Label>
>> <PropertyName>text</PropertyName>
>> </Label>
>> <LabelPlacement>
>> <LinePlacement>
>> <PerpendicularOffset>10</PerpendicularOffset>
>> </LinePlacement>
>> </LabelPlacement>
>> <VendorOption name="forceLeftToRight">false</VendorOption>
>> </TextSymbolizer>
>>
>> 2016-11-17 14:50 GMT+01:00 Andrea Aime <[email protected]>:
>>
>>> Ah ok, (please keep the list in cc)
>>> hum... it may be that the code is applying the perp offset and the
>>> rotation to keep the
>>> text readable in the wrong order.
>>>
>>> What happens if you disable the automatic rotation by adding also
>>>
>>> <VendorOption name="forceLeftToRight">false</VendorOption>
>>>
>>> Cheers
>>> Andrea
>>>
>>> On Thu, Nov 17, 2016 at 2:44 PM, Kamil Roczniok <[email protected]>
>>> wrote:
>>>
>>>> Thx for you response Andrea,
>>>>
>>>> I tried your idea, but effect is not what i expected. It works exactly
>>>> like followLine=true + displacement
>>>>
>>>> <TextSymbolizer>
>>>> <Geometry><ogc:Function name="boundary">
>>>> <ogc:PropertyName>the_geom</ogc:PropertyName>
>>>> </ogc:Function>
>>>> </Geometry>
>>>> <Label>
>>>> <PropertyName>text</PropertyName>
>>>> </Label>
>>>> <LabelPlacement>
>>>> <LinePlacement>
>>>> <PerpendicularOffset>-10</PerpendicularOffset>
>>>> </LinePlacement>
>>>> </LabelPlacement>
>>>> </TextSymbolizer>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2016-11-17 9:16 GMT+01:00 Andrea Aime <[email protected]>:
>>>>
>>>>> Hi,
>>>>> with followLine = true it certainly cannot be done, and I'm not sure
>>>>> if it can in general, but try this: remove the followLine
>>>>> and then set a line placement with a perpendicular offset.
>>>>> Reference docs here:
>>>>>
>>>>> http://docs.geoserver.org/2.9.2/user/styling/sld-reference/t
>>>>> extsymbolizer.html#lineplacement
>>>>>
>>>>>
>>>>>
>>>>> Cheers
>>>>> Andrea
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Nov 17, 2016 at 8:59 AM, Kamil Roczniok <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> can i show text-symbolizer follow line inner polygon? Exactly like
>>>>>> 'yellow' polygon (its prepared with Leaflet && html) . Green polygon its
>>>>>> what i can do with sld. I can use <Displacement> but it causes
>>>>>> offset for all lines, and works good only for one side.
>>>>>>
>>>>>> <TextSymbolizer>
>>>>>>
>>>>>> <Geometry><ogc:Function name="boundary">
>>>>>>
>>>>>> <ogc:PropertyName>the_geom</og
>>>>>>> c:PropertyName>
>>>>>>
>>>>>> </ogc:Function>
>>>>>>
>>>>>> </Geometry>
>>>>>>
>>>>>> <Label>
>>>>>>
>>>>>> <PropertyName>text</PropertyName>
>>>>>>
>>>>>> </Label>
>>>>>>
>>>>>> <VendorOption name="followLine">true</Vendor
>>>>>>> Option>
>>>>>>
>>>>>> </TextSymbolizer>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------
>>>>>> ------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Geoserver-users mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ==
>>>>> GeoServer Professional Services from the experts! Visit
>>>>> http://goo.gl/it488V for more information.
>>>>> ==
>>>>>
>>>>> Ing. Andrea Aime
>>>>> @geowolf
>>>>> Technical Lead
>>>>>
>>>>> GeoSolutions S.A.S.
>>>>> Via di Montramito 3/A
>>>>> 55054 Massarosa (LU)
>>>>> phone: +39 0584 962313
>>>>> fax: +39 0584 1660272
>>>>> mob: +39 339 8844549
>>>>>
>>>>> http://www.geo-solutions.it
>>>>> http://twitter.com/geosolutions_it
>>>>>
>>>>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>>>>
>>>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>>>>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>>>>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>>>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>>>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>>>>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>>>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>>>>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>>>>> principi dettati dal D.Lgs. 196/2003.
>>>>>
>>>>>
>>>>>
>>>>> The information in this message and/or attachments, is intended solely
>>>>> for the attention and use of the named addressee(s) and may be
>>>>> confidential
>>>>> or proprietary in nature or covered by the provisions of privacy act
>>>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>>>> Code).Any use not in accord with its purpose, any disclosure,
>>>>> reproduction,
>>>>> copying, distribution, or either dissemination, either whole or partial,
>>>>> is
>>>>> strictly forbidden except previous formal approval of the named
>>>>> addressee(s). If you are not the intended recipient, please contact
>>>>> immediately the sender by telephone, fax or e-mail and delete the
>>>>> information in this message that has been received in error. The sender
>>>>> does not give any warranty or accept liability as the content, accuracy or
>>>>> completeness of sent messages and accepts no responsibility for changes
>>>>> made after they were sent or for other risks which arise as a result of
>>>>> e-mail transmission, viruses, etc.
>>>>>
>>>>> -------------------------------------------------------
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> ==
>>> GeoServer Professional Services from the experts! Visit
>>> http://goo.gl/it488V for more information.
>>> ==
>>>
>>> Ing. Andrea Aime
>>> @geowolf
>>> Technical Lead
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054 Massarosa (LU)
>>> phone: +39 0584 962313
>>> fax: +39 0584 1660272
>>> mob: +39 339 8844549
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>>
>>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>>
>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>>> principi dettati dal D.Lgs. 196/2003.
>>>
>>>
>>>
>>> The information in this message and/or attachments, is intended solely
>>> for the attention and use of the named addressee(s) and may be confidential
>>> or proprietary in nature or covered by the provisions of privacy act
>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>>> copying, distribution, or either dissemination, either whole or partial, is
>>> strictly forbidden except previous formal approval of the named
>>> addressee(s). If you are not the intended recipient, please contact
>>> immediately the sender by telephone, fax or e-mail and delete the
>>> information in this message that has been received in error. The sender
>>> does not give any warranty or accept liability as the content, accuracy or
>>> completeness of sent messages and accepts no responsibility for changes
>>> made after they were sent or for other risks which arise as a result of
>>> e-mail transmission, viruses, etc.
>>>
>>> -------------------------------------------------------
>>>
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users