I have a shapefile of an Ordnance Survey Mastermap ITN road network that I am trying to load into an agent-based modelling software called Mason. When I try to run my model I get the following error:
The OS ITN data was downloaded as a compressed .gz file, with two GML files within. These were were then converted to .MIF/.MID using OSM2MIF. These were then loaded into QGIS and saved as .SHP (right click>Save As...>ESRI Shapefile).
In QGIS and ArcMap the resultant shapefile of the road network looks as expected and all the metadata is present. However, when I try to load it using my Mason model, it fails. It seems to only fail using this shapefile so I know it's not my model and is thus a problem with the shapefile.
Have I done something wrong during the conversion? Does anyone know how best to use Ordnance Survey Mastermap ITN and convert to usable shapefiles?
أكثر...
Exception in thread "main" java.lang.IllegalArgumentException: shpFile is null; likely file not found
My model works fine with every other road network (OS Mastermap Meridian 2, Boundary-Line etc.) I can throw at it and can display other shapefiles I'm using. All the shapefiles show up in QGIS just fine.
The OS ITN data was downloaded as a compressed .gz file, with two GML files within. These were were then converted to .MIF/.MID using OSM2MIF. These were then loaded into QGIS and saved as .SHP (right click>Save As...>ESRI Shapefile).
In QGIS and ArcMap the resultant shapefile of the road network looks as expected and all the metadata is present. However, when I try to load it using my Mason model, it fails. It seems to only fail using this shapefile so I know it's not my model and is thus a problem with the shapefile.
Have I done something wrong during the conversion? Does anyone know how best to use Ordnance Survey Mastermap ITN and convert to usable shapefiles?
أكثر...