Polygon Class

Basic Structure for storing polygons

Constructors

Polygon( )
Polygon( Point[] Points )
Polygon( Points Points )

Public Methods

setSRS( String srsName ) returns void
getSRS( ) returns String
getName( ) returns String
addPoint( Point Coordinate ) returns void
Used to append a point to an array of points
getPoints( ) returns Point[]
Used to retrieve the Points that compose the Polygon
toString( ) returns String
Used to return a Well-known Text (WKT) representation of the polygon.
toString( String CoordinateSeparator, String TupleSeparator ) returns String
Used to convert a line to a String
toGML( ) returns String
Used to convert a line to GML (xml fragment)