On Wed, Jul 11, 2012 at 2:28 PM, GeoUser <[email protected]> wrote:

> I have a point layer and a SLD where i do this:
>
> <Label>
>     <ogc:Function name="getX">
>       <ogc:PropertyName>GEOMETRY</ogc:PropertyName>
>     </ogc:Function>
> </Label>
>
> And to my suprise i don't get X in world coordinates but X in image pixel
> coordinates. Why does this happen? Because when processing SLD, the
> coordinates are already in "image space"?
>

It's a bug, things should be evaluated in their original coordinate system,
but
it's quite a hard one to fix.

Labels are done last, when all the geometries are already turned into
screen space,
making the label be computed first will require changes in more than one
class
back in GeoTools.

Please open a ticket on jira.codehaus.org, but be also ready to fix it
yourself
if you need the fix quickly

Cheers
Andrea

-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
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