This is probably a silly question, but what is best practice for storing data files and then referencing them in MASON?
I've been learning how to use MASON by tinkering with the demos that come with it (antsforage etc.) and those packaged with GeoMASON (gridlock etc.).
I'm now developing my own models but I'm constantly duplicating data files, particularly large shapefiles, by following a standard setup:
This works fine. However, when I try to have one single data folder in, say, /workspace/Project/data or /workspace/Project/src/data so as to not have multiple copies of the large shapefiles and then directly reference the same files:
URL roadsFile = MKOne.class.getResource ("Volumes/JetDrive/GoogleDrive/workspace/data/roads.shp");
I get an error:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: shpFile is null; likely file not found
I have tried adding the 'data' folder as a source folder in Eclipse but that fails also, with the error:
Error while adding to build path. Reason: source folder 'data' in project 'Project' cannot output to distinct source folder 'src'
Any advice would be greatly appreciated.