it.cutruzzula.lgml.geometry
Class Envelope
java.lang.Object
   it.cutruzzula.lgml.geometry.AbstractGeometry
it.cutruzzula.lgml.geometry.AbstractGeometry
       it.cutruzzula.lgml.geometry.Envelope
it.cutruzzula.lgml.geometry.Envelope
- public class Envelope 
- extends AbstractGeometry
The class represents an Envelope object. It is not a WKT object, is only used in order to build polygons.
| Constructor Summary | 
| Envelope(double minX,
         double minY,
         double maxX,
         double maxY)2 dimensions Constructor.
 | 
 
| Method Summary | 
|  java.lang.String | asWKT()Method to get the WKT form of this envelope object.
 | 
|  java.lang.String | getType()Method to get the geometry type.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Envelope
public Envelope(double minX,
                double minY,
                double maxX,
                double maxY)
- 2 dimensions Constructor.
 
- Parameters:
- minX-
- minY-
- maxX-
- maxY-
 
asWKT
public java.lang.String asWKT()
- Method to get the WKT form of this envelope object.
 
- 
- Specified by:
- asWKTin class- AbstractGeometry
 
- 
- Returns:
- A "POLYGON" WKT
 
getType
public java.lang.String getType()
- Method to get the geometry type.
 
- 
- Specified by:
- getTypein class- AbstractGeometry
 
- 
- Returns:
- An empty string