Ofcourse I cached the Datastore and reused it for all the map operations for
both MapViewer and Geotools.
Otherwise it would not be a good comparison.
I discovered that the difference is bigger if the scale factor is larger.
For scale 1:4000 or less there is not a big difference between MapViewer and
Geotools.
For scale 1:10.000 there is a big difference, 3.5 seconds for MapViewer and 5
seconds for Geotools.
It seems Geotools has more problems rendering small features.
Ron
________________________________
From: Andrea Aime <[email protected]>
To: Ron Lindhoudt <[email protected]>
Cc: "[email protected]"
<[email protected]>
Sent: Friday, June 29, 2012 5:25 PM
Subject: Re: [Geotools-gt2-users] Rendering Oracle DB layer is very slow
compared to MapViewer
On Fri, Jun 29, 2012 at 4:02 PM, Ron Lindhoudt <[email protected]> wrote:
Andrea,
>
>
>I tried to do the comparison as clean as possible (ofcourse).
>I just timed the paint function of GTRenderer after multiple requests in a JSP
>servlet.
>The initialisation of the Datastore is outside the timing comparison!
That's not the point, the store must be cached and reused over and over, not
created each time
I initialise the Datastore only once.
>
>
>
>For a map with 1 Oracle DB layer I timed a difference of 0.5 seconds for
>MapViewer and 1.5 seconds for Geotools.
>For a map with 5 Oracle DB layers I timed a difference of 2 seconds for
>MapViewer and 3 seconds for Geotools.
>So it seems that the overhead in the Geotools paint method is 1 second bigger
>for Geotools than for MapViewer independent of the number of layers.
Can you give GeoServer a shot? If that is slower too then there is definitely
something that could be improved
(not surprisingly, since MapViewer is done by Oracle itself)
Cheers
Andrea
--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users