Hi Jeffrey, You are right in that you need to get rid of MemoryDataStore. It sounds like the reason you are using it is to be able to work with multiple files at once. If that is the case, you may wish to consider loading all of your shapefiles into a postgis database, and using a postgis datastore instead.
Serving your files via wfs with GeoServer is an option too, but I think the postgis solution is simpler. Also, as I am sure you are aware the graph module builds entire graphs in memory which leads to a big memory requirement. What I have done in the past to get around this is not store geometries or features in the graph. For instance for a line network, Just storing an x,y coordinate at each node, and an identifier at each edge. Then when an actual edge attribute or geometry is needed it is loaded on demand from the database. Hope that helps, if you have any more questions feel free to ask. -Justin Hyink, Jeffrey (LCDR) wrote: > Hello all, > > Looking for a leg-up or suggestion for my project. I’m using GT2 to do > a network simulation using the graph module. Currently, it’s working > like a champ on a small city (~200 street features loaded from a > shapefile). I took a swing at the a large city (Washington DC) and I’m > running into memory issues. I’ve already increased the java VM size > and…well it aint hacking it. I think the majority of the problem is > that I’m using a ShapefileDataStore to access shapefiles and then > building a MemoryFeatureCollection of features from multiple files….I > attempted to make this cook with about 100,000 features and it’s just > obviously structured wrong. > > > > So, if anyone has any steer for me on how to restructure I’d be > grateful. Couple thoughts/questions: > > > > 1. If I make another ShapefileDataStore as a grand collection > (instead of the MemoryFeatureCollection) and write to it > (basically creating a new composite shapefile), will that > alleviate the useage of physical memory? As in, when I “get” a > reference to the object (Feature) of a graph element, will it do > this via the ShapefileDataStore and file access or are all of the > features still retained in memory? > 2. Is putting a GeoServer (or other server) implementation on my > machine or networked host a better answer? > > > > Thanks much, > > Jeff > > !DSPAM:1004,456d2b5a219431665516417! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:1004,456d2b5a219431665516417! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > !DSPAM:1004,456d2b5a219431665516417! -- Justin Deoliveira [EMAIL PROTECTED] The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users