public class IOUtil extends Object
Constructor and Description |
---|
IOUtil() |
Modifier and Type | Method and Description |
---|---|
static Geometry |
readFile(String filename,
GeometryFactory geomFact) |
static Geometry |
readGeoJSONString(String s,
GeometryFactory geomFact) |
static Geometry |
readGMLString(String gml,
GeometryFactory geomFact) |
static Geometry |
readWKBHexString(String wkb,
GeometryFactory geomFact) |
static Geometry |
readWKTString(String wkt,
GeometryFactory geomFact)
Reads one or more WKT geometries from a string.
|
public static Geometry readFile(String filename, GeometryFactory geomFact) throws Exception, IOException
Exception
IOException
public static Geometry readWKTString(String wkt, GeometryFactory geomFact) throws ParseException, IOException
wkt
- geomFact
- ParseException
IOException
public static Geometry readWKBHexString(String wkb, GeometryFactory geomFact) throws ParseException, IOException
ParseException
IOException
public static Geometry readGMLString(String gml, GeometryFactory geomFact) throws ParseException, IOException, SAXException, ParserConfigurationException
public static Geometry readGeoJSONString(String s, GeometryFactory geomFact) throws ParseException
ParseException
Copyright © 2020. All rights reserved.