public class SpaceLoader
extends java.lang.Object
Constructor and Description |
---|
SpaceLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<ShapeFile> |
loadShapefiles(java.util.ArrayList<java.lang.Object> shapefiles)
Method to load a number of shape files from the respective array list containing these shapefiles
(as e.g.
|
static SpatialConfiguration |
loadSpatialConfiguration(java.lang.String configPath)
Method to load the spatial configuration from the configuration file located in the configPath folder
|
public static SpatialConfiguration loadSpatialConfiguration(java.lang.String configPath) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
configPath
- The (relative) path the spatial configuration is located atjava.io.IOException
- Will be thrown when an error occurs in the file handling while loading the spatial configurationcom.fasterxml.jackson.core.JsonParseException
- Will be thrown upon a parse error for the json file corresponding to the file handlercom.fasterxml.jackson.databind.JsonMappingException
- Will be thrown upon a mapping error for the json file corresponding to the file handlerpublic static java.util.Set<ShapeFile> loadShapefiles(java.util.ArrayList<java.lang.Object> shapefiles) throws java.lang.ClassCastException, java.lang.Exception
shapefiles
- The shapefiles used for a GeoSpatialModeljava.lang.ClassCastException
- Will be thrown when the ArrayList elements can't be cast to the shapefile objectsjava.lang.Exception
- Will be thrown when other errors occur