Hailey,

Alternatively, check out this earlier thread:

http://osgeo-org.1560.n6.nabble.com/SLD-anchor-point-of-a-symbol-td3808239.html

This way, you change the graphic itself and maintain the PointSymbolizer.

Regards,

Edward 

Date: Fri, 11 May 2012 15:02:19 -0700
From: [email protected]
To: [email protected]
Subject: [Geoserver-users] PointSymbolizer anchor

Hi All,I am trying to figure out how to write PointSymbolizer SLD that anchors 
the bottom of the graphic to the point location, not the center of the graphic 
to the point location. For example, I am using a google like teardrop to 
represent my points, but the center of the graphic is where the image in 
anchored.. so the bottom of the teardrop is slightly below the point location. 
I'd like the bottom of the teardrop to be on the point location. I have 
included an image of what I currently have (top image) and what I'd like 
(bottom).
This is my basic SLD:áá áá<Rule>
á á á á áá<Name>Large</Name>
á á á á á á<MaxScaleDenominator>160000000</MaxScaleDenominator>
á á á á áá<PointSymbolizer>
á á á á á áá<Graphic>
á á á á á á á<ExternalGraphic>
á á á á á á á 
á<OnlineResourceáxmlns:xlink="http://www.w3.org/1999/xlink"áxlink:type="simple"áxlink:href="file:/home/moti.png"/>
á á á á á á á áá<Format>image/png</Format>
á á á á á á áá</ExternalGraphic>
á á á á á á áá<Size>14</Size>
á á á á á áá</Graphic>
á á á á áá</PointSymbolizer>
á á á áá</Rule>

Thanks in advance!
Hailey

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users                    
                  
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to