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 void
close()
Close the text readerTextReader
getTextReader()
Get the text readerGeometry
read()
Read a geometry from the well-known text<T extends Geometry>
Tread(Class<T> expectedType)
Read a geometry from the well-known textGeometry
read(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 textCircularString
readCircularString(boolean hasZ, boolean hasM)
Read a Circular StringCircularString
readCircularString(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Circular Stringstatic CircularString
readCircularString(TextReader reader, boolean hasZ, boolean hasM)
Read a Circular Stringstatic CircularString
readCircularString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Circular StringCompoundCurve
readCompoundCurve(boolean hasZ, boolean hasM)
Read a Compound CurveCompoundCurve
readCompoundCurve(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Compound Curvestatic CompoundCurve
readCompoundCurve(TextReader reader, boolean hasZ, boolean hasM)
Read a Compound Curvestatic CompoundCurve
readCompoundCurve(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 Geometry
readGeometry(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 Geometry
readGeometry(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 Geometry
readGeometry(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 Geometry
readGeometry(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 CollectionGeometryTypeInfo
readGeometryType()
Read the geometry type infostatic GeometryTypeInfo
readGeometryType(TextReader reader)
Read the geometry type infoLineString
readLineString(boolean hasZ, boolean hasM)
Read a Line StringLineString
readLineString(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Line Stringstatic LineString
readLineString(TextReader reader, boolean hasZ, boolean hasM)
Read a Line Stringstatic LineString
readLineString(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 CurveMultiLineString
readMultiLineString(boolean hasZ, boolean hasM)
Read a Multi Line StringMultiLineString
readMultiLineString(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Multi Line Stringstatic MultiLineString
readMultiLineString(TextReader reader, boolean hasZ, boolean hasM)
Read a Multi Line Stringstatic MultiLineString
readMultiLineString(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Multi Line StringMultiPoint
readMultiPoint(boolean hasZ, boolean hasM)
Read a Multi PointMultiPoint
readMultiPoint(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Multi Pointstatic MultiPoint
readMultiPoint(TextReader reader, boolean hasZ, boolean hasM)
Read a Multi Pointstatic MultiPoint
readMultiPoint(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Multi PointMultiPolygon
readMultiPolygon(boolean hasZ, boolean hasM)
Read a Multi PolygonMultiPolygon
readMultiPolygon(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Multi Polygonstatic MultiPolygon
readMultiPolygon(TextReader reader, boolean hasZ, boolean hasM)
Read a Multi Polygonstatic MultiPolygon
readMultiPolygon(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 SurfacePoint
readPoint(boolean hasZ, boolean hasM)
Read a Pointstatic Point
readPoint(TextReader reader, boolean hasZ, boolean hasM)
Read a PointPoint
readPointText(boolean hasZ, boolean hasM)
Read a Pointstatic Point
readPointText(TextReader reader, boolean hasZ, boolean hasM)
Read a PointPolygon
readPolygon(boolean hasZ, boolean hasM)
Read a PolygonPolygon
readPolygon(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Polygonstatic Polygon
readPolygon(TextReader reader, boolean hasZ, boolean hasM)
Read a Polygonstatic Polygon
readPolygon(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a PolygonPolyhedralSurface
readPolyhedralSurface(boolean hasZ, boolean hasM)
Read a Polyhedral SurfacePolyhedralSurface
readPolyhedralSurface(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Polyhedral Surfacestatic PolyhedralSurface
readPolyhedralSurface(TextReader reader, boolean hasZ, boolean hasM)
Read a Polyhedral Surfacestatic PolyhedralSurface
readPolyhedralSurface(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Polyhedral SurfaceTIN
readTIN(boolean hasZ, boolean hasM)
Read a TINTIN
readTIN(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a TINstatic TIN
readTIN(TextReader reader, boolean hasZ, boolean hasM)
Read a TINstatic TIN
readTIN(TextReader reader, GeometryFilter filter, boolean hasZ, boolean hasM)
Read a TINTriangle
readTriangle(boolean hasZ, boolean hasM)
Read a TriangleTriangle
readTriangle(GeometryFilter filter, boolean hasZ, boolean hasM)
Read a Trianglestatic Triangle
readTriangle(TextReader reader, boolean hasZ, boolean hasM)
Read a Trianglestatic Triangle
readTriangle(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
-
-