Class IOUtil
java.lang.Object
org.locationtech.jtstest.util.io.IOUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryreadFile(String filename, GeometryFactory geomFact) static GeometryreadGeoJSONString(String s, GeometryFactory geomFact) static GeometryreadGMLString(String gml, GeometryFactory geomFact) static GeometryreadWKBHexString(String wkb, GeometryFactory geomFact) static GeometryreadWKTString(String wkt, GeometryFactory geomFact) Reads one or more WKT geometries from a string.static GeometryreadWKTString(String wkt, GeometryFactory geomFact, boolean isStrict)
-
Constructor Details
-
IOUtil
public IOUtil()
-
-
Method Details
-
readFile
public static Geometry readFile(String filename, GeometryFactory geomFact) throws Exception, IOException - Throws:
ExceptionIOException
-
readWKTString
public static Geometry readWKTString(String wkt, GeometryFactory geomFact) throws ParseException, IOException Reads one or more WKT geometries from a string.- Parameters:
wkt-geomFact-- Returns:
- the geometry read
- Throws:
ParseExceptionIOException
-
readWKTString
public static Geometry readWKTString(String wkt, GeometryFactory geomFact, boolean isStrict) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
readWKBHexString
public static Geometry readWKBHexString(String wkb, GeometryFactory geomFact) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
readGMLString
public static Geometry readGMLString(String gml, GeometryFactory geomFact) throws ParseException, IOException, SAXException, ParserConfigurationException -
readGeoJSONString
- Throws:
ParseException
-