|
From: SourceForge.net <no...@so...> - 2006-07-28 19:52:37
|
Bugs item #1528630, was opened at 2006-07-25 20:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1528630&group_id=1703 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Repast J Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tim Schoenharl (tschoenh) Assigned to: Nobody/Anonymous (nobody) Summary: Mangled File Names when using OpenMapData.writeAgentsNoShp Initial Comment: When using the writeAgentsNoShp method to write an agent list out to a shapefile with associated dbf file, I noticed my filenames were getting a bit mangled. I called the method like so: writeAgentsNoShp(agentList, omDisplay.getProjection(), "test.shp"); resulting in these files being generated: tes.shp tes.shx testdbf I tracked down the source of the mangling to two different lines in anl.repast.gis.data.OpenMapData: Line 626: String datasourceNoSHP = datasource.substring(0, datasource.length() - 4); But should be: String datasourceNoSHP = datasource.substring(0, datasource.length() - 3); Line 735: String newDbfString = datasourceNoSHP + "dbf"; Should be: String newDbfString = datasourceNoSHP + ".dbf"; After making these changes and rebuilding the repast.jar things seem to work as desired. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1528630&group_id=1703 |