Akos,

What column in the table contains the point geometry for your objects? The name 
of that column should be put instead of "the_geom".

Regards,

Edward

> Date: Mon, 29 Oct 2012 12:24:12 +0100
> From: [email protected]
> To: [email protected]
> Subject: [Geoserver-users] the geometry property when using geometry  
> transformations in SLD?
> 
> Hi,
> 
> I'm trying to use geometry transformations in an SLD when displaying a
> graphic for a point symbolizer. (I'm trying to have a vertical offset
> for the graphic to be displayed).
> 
> I'm looking into this page for details:
> http://docs.geoserver.org/stable/en/user/styling/sld-extensions/geometry-transformations.html#geometry-transformations
> 
> this is what I have in my SLD:
> 
>                     <sld:PointSymbolizer 
> uom="http://www.opengeospatial.org/se/units/metre";>
>                         <sld:Geometry>
>                             <ogc:Function name="offset">
>                                 <ogc:PropertyName>the_geom</ogc:PropertyName>
>                                 <ogc:Literal>0</ogc:Literal>
>                                 <ogc:Literal>5000</ogc:Literal>
>                             </ogc:Function>
>                         </sld:Geometry>
>                         <sld:Graphic>
>                             <sld:ExternalGraphic>
>                                 <sld:OnlineResource xlink:type="simple" 
> xlink:href="obstacle.svg"/>
>                                 <sld:Format>image/svg+xml</sld:Format>
>                             </sld:ExternalGraphic>
>                             <sld:Size>5000</sld:Size>
>                         </sld:Graphic>
>                     </sld:PointSymbolizer>
> 
> 
> 
> but, this doesn't work, and I get an error from geoserver:
> 
> org.geoserver.platform.ServiceException: The requested Style can not be used 
> with this layer.  The style specifies an attribute of OAM:oam_peaks and the 
> layer is: OAM:oam_peaks
> 
>     at 
> org.geoserver.wms.map.GetMapKvpRequestReader.checkStyle(GetMapKvpRequestReader.java:1130)
> 
> 
> 
> but, I don't really understand, what would be the name for 'the
> geometry'? I don't really have it named, but it's the very point that
> I'm trying to symbolize, or the offset is about the graphic that is the
> sibling element of this geometry function in the SLD. is there a
> straightforward way to refer to that?
> 
> 
> Akos
> 
> 
> ------------------------------------------------------------------------------
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
                                          
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to