Mauricio Mantilla wrote:

Hi all,
I created a mapviewer using StreamingRenderer and data from a Postgis
database.
I based my code for the rendering on this example:
http://www.geotools.org/display/GEOTOOLS/How+to+create+a+custom+MapLayer+--+jdk+1.5+geotools+2.1.M4

When I run the project and everytime I zoom or pan it takes too long to
render the map. I also have uDig and I noticed it takes almost no time to
render the same data. I think uDig also uses StreamingRenderer.

How can I improve the rendering speed to make more like uDig??

Thanks



I havent looked at what you're doing, but the common mistakes are:

1. you have to set a few params in the datastore:

       param.put("wkb enabled","true");
        param.put("loose bbox","true");

2. you have to set this for the renderer:

       Map rendererParams = new HashMap();
rendererParams.put("optimizedDataLoadingEnabled",new Boolean(true) ); renderer.setRendererHints(rendererParams);


dave


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to