deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.mapinfoapi
Class MIFGeometryParser

java.lang.Object
  extended by org.deegree.io.mapinfoapi.MIFGeometryParser

public class MIFGeometryParser
extends java.lang.Object

MIFGeometryParser

Version:
$Revision:$, $Date:$
Author:
Andreas Schmitz, last edited by: $Author:$

Field Summary
 java.util.LinkedList<java.lang.String> errors
           
 
Constructor Summary
MIFGeometryParser(java.io.StreamTokenizer mif, CoordinateSystem crs)
           
 
Method Summary
 void parseArc()
          Currently just skips over the tokens.
 void parseEllipse()
          Currently just skips over the tokens.
 Curve parseLine()
           
 MultiPoint parseMultipoint()
           
 Curve parsePLine()
           
 Point parsePoint()
           
 Surface parseRect()
           
 MultiSurface parseRegion()
          Null will be returned if polygons are broken, for example the two-point-polygons (actual example exported from MapInfo!)
 void parseRoundRect()
          Currently just skips over the tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

public java.util.LinkedList<java.lang.String> errors
Constructor Detail

MIFGeometryParser

public MIFGeometryParser(java.io.StreamTokenizer mif,
                         CoordinateSystem crs)
Parameters:
mif -
crs -
Method Detail

parsePoint

public Point parsePoint()
                 throws java.io.IOException
Returns:
a deegree Point
Throws:
java.io.IOException

parseMultipoint

public MultiPoint parseMultipoint()
                           throws java.io.IOException
Returns:
a deegree multipoint
Throws:
java.io.IOException

parseLine

public Curve parseLine()
                throws java.io.IOException
Returns:
a deegree Curve or null, if the line contained errors
Throws:
java.io.IOException

parsePLine

public Curve parsePLine()
                 throws java.io.IOException
Returns:
a deegree Curve or null, if errors were found
Throws:
java.io.IOException

parseRegion

public MultiSurface parseRegion()
                         throws java.io.IOException
Null will be returned if polygons are broken, for example the two-point-polygons (actual example exported from MapInfo!):
             Region 1
             2
             2505127 5631765
             2505127 5631765
 

Returns:
a deegree multi surface or null in case of errors
Throws:
java.io.IOException

parseArc

public void parseArc()
              throws java.io.IOException
Currently just skips over the tokens.

Throws:
java.io.IOException

parseRoundRect

public void parseRoundRect()
                    throws java.io.IOException
Currently just skips over the tokens.

Throws:
java.io.IOException

parseEllipse

public void parseEllipse()
                  throws java.io.IOException
Currently just skips over the tokens.

Throws:
java.io.IOException

parseRect

public Surface parseRect()
                  throws java.io.IOException
Returns:
a deegree surface with 5 points
Throws:
java.io.IOException

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org