org.gwtopenmaps.openlayers.client.geometry
Class Polygon
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.geometry.Geometry
org.gwtopenmaps.openlayers.client.geometry.Collection
org.gwtopenmaps.openlayers.client.geometry.Polygon
public class Polygon
- extends Collection
- Author:
- Edwin Commandeur - Atlis EJS
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Polygon
protected Polygon(JSObject element)
Polygon
public Polygon(LinearRing[] rings)
narrowToPolygon
public static Polygon narrowToPolygon(JSObject polygon)
getComponents
public LinearRing[] getComponents()
- Polygons are composed of LinearRing geometries.
LinearRing geometries are MultiPoint geometries, whose components are Points.
The first and last component of a LinearRing is the same point,
even if a LinearRing is instantiated with an array of Points whose first and last point are not the same.
- Returns:
- Array of LinearRing Objects
Copyright © 2010 sourceforge. All Rights Reserved.