Thank you,
That is exacly what i was missing "the_geom" to get the geometry!
Sorry for my late reply,
Problem solved with:
<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="
http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc
="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version
="1.0.0">
<sld:NamedLayer>
<sld:Name>GMI_CNTRY String Mapa_Mundi</sld:Name>
<sld:UserStyle>
<sld:Name>GMI_CNTRY String Mapa_Mundi</sld:Name>
<sld:Title>GMI_CNTRY String</sld:Title>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:CssParameter name="fill">
<ogc:Function name="Interpolate">
<ogc:Function name="area">
<ogc:PropertyName>the_geom</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>100000</ogc:Literal>
<ogc:Literal>#0000FF</ogc:Literal>
<ogc:Literal>500000</ogc:Literal>
<ogc:Literal>#59FFA6</ogc:Literal>
<ogc:Literal>3000000</ogc:Literal>
<ogc:Literal>#FF0100</ogc:Literal>
<ogc:Literal>color</ogc:Literal>
</ogc:Function>
</sld:CssParameter>
</sld:Fill>
<sld:Stroke>
<sld:CssParameter name="stroke">#FFFFFF</sld:CssParameter>
</sld:Stroke>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
2013/12/6 Andrea Aime <andrea.a...@geo-solutions.it>
> On Fri, Dec 6, 2013 at 10:18 AM, Alessio Fabiani <
> alessio.fabi...@geo-solutions.it> wrote:
>
>> The SLD your are using requires SE 1.1.
>>
>
> Nope, the filter function is also available for 1.0
>
>
>>
>> The common 1.0 approach is to write a rules for each value.
>>
>> In any case I dubt that you have CNTRY_NAMEs called 1,2,3,4 ... maybe
>> would be better to change numbers with the country names.
>>
>
> Agree... where is your data coming from? If the data is from a shapefile,
> the geometry column name is "the_geom".
> Mind, the function computes the area using cartesian geometry, it will not
> work properly if your data is in geographic coordinates
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users