Hello everyone,
I try to set anchor points for Graphics inside a Point symbolizer. Geoserver
2.2.0, Oracle JDK 6u35.
When I read http://schemas.opengis.net/se/1.1.0/Symbolizer.xsd, this should be
possible:
<xsd:complexType name="GraphicType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="se:ExternalGraphic"/>
<xsd:element ref="se:Mark"/>
</xsd:choice>
<xsd:element ref="se:Opacity" minOccurs="0"/>
<xsd:element ref="se:Size" minOccurs="0"/>
<xsd:element ref="se:Rotation" minOccurs="0"/>
<xsd:element ref="se:AnchorPoint" minOccurs="0"/>
<xsd:element ref="se:Displacement" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
But: If I write a rule using those properties AnchorPoint and Displacement:
<sld:Rule>
<sld:MaxScaleDenominator>10000.0</sld:MaxScaleDenominator>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="symbol.svg"/>
<sld:Format>image/svg+xml</sld:Format>
</sld:ExternalGraphic>
<sld:Size>25</sld:Size>
<sld:Rotation>10</sld:Rotation>
<sld:AnchorPoint>
<sld:AnchorPointX>1</sld:AnchorPointX>
<sld:AnchorPointY>1</sld:AnchorPointY>
</sld:AnchorPoint>
<sld:Displacement>
<sld:DisplacementX>-20</sld:DisplacementX>
<sld:DisplacementY>-20</sld:DisplacementY>
</sld:Displacement>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
I do not see any re-placement of my symbol. The style editor reports "no
element AnchorPoint expected" when validating. (Rotation works).
The problem arises from up to 4 different Items to be placed at the same point
- I would like to put the one symbol at anchor (1,1) and the others at (-1,-1),
(-1,1) and (1,-1). Are there other ways to achieve such a behavior besides
changing the data?
Kind regards,
Sebastian Schmidt
SWM - Besser leben mit M.
Informations- und Prozesstechnik
Anwendungen Technische Geschäftsfelder
Telefon: 089/23 61-44 78
Telefax: 089-2361-70 44 78
[email protected]
www.swm.de
SWM Services GmbH, Emmy-Noether-Straße 2, 80992 München; Geschäftsführer Dr.
Kurt Mühlhäuser, Herbert König, Reinhard Büttner, Stephan Schwarz, Dr. Florian
Bieberbach; Sitz München; Registergericht München HRB 126 674;
Aufsichtsratsvorsitzender Oberbürgermeister Christian Ude
Der Inhalt dieser E-Mail oder eventueller Anhänge ist ausschließlich für den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass
jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe
des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
mit dem Absender der E-Mail in Verbindung zu setzen.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users