public class IOUtil
extends java.lang.Object
| Constructor and Description |
|---|
IOUtil() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
cleanHex(java.lang.String hexStuff) |
static Geometry |
readFile(java.lang.String filename,
GeometryFactory geomFact) |
private static Geometry |
readGeoJSONFile(java.lang.String filename,
GeometryFactory geomFact) |
static Geometry |
readGeoJSONString(java.lang.String s,
GeometryFactory geomFact) |
private static Geometry |
readGMLFile(java.lang.String filename,
GeometryFactory geomFact) |
static Geometry |
readGMLString(java.lang.String gml,
GeometryFactory geomFact) |
private static Geometry |
readShapefile(java.lang.String filename,
GeometryFactory geomFact) |
private static Geometry |
readWKBHexFile(java.lang.String filename,
GeometryFactory geomFact) |
static Geometry |
readWKBHexString(java.lang.String wkb,
GeometryFactory geomFact) |
private static Geometry |
readWKTFile(java.lang.String filename,
GeometryFactory geomFact) |
static Geometry |
readWKTString(java.lang.String wkt,
GeometryFactory geomFact)
Reads one or more WKT geometries from a string.
|
public static Geometry readFile(java.lang.String filename, GeometryFactory geomFact) throws java.lang.Exception, java.io.IOException
java.lang.Exceptionjava.io.IOExceptionprivate static Geometry readShapefile(java.lang.String filename, GeometryFactory geomFact) throws java.lang.Exception
java.lang.Exceptionprivate static Geometry readGMLFile(java.lang.String filename, GeometryFactory geomFact) throws ParseException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
ParseExceptionjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionprivate static Geometry readWKBHexFile(java.lang.String filename, GeometryFactory geomFact) throws ParseException, java.io.IOException
ParseExceptionjava.io.IOExceptionprivate static java.lang.String cleanHex(java.lang.String hexStuff)
private static Geometry readWKTFile(java.lang.String filename, GeometryFactory geomFact) throws ParseException, java.io.IOException
ParseExceptionjava.io.IOExceptionpublic static Geometry readWKTString(java.lang.String wkt, GeometryFactory geomFact) throws ParseException, java.io.IOException
wkt - geomFact - ParseExceptionjava.io.IOExceptionpublic static Geometry readWKBHexString(java.lang.String wkb, GeometryFactory geomFact) throws ParseException, java.io.IOException
ParseExceptionjava.io.IOExceptionpublic static Geometry readGMLString(java.lang.String gml, GeometryFactory geomFact) throws ParseException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
ParseExceptionjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionprivate static Geometry readGeoJSONFile(java.lang.String filename, GeometryFactory geomFact) throws ParseException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
ParseExceptionjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic static Geometry readGeoJSONString(java.lang.String s, GeometryFactory geomFact) throws ParseException
ParseException