|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.WKTFactory
Class for converting Well Known Text(WKT) representations of a shape into their Shape counterparts.
Constructor Summary | |
WKTFactory()
Creates new WKTFactory |
Method Summary | |
static void |
main(java.lang.String[] inArgs)
Test the Parser |
static LineString |
parseLineString(java.lang.String inWKT)
Convert the Well Know Text (WKT) representation of a line string into a LineString. |
static MultiLineString |
parseMultiLineString(java.lang.String inWKT)
Convert the Well Known Text (WKT) representaion of a multi line string into a MultiLineString. |
static MultiPoint |
parseMultiPoint(java.lang.String inWKT)
Convert the Well Known Text (WKT) representation of a multi point into a MultiPoint. |
static MultiPolygon |
parseMultiPolygon(java.lang.String inWKT)
Convert the Well Known Text (WKT) representation of multi polygon into a MultiPolygon. |
static Point |
parsePoint(java.lang.String inWKT)
Convert the Well Know Text (WKT) representation of a point into a Point. |
protected static Point |
parsePoint(java.lang.String inWKT,
int inStartIndex,
int inEndIndex)
parse a point from a space separated set of numbers. |
protected static Point[][] |
parsePointGroups(java.lang.String inWKT,
int inStartIndex,
int inEndIndex)
Parse muliple sets of points from a space separated comma delimited, and parenthetically grouped set of numbers. |
protected static Point[] |
parsePoints(java.lang.String inWKT,
int inStartIndex,
int inEndIndex)
parse a set of points from a space separated coma delimited set of numbers. |
static Polygon |
parsePolygon(java.lang.String inWKT)
Convert the Well Know Text (WKT) representation of a polygon into a Polygon. |
static Shape |
parseShape(java.lang.String inWKT)
Retrieve the shape from the text string |
static void |
writePoints(Point[] inPoints)
Write out the point Array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WKTFactory()
Method Detail |
public static Shape parseShape(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static Point parsePoint(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static LineString parseLineString(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static Polygon parsePolygon(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static MultiPoint parseMultiPoint(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static MultiLineString parseMultiLineString(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
public static MultiPolygon parseMultiPolygon(java.lang.String inWKT) throws java.lang.Exception
java.lang.Exception
protected static Point parsePoint(java.lang.String inWKT, int inStartIndex, int inEndIndex) throws java.lang.Exception
java.lang.Exception
protected static Point[] parsePoints(java.lang.String inWKT, int inStartIndex, int inEndIndex) throws java.lang.Exception
java.lang.Exception
protected static Point[][] parsePointGroups(java.lang.String inWKT, int inStartIndex, int inEndIndex) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] inArgs)
public static void writePoints(Point[] inPoints)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |