Package mil.nga.sf.wkt
Class GeometryReader
- java.lang.Object
-
- mil.nga.sf.wkt.GeometryReader
-
public class GeometryReader extends Object
Well Known Text reader- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description GeometryReader(String text)ConstructorGeometryReader(TextReader reader)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the text readerTextReadergetTextReader()Get the text readerGeometryread()Read a geometry from the well-known text<T extends Geometry>
Tread(Class<T> expectedType)Read a geometry from the well-known textGeometryread(GeometryFilter filter)Read a geometry from the well-known text<T extends Geometry>
Tread(GeometryFilter filter, Class<T> expectedType)Read a geometry from the well-known text<T extends Geometry>
Tread(GeometryFilter filter, GeometryType containingType, Class<T> expectedType)Read a geometry from the well-known textCircularStringreadCircularString(boolean hasZ, boolean hasM)Read a Circular StringCircularStringreadCircularString(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Circular Stringstatic CircularStringreadCircularString(TextReader reader, boolean hasZ, boolean hasM)Read a Circular Stringstatic CircularStringreadCircularString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Circular StringCompoundCurvereadCompoundCurve(boolean hasZ, boolean hasM)Read a Compound CurveCompoundCurvereadCompoundCurve(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Compound Curvestatic CompoundCurvereadCompoundCurve(TextReader reader, boolean hasZ, boolean hasM)Read a Compound Curvestatic CompoundCurvereadCompoundCurve(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Compound CurveCurvePolygon<Curve>readCurvePolygon(boolean hasZ, boolean hasM)Read a Curve PolygonCurvePolygon<Curve>readCurvePolygon(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Curve Polygonstatic CurvePolygon<Curve>readCurvePolygon(TextReader reader, boolean hasZ, boolean hasM)Read a Curve Polygonstatic CurvePolygon<Curve>readCurvePolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Curve Polygonstatic GeometryreadGeometry(String text)Read a geometry from the well-known textstatic <T extends Geometry>
TreadGeometry(String text, Class<T> expectedType)Read a geometry from the well-known textstatic GeometryreadGeometry(String text, GeometryFilter filter)Read a geometry from the well-known textstatic <T extends Geometry>
TreadGeometry(String text, GeometryFilter filter, Class<T> expectedType)Read a geometry from the well-known textstatic GeometryreadGeometry(TextReader reader)Read a geometry from the well-known textstatic <T extends Geometry>
TreadGeometry(TextReader reader, Class<T> expectedType)Read a geometry from the well-known textstatic GeometryreadGeometry(TextReader reader, GeometryFilter filter)Read a geometry from the well-known textstatic <T extends Geometry>
TreadGeometry(TextReader reader, GeometryFilter filter, Class<T> expectedType)Read a geometry from the well-known textstatic <T extends Geometry>
TreadGeometry(TextReader reader, GeometryFilter filter, GeometryType containingType, Class<T> expectedType)Read a geometry from the well-known textGeometryCollection<Geometry>readGeometryCollection(boolean hasZ, boolean hasM)Read a Geometry CollectionGeometryCollection<Geometry>readGeometryCollection(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Geometry Collectionstatic GeometryCollection<Geometry>readGeometryCollection(TextReader reader, boolean hasZ, boolean hasM)Read a Geometry Collectionstatic GeometryCollection<Geometry>readGeometryCollection(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Geometry CollectionGeometryTypeInforeadGeometryType()Read the geometry type infostatic GeometryTypeInforeadGeometryType(TextReader reader)Read the geometry type infoLineStringreadLineString(boolean hasZ, boolean hasM)Read a Line StringLineStringreadLineString(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Line Stringstatic LineStringreadLineString(TextReader reader, boolean hasZ, boolean hasM)Read a Line Stringstatic LineStringreadLineString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Line StringGeometryCollection<Curve>readMultiCurve(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Curvestatic GeometryCollection<Curve>readMultiCurve(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi CurveMultiLineStringreadMultiLineString(boolean hasZ, boolean hasM)Read a Multi Line StringMultiLineStringreadMultiLineString(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Line Stringstatic MultiLineStringreadMultiLineString(TextReader reader, boolean hasZ, boolean hasM)Read a Multi Line Stringstatic MultiLineStringreadMultiLineString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Line StringMultiPointreadMultiPoint(boolean hasZ, boolean hasM)Read a Multi PointMultiPointreadMultiPoint(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Pointstatic MultiPointreadMultiPoint(TextReader reader, boolean hasZ, boolean hasM)Read a Multi Pointstatic MultiPointreadMultiPoint(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi PointMultiPolygonreadMultiPolygon(boolean hasZ, boolean hasM)Read a Multi PolygonMultiPolygonreadMultiPolygon(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Polygonstatic MultiPolygonreadMultiPolygon(TextReader reader, boolean hasZ, boolean hasM)Read a Multi Polygonstatic MultiPolygonreadMultiPolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi PolygonGeometryCollection<Surface>readMultiSurface(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi Surfacestatic GeometryCollection<Surface>readMultiSurface(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Multi SurfacePointreadPoint(boolean hasZ, boolean hasM)Read a Pointstatic PointreadPoint(TextReader reader, boolean hasZ, boolean hasM)Read a PointPointreadPointText(boolean hasZ, boolean hasM)Read a Pointstatic PointreadPointText(TextReader reader, boolean hasZ, boolean hasM)Read a PointPolygonreadPolygon(boolean hasZ, boolean hasM)Read a PolygonPolygonreadPolygon(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Polygonstatic PolygonreadPolygon(TextReader reader, boolean hasZ, boolean hasM)Read a Polygonstatic PolygonreadPolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a PolygonPolyhedralSurfacereadPolyhedralSurface(boolean hasZ, boolean hasM)Read a Polyhedral SurfacePolyhedralSurfacereadPolyhedralSurface(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Polyhedral Surfacestatic PolyhedralSurfacereadPolyhedralSurface(TextReader reader, boolean hasZ, boolean hasM)Read a Polyhedral Surfacestatic PolyhedralSurfacereadPolyhedralSurface(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Polyhedral SurfaceTINreadTIN(boolean hasZ, boolean hasM)Read a TINTINreadTIN(GeometryFilter filter, boolean hasZ, boolean hasM)Read a TINstatic TINreadTIN(TextReader reader, boolean hasZ, boolean hasM)Read a TINstatic TINreadTIN(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a TINTrianglereadTriangle(boolean hasZ, boolean hasM)Read a TriangleTrianglereadTriangle(GeometryFilter filter, boolean hasZ, boolean hasM)Read a Trianglestatic TrianglereadTriangle(TextReader reader, boolean hasZ, boolean hasM)Read a Trianglestatic TrianglereadTriangle(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)Read a Triangle
-
-
-
Constructor Detail
-
GeometryReader
public GeometryReader(String text)
Constructor- Parameters:
text- well-known text- Since:
- 1.0.1
-
GeometryReader
public GeometryReader(TextReader reader)
Constructor- Parameters:
reader- text reader- Since:
- 1.0.1
-
-
Method Detail
-
readGeometry
public static Geometry readGeometry(String text) throws IOException
Read a geometry from the well-known text- Parameters:
text- well-known text- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static Geometry readGeometry(String text, GeometryFilter filter) throws IOException
Read a geometry from the well-known text- Parameters:
text- well-known textfilter- geometry filter- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static <T extends Geometry> T readGeometry(String text, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
text- well-known textexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static <T extends Geometry> T readGeometry(String text, GeometryFilter filter, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
text- well-known textfilter- geometry filterexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
getTextReader
public TextReader getTextReader()
Get the text reader- Returns:
- text reader
- Since:
- 1.0.1
-
close
public void close()
Close the text reader- Since:
- 1.0.1
-
read
public Geometry read() throws IOException
Read a geometry from the well-known text- Returns:
- geometry
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
read
public Geometry read(GeometryFilter filter) throws IOException
Read a geometry from the well-known text- Parameters:
filter- geometry filter- Returns:
- geometry
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
read
public <T extends Geometry> T read(Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
expectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
read
public <T extends Geometry> T read(GeometryFilter filter, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
filter- geometry filterexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
read
public <T extends Geometry> T read(GeometryFilter filter, GeometryType containingType, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
filter- geometry filtercontainingType- containing geometry typeexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readGeometryType
public GeometryTypeInfo readGeometryType() throws IOException
Read the geometry type info- Returns:
- geometry type info
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPointText
public Point readPointText(boolean hasZ, boolean hasM) throws IOException
Read a Point- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- point
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPoint
public Point readPoint(boolean hasZ, boolean hasM) throws IOException
Read a Point- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- point
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readLineString
public LineString readLineString(boolean hasZ, boolean hasM) throws IOException
Read a Line String- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- line string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readLineString
public LineString readLineString(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Line String- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- line string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPolygon
public Polygon readPolygon(boolean hasZ, boolean hasM) throws IOException
Read a Polygon- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPolygon
public Polygon readPolygon(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Polygon- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiPoint
public MultiPoint readMultiPoint(boolean hasZ, boolean hasM) throws IOException
Read a Multi Point- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- multi point
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiPoint
public MultiPoint readMultiPoint(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Point- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi point
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiLineString
public MultiLineString readMultiLineString(boolean hasZ, boolean hasM) throws IOException
Read a Multi Line String- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- multi line string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiLineString
public MultiLineString readMultiLineString(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Line String- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi line string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiPolygon
public MultiPolygon readMultiPolygon(boolean hasZ, boolean hasM) throws IOException
Read a Multi Polygon- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- multi polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiPolygon
public MultiPolygon readMultiPolygon(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Polygon- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readGeometryCollection
public GeometryCollection<Geometry> readGeometryCollection(boolean hasZ, boolean hasM) throws IOException
Read a Geometry Collection- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- geometry collection
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readGeometryCollection
public GeometryCollection<Geometry> readGeometryCollection(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Geometry Collection- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- geometry collection
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiCurve
public GeometryCollection<Curve> readMultiCurve(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Curve- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi curve
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readMultiSurface
public GeometryCollection<Surface> readMultiSurface(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Surface- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi surface
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCircularString
public CircularString readCircularString(boolean hasZ, boolean hasM) throws IOException
Read a Circular String- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- circular string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCircularString
public CircularString readCircularString(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Circular String- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- circular string
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCompoundCurve
public CompoundCurve readCompoundCurve(boolean hasZ, boolean hasM) throws IOException
Read a Compound Curve- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- compound curve
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCompoundCurve
public CompoundCurve readCompoundCurve(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Compound Curve- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- compound curve
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCurvePolygon
public CurvePolygon<Curve> readCurvePolygon(boolean hasZ, boolean hasM) throws IOException
Read a Curve Polygon- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- curve polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readCurvePolygon
public CurvePolygon<Curve> readCurvePolygon(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Curve Polygon- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- curve polygon
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPolyhedralSurface
public PolyhedralSurface readPolyhedralSurface(boolean hasZ, boolean hasM) throws IOException
Read a Polyhedral Surface- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- polyhedral surface
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readPolyhedralSurface
public PolyhedralSurface readPolyhedralSurface(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Polyhedral Surface- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- polyhedral surface
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readTIN
public TIN readTIN(boolean hasZ, boolean hasM) throws IOException
Read a TIN- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- TIN
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readTIN
public TIN readTIN(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a TIN- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- TIN
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readTriangle
public Triangle readTriangle(boolean hasZ, boolean hasM) throws IOException
Read a Triangle- Parameters:
hasZ- has z flaghasM- has m flag- Returns:
- triangle
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readTriangle
public Triangle readTriangle(GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Triangle- Parameters:
filter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- triangle
- Throws:
IOException- upon failure to read- Since:
- 1.0.1
-
readGeometry
public static Geometry readGeometry(TextReader reader) throws IOException
Read a geometry from the well-known text- Parameters:
reader- text reader- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static Geometry readGeometry(TextReader reader, GeometryFilter filter) throws IOException
Read a geometry from the well-known text- Parameters:
reader- text readerfilter- geometry filter- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static <T extends Geometry> T readGeometry(TextReader reader, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
reader- text readerexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static <T extends Geometry> T readGeometry(TextReader reader, GeometryFilter filter, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
reader- text readerfilter- geometry filterexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometry
public static <T extends Geometry> T readGeometry(TextReader reader, GeometryFilter filter, GeometryType containingType, Class<T> expectedType) throws IOException
Read a geometry from the well-known text- Type Parameters:
T- geometry type- Parameters:
reader- text readerfilter- geometry filtercontainingType- containing geometry typeexpectedType- expected type- Returns:
- geometry
- Throws:
IOException- upon failure to read
-
readGeometryType
public static GeometryTypeInfo readGeometryType(TextReader reader) throws IOException
Read the geometry type info- Parameters:
reader- text reader- Returns:
- geometry type info
- Throws:
IOException- upon failure to read
-
readPointText
public static Point readPointText(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Point- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- point
- Throws:
IOException- upon failure to read
-
readPoint
public static Point readPoint(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Point- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- point
- Throws:
IOException- upon failure to read
-
readLineString
public static LineString readLineString(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Line String- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- line string
- Throws:
IOException- upon failure to read
-
readLineString
public static LineString readLineString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Line String- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- line string
- Throws:
IOException- upon failure to read
-
readPolygon
public static Polygon readPolygon(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Polygon- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- polygon
- Throws:
IOException- upon failure to read
-
readPolygon
public static Polygon readPolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Polygon- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- polygon
- Throws:
IOException- upon failure to read
-
readMultiPoint
public static MultiPoint readMultiPoint(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Multi Point- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- multi point
- Throws:
IOException- upon failure to read
-
readMultiPoint
public static MultiPoint readMultiPoint(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Point- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi point
- Throws:
IOException- upon failure to read
-
readMultiLineString
public static MultiLineString readMultiLineString(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Multi Line String- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- multi line string
- Throws:
IOException- upon failure to read
-
readMultiLineString
public static MultiLineString readMultiLineString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Line String- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi line string
- Throws:
IOException- upon failure to read
-
readMultiPolygon
public static MultiPolygon readMultiPolygon(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Multi Polygon- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- multi polygon
- Throws:
IOException- upon failure to read
-
readMultiPolygon
public static MultiPolygon readMultiPolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Polygon- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi polygon
- Throws:
IOException- upon failure to read
-
readGeometryCollection
public static GeometryCollection<Geometry> readGeometryCollection(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Geometry Collection- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- geometry collection
- Throws:
IOException- upon failure to read
-
readGeometryCollection
public static GeometryCollection<Geometry> readGeometryCollection(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Geometry Collection- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- geometry collection
- Throws:
IOException- upon failure to read
-
readMultiCurve
public static GeometryCollection<Curve> readMultiCurve(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Curve- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi curve
- Throws:
IOException- upon failure to read
-
readMultiSurface
public static GeometryCollection<Surface> readMultiSurface(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Multi Surface- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- multi surface
- Throws:
IOException- upon failure to read
-
readCircularString
public static CircularString readCircularString(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Circular String- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- circular string
- Throws:
IOException- upon failure to read
-
readCircularString
public static CircularString readCircularString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Circular String- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- circular string
- Throws:
IOException- upon failure to read
-
readCompoundCurve
public static CompoundCurve readCompoundCurve(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Compound Curve- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- compound curve
- Throws:
IOException- upon failure to read
-
readCompoundCurve
public static CompoundCurve readCompoundCurve(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Compound Curve- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- compound curve
- Throws:
IOException- upon failure to read
-
readCurvePolygon
public static CurvePolygon<Curve> readCurvePolygon(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Curve Polygon- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- curve polygon
- Throws:
IOException- upon failure to read
-
readCurvePolygon
public static CurvePolygon<Curve> readCurvePolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Curve Polygon- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- curve polygon
- Throws:
IOException- upon failure to read
-
readPolyhedralSurface
public static PolyhedralSurface readPolyhedralSurface(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Polyhedral Surface- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- polyhedral surface
- Throws:
IOException- upon failure to read
-
readPolyhedralSurface
public static PolyhedralSurface readPolyhedralSurface(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Polyhedral Surface- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- polyhedral surface
- Throws:
IOException- upon failure to read
-
readTIN
public static TIN readTIN(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a TIN- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- TIN
- Throws:
IOException- upon failure to read
-
readTIN
public static TIN readTIN(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a TIN- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- TIN
- Throws:
IOException- upon failure to read
-
readTriangle
public static Triangle readTriangle(TextReader reader, boolean hasZ, boolean hasM) throws IOException
Read a Triangle- Parameters:
reader- text readerhasZ- has z flaghasM- has m flag- Returns:
- triangle
- Throws:
IOException- upon failure to read
-
readTriangle
public static Triangle readTriangle(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM) throws IOException
Read a Triangle- Parameters:
reader- text readerfilter- geometry filterhasZ- has z flaghasM- has m flag- Returns:
- triangle
- Throws:
IOException- upon failure to read
-
-