From: Andrea A. <and...@al...> - 2004-01-16 11:52:43
|
Aur=E9lio Calegari wrote: > Hello everybody, > > I have lots of shapefiles, but one in particular is quite large, that > represents the Sao Paulo city's streets. I'm running Tomcat 5.0 and wh= en > I try to print this map either with GT1 or GT2 I get an OutOfMemoryErr= or. > > I tried to set in tomcat -Xms10000K -Xmx256000K for increasing the VM > memory, but I just delayed the useless processing until I get that err= or > again. > > I can browse this map in some free viewers, such as MapBrowser and > MapWindow. > > Then I tried to take a little slice of the map by setting a little bbo= x > (servlet param), but again useless. It seems GeoTools always gets all > the map even when we want to get a little part of that. > > Is there a way to tell geotools it's not necessary to load all the map > into memory? Yes, but... Let me explain: * you are using the wms module in geotools which is, well, deprecated (at= least not actively mantained). I would advise you to try and use the Geoserv= er, which has the wms functionality as well and will have soon a web based configuration module * the lite-renderer in the current cvs operates in full streamed mode, no data is ever kept into memory, so if you use the wms from the current cvs you get what you are looking for without the need to use geoserver * the liter-renderer still loads attributes that are not really needed for the current map... a improvement for this is coming in the next few weeks (I have the helper code in place, just need to modify the li= te renderer to use it). Best regards Andrea Aime |