|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sim.io.geo.ShapeFileImporter
public class ShapeFileImporter
A native Java importer to read ERSI shapefile data into the GeomVectorField. We assume the input file follows the standard ESRI shapefile format.
Method Summary | |
---|---|
static boolean |
isSupported(int shapeType)
|
static void |
read(java.net.URL shpFile,
GeomVectorField field)
Populate field from the shape file given in fileName |
static void |
read(java.net.URL shpFile,
GeomVectorField field,
sim.util.Bag masked)
Populate field from the shape file given in fileName |
static void |
read(java.net.URL shpFile,
GeomVectorField field,
sim.util.Bag masked,
java.lang.Class<?> masonGeometryClass)
Populate field from the shape file given in fileName |
static void |
read(java.net.URL shpFile,
GeomVectorField field,
java.lang.Class<?> masonGeometryClass)
Populate field from the shape file given in fileName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isSupported(int shapeType)
public static void read(java.net.URL shpFile, GeomVectorField field) throws java.io.FileNotFoundException
shpFile
- to be read fromfield
- to contain read in data
java.io.FileNotFoundException
public static void read(java.net.URL shpFile, GeomVectorField field, sim.util.Bag masked) throws java.io.FileNotFoundException
shpFile
- to be read fromfield
- to contain read in datamasked
- dictates the subset of attributes we want
java.io.FileNotFoundException
public static void read(java.net.URL shpFile, GeomVectorField field, java.lang.Class<?> masonGeometryClass) throws java.io.FileNotFoundException
shpFile
- to be read fromfield
- to contain read in datamasonGeometryClass
- allows us to over-ride the default MasonGeometry wrapper
java.io.FileNotFoundException
public static void read(java.net.URL shpFile, GeomVectorField field, sim.util.Bag masked, java.lang.Class<?> masonGeometryClass) throws java.io.FileNotFoundException
shpFile
- to be read fromfield
- is GeomVectorField that will contain the ShapeFile's contentsmasked
- dictates the subset of attributes we wantmasonGeometryClass
- allows us to over-ride the default MasonGeometry wrapper
java.io.FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |