Package org.locationtech.jtstest.util.io
Class MultiFormatReader
- java.lang.Object
-
- org.locationtech.jtstest.util.io.MultiFormatReader
-
-
Field Summary
Fields Modifier and Type Field Description static int
FORMAT_GML
static int
FORMAT_UNKNOWN
static int
FORMAT_WKB
static int
FORMAT_WKT
-
Constructor Summary
Constructors Constructor Description MultiFormatReader()
MultiFormatReader(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
format(String s)
static boolean
isGeoJSON(String str)
static boolean
isGML(String str)
static boolean
isWKB(String str)
static boolean
isWKT(String s)
Geometry
read(String geomStr)
void
setStrict(boolean isStrict)
-
-
-
Field Detail
-
FORMAT_UNKNOWN
public static final int FORMAT_UNKNOWN
- See Also:
- Constant Field Values
-
FORMAT_WKT
public static final int FORMAT_WKT
- See Also:
- Constant Field Values
-
FORMAT_WKB
public static final int FORMAT_WKB
- See Also:
- Constant Field Values
-
FORMAT_GML
public static final int FORMAT_GML
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiFormatReader
public MultiFormatReader()
-
MultiFormatReader
public MultiFormatReader(GeometryFactory geomFactory)
-
-
Method Detail
-
isWKT
public static boolean isWKT(String s)
-
isWKB
public static boolean isWKB(String str)
-
isGML
public static boolean isGML(String str)
-
isGeoJSON
public static boolean isGeoJSON(String str)
-
format
public static int format(String s)
-
setStrict
public void setStrict(boolean isStrict)
-
read
public Geometry read(String geomStr) throws ParseException, IOException
- Throws:
ParseException
IOException
-
-