Do you have a specific Java error ? Sidonie
________________________________ De : Feras Odeh <[email protected]> À : Sidonie Christophe <[email protected]> Envoyé le : Mer 18 août 2010, 11h 57min 08s Objet : RE: [Geotools-gt2-users] Optimize shapefile loading Thanks.. I have tried this but the problem is that when I zoom in or out I got a white map !! Feras From:Sidonie Christophe [mailto:[email protected]] Sent: Wednesday, August 18, 2010 12:19 PM To: Feras Odeh Subject: Re : [Geotools-gt2-users] Optimize shapefile loading Hello, Did you try to use a cache as following ? It may improve the display... " ... CachingFeatureSource cache = new CachingFeatureSource(featureSource); mymap.addLayer(cache, style); .... " Sidonie ________________________________ De :Feras Odeh <[email protected]> À : [email protected] Envoyé le : Mer 18 août 2010, 10h 37min 49s Objet : [Geotools-gt2-users] Optimize shapefile loading Hello .. I’m new to geo tools I’m trying to add shape file to mapcontext object so I use the following code I found on the quick start guide File file = JFileDataStoreChooser.showOpenFile("shp", null); if (file == null) { return; } FileDataStore store; FeatureSource featureSource = null; try { store = FileDataStoreFinder.getDataStore(file); featureSource = store.getFeatureSource(); MapContext map = new DefaultMapContext(); map.setTitle("Rammallah Parcels"); map.addLayer(featureSource, null); My question is this the best way to add a big shape file to map as I have really big shapefiles more than 50 mb or there any other optimization I could do? Is there any example could I follow to solve this problem? Thanks Feras
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
