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 intFORMAT_GMLstatic intFORMAT_UNKNOWNstatic intFORMAT_WKBstatic intFORMAT_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 intformat(String s)static booleanisGeoJSON(String str)static booleanisGML(String str)static booleanisWKB(String str)static booleanisWKT(String s)Geometryread(String geomStr)voidsetStrict(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:
ParseExceptionIOException
-
-