Class MultiFormatReader
- java.lang.Object
-
- com.vividsolutions.jtstest.util.io.MultiFormatReader
-
public class MultiFormatReader extends java.lang.ObjectReads aGeometryfrom a string which is in either WKT, WKBHex or GML format- Version:
- 1.7
- Author:
- Martin Davis
-
-
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(java.lang.String s)static booleanisGeoJSON(java.lang.String str)static booleanisGML(java.lang.String str)static booleanisWKB(java.lang.String str)static booleanisWKT(java.lang.String s)Geometryread(java.lang.String geomStr)
-
-
-
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(java.lang.String s)
-
isWKB
public static boolean isWKB(java.lang.String str)
-
isGML
public static boolean isGML(java.lang.String str)
-
isGeoJSON
public static boolean isGeoJSON(java.lang.String str)
-
format
public static int format(java.lang.String s)
-
read
public Geometry read(java.lang.String geomStr) throws ParseException, java.io.IOException
- Throws:
ParseExceptionjava.io.IOException
-
-