public final class ShapeFileReader extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
inspectNodeCentroid(String number) |
static void |
readLinks(String shapeFileName,
Map<String,org.opentrafficsim.core.network.Link> links,
Map<String,org.opentrafficsim.core.network.geotools.NodeGeotools.STR> nodes,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
static Map<String,org.opentrafficsim.core.network.geotools.NodeGeotools.STR> |
readNodes(String shapeFileName,
String numberType,
boolean returnCentroid,
boolean allCentroids) |
static String |
removeQuotes(String name) |
static void |
shapeFileInfo(String shapeFileName) |
public static Map<String,org.opentrafficsim.core.network.geotools.NodeGeotools.STR> readNodes(String shapeFileName, String numberType, boolean returnCentroid, boolean allCentroids) throws IOException
shapeFileName - the nodes shapefile to readnumberType - ???returnCentroid - if true only loop through the centroid/zones (in case of mixed nodes and centroids)allCentroids - if true: the file contains centroids (a centroid file)IOException - on errorpublic static boolean inspectNodeCentroid(String number)
number - number stringpublic static void readLinks(String shapeFileName, Map<String,org.opentrafficsim.core.network.Link> links, Map<String,org.opentrafficsim.core.network.geotools.NodeGeotools.STR> nodes, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) throws IOException
shapeFileName - the nodes shapefile to readlinks - : returns the file with real linksnodes - the map of nodes to retrieve start and end nodesimulator - simulator for the animation registrationIOException - on errorpublic static void shapeFileInfo(String shapeFileName) throws IOException
shapeFileName - the areas shapefile to readIOException - on errorCopyright © 2014–2015 Delft University of Technology. All rights reserved.