Hi,

Is there a sample on Recode function?

Thanks,
Sergey

On 13.07.2011 21:16, Andrea Aime wrote:
> On Wed, Jul 6, 2011 at 9:51 AM, LSA<[email protected]>  wrote:
>    
>> Hi,
>>
>> What are best practices to maximize geotools rendering performance?
>>
>> Layer contains 25000 features
>>
>> With simple style - rendering tooks<0.5 sec.
>>
>> With style like:
>> [[ Line_ID>= 2.0 ] AND [ Line_ID<  11.2 ]] ->  draw with color1
>> [[ Line_ID>= 11.2 ] AND [ Line_ID<  20.4 ]] ->  draw with color2
>> [[ Line_ID>= 20.4 ] AND [ Line_ID<  29.6 ]] ->  draw with color3
>> [[ Line_ID>= 29.6 ] AND [ Line_ID<  38.8 ]] ->  draw with color4
>> [[ Line_ID>= 38.8 ] AND [ Line_ID<  47.9 ]] ->  draw with color5
>> [[ Line_ID>= 47.9 ] AND [ Line_ID<  57.1 ]] ->  draw with color6
>> [[ Line_ID>= 57.1 ] AND [ Line_ID<  66.3 ]] ->  draw with color7
>> [[ Line_ID>= 66.3 ] AND [ Line_ID<  75.5 ]] ->  draw with color8
>> [[ Line_ID>= 75.5 ] AND [ Line_ID<  84.7 ]] ->  draw with color9
>> [[ Line_ID>= 84.7 ] AND [ Line_ID<  93.9 ]] ->  draw with color10
>> [[ Line_ID>= 93.9 ] AND [ Line_ID<  103.1 ]] ->  draw with color11
>> [[ Line_ID>= 103.1 ] AND [ Line_ID<  112.3 ]] ->  draw with color12
>> [[ Line_ID>= 112.3 ] AND [ Line_ID<  121.5 ]] ->  draw with color13
>> [[ Line_ID>= 121.5 ] AND [ Line_ID<  130.7 ]] ->  draw with color14
>> [[ Line_ID>= 130.7 ] AND [ Line_ID<  139.9 ]] ->  draw with color15
>> [[ Line_ID>= 139.9 ] AND [ Line_ID<  149.1 ]] ->  draw with color16
>> [[ Line_ID>= 149.1 ] AND [ Line_ID<  158.3 ]] ->  draw with color17
>> [[ Line_ID>= 158.3 ] AND [ Line_ID<  167.5 ]] ->  draw with color18
>> [[ Line_ID>= 167.5 ] AND [ Line_ID<  176.7 ]] ->  draw with color19
>> [[ Line_ID>= 176.7 ] AND [ Line_ID<= 185.0 ]] ->  draw with color20
>>
>> its performance really poor - it tooks 3 sec to render (which about six
>> time slower).
>>      
> Today I've opimized a filter function, Recode, used for a similar case and
> got a very good speedup:
> http://geo-solutions.blogspot.com/2011/07/developer-corner-taming-massive-style.html
>
> I think it's possible to do the same for the Categorize function, which is
> the one that you need for the case above.
> See the devel mailing list, there is a thread about Recode that explains the
> approach I used
>
> Cheers
> Andrea
>
>    


------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to