Phil,
Regarding your labeling issues, check the results you get with untiled
WMS requests. You may want to adjust meta-tile settings so there is
enough canvas to actually place the label near its point location before
the canvas is sliced into 256 x 256 pixels.
HTH
Edward
On 19-06-17 07:43, Andrea Aime wrote:
Hi Phil,
did you declare the ogc prefix at the top of the file? E.g.:
<StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld"
*xmlns:ogc="http://www.opengis.net/ogc"*
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
</StyledLayerDescriptor>
Cheers
Andrea
On Mon, Jun 19, 2017 at 2:55 AM, Phil Scadden <p.scad...@gns.cri.nz
<mailto:p.scad...@gns.cri.nz>> wrote:
<Rule>
<MaxScaleDenominator>250000</MaxScaleDenominator>
<TextSymbolizer><Label><ogc:PropertyName>name</ogc:PropertyName></Label><Font><CssParameter
name="font-family">Arial</CssParameter><CssParameter
name="font-size">11</CssParameter></Font><LabelPlacement><PointPlacement><AnchorPoint><AnchorPointX>0</AnchorPointX><AnchorPointY>0</AnchorPointY></AnchorPoint><Displacement><DisplacementX>0</DisplacementX><DisplacementY>10</DisplacementY></Displacement></PointPlacement></LabelPlacement><Fill><CssParameter
name="fill">#000000</CssParameter></Fill>
<Priority><PropertyName>year</PropertyName></Priority>
</TextSymbolizer>
</Rule>
Adding the priority tag resulted in validation of:
line 63: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'PropertyName'. One of
'{"http://www.opengis.net/ogc":expression}' is expected.
(line 63 is the priority).
Also, this labelling is producing unexpected results. With or
without the priority tag, 2 points very very close together get no
label at all. I would expect one of them to label. Another point
has label at one zoom, but when zooming in further, it disappears.
(I am using Tiled).
Notice: This email and any attachments are confidential and may
not be used, published or redistributed without the prior written
consent of the Institute of Geological and Nuclear Sciences
Limited (GNS Science). If received in error please destroy and
immediately notify GNS Science. Do not copy or disclose the contents.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
<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.
-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users