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

Reply via email to