very very long processing time in detail level
----------------------------------------------

                 Key: GEOT-2588
                 URL: http://jira.codehaus.org/browse/GEOT-2588
             Project: GeoTools
          Issue Type: Bug
          Components: core render
    Affects Versions: 2.5.6, 2.5.5
         Environment: Geoserver, Windows, Jave JDK 1.5 and JDK 1.6
            Reporter: hts
            Assignee: Andrea Aime
            Priority: Critical
         Attachments: shapes.zip

Dear Team!

we have found a very critical thing that nakes in impossible to use the server 
for our cases. Without this problem it could be the super fastest geoserver. 

We are using teleatlas shapefiles and render them using the geoserver.  The 
files that are used for the test contains areas and the total file size is only 
a few megabytes. 

In higher levels until the scale 7500 it is wokring ok and the server reacts 
ok, but after that when I go deeper to scale ~4500 its taking already 10-20 
seconds, deeper causes the server to crash with a memory problem. 

I debugged the class ShapefileRenderer, made some log printouts. The same was 
sone with the StyledShapePainter class. 

In the case in high scalellevels (more than 10.000 up to 9M..) the following 
happens
-  the call graphics.draw(shape); of the StyledShapePainter.paint is fast
- loading time: less than 1 sec
- the following code is excuted many times, but fast, because there are less 
coordinates in  the geometry / shape
- result on the screen is OK
2 Jul 16:23:47 DEBUG [renderer.shape] - before  createStyle ...   
scaleRange:[3974209.0962380837, 3974209.0962380837]
2 Jul 16:23:47 DEBUG [renderer.shape] - after  createStyle ... 
scaleRange:[3974209.0962380837, 3974209.0962380837]
2 Jul 16:23:47 DEBUG [renderer.shape] - dimensioin:2
2 Jul 16:23:47 DEBUG [renderer.shape] - area:22.021736991590146
2 Jul 16:23:47 DEBUG [renderer.shape] - length:41.354252948086845
2 Jul 16:23:47 DEBUG [renderer.shape] - NumGeometries:3
2 Jul 16:23:47 DEBUG [renderer.shape] - getSRID:0
2 Jul 16:23:47 DEBUG [renderer.shape] - coordinates length:36
2 Jul 16:23:47 DEBUG [renderer.shape] - before paint1

In the second case (sacle: 7762, we jsut see a few lines on thre screeen)

- the call graphics.draw(shape); of the StyledShapePainter.paint is very slow, 
takes sometimes 2- 3 seconds per operation, because there are many coordinates 
in the shape, what is totally unnecessary
- loading time: ~20 sec
- result on the screen is just existing of a few lines!
- the following code is excuted many times and based on the long time to 
process the graphics paint methode, it takes long
 Jul 16:24:53 DEBUG [renderer.shape] - applying symbolizer 
org.geotools.styling.polygonsymbolizeri...@1367d25a
 Jul 16:24:53 DEBUG [renderer.shape] - before  createStyle ...   
scaleRange:[7762.127141087124, 7762.127141087124]
 Jul 16:24:53 DEBUG [renderer.shape] - after  createStyle ... 
scaleRange:[7762.127141087124, 7762.127141087124]
 Jul 16:24:53 DEBUG [renderer.shape] - area:1.3864384599060444E10
 Jul 16:24:53 DEBUG [renderer.shape] - length:867085.4970931178
 Jul 16:24:53 DEBUG [renderer.shape] - NumGeometries:2
 Jul 16:24:53 DEBUG [renderer.shape] - getSRID:0
 Jul 16:24:53 DEBUG [renderer.shape] - coordinates length:6392
 Jul 16:24:53 DEBUG [renderer.shape] - before paint1bounds 
54.3003511,24.2250281  54.8057382,24.8082514 minX:54.3003511 minY:24.2250281 
maxX:54.8057382 maxY:24.8082514
 
 
 Can you please tell me what we shall do?
 
 We have already invested 2 weeks to come so far, this was very diffucult to 
dectect. 
 
 
 br,
 Markus

The shapes, style and feature type is attached for your info!


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to