[Geoserver-devel] [jira] (GEOS-5224) Displaying geometry as a label shows wrong coordinates.

Blaz Repnik created BugGEOS-5224
Displaying geometry as a label shows wrong coordinates.

Issue Type:

BugBug

Affects Versions:

2.1.3

Assignee:

Andrea Aime

Created:

13/Jul/12 2:52 AM

Description:

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”?

Even if i do this:
<Label>
<ogc:PropertyName>GEOMETRY</ogc:PropertyName>
</Label>

POINT(x y) gets drawn on the image (again point is in pixel coordinates, now world ones).

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Blaz Repnik

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)