mapnik
Class Geometry

java.lang.Object
  extended by mapnik.NativeObject
      extended by mapnik.Geometry

public class Geometry
extends NativeObject

A mapnik::geometry_type instance. These instances are always owned by the corresponding feature.

Author:
stella

Field Summary
static int TYPE_LINESTRING
           
static int TYPE_MULTILINESTRING
           
static int TYPE_MULTIPOINT
           
static int TYPE_MULTIPOLYGON
           
static int TYPE_POINT
           
static int TYPE_POLYGON
           
 
Method Summary
 Box2d getEnvelope()
           
 int getNumPoints()
           
 int getType()
           
 int getVertex(int pos, Coord c)
           
 java.lang.String toString()
           
 
Methods inherited from class mapnik.NativeObject
dispose, isDisposed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_POINT

public static final int TYPE_POINT
See Also:
Constant Field Values

TYPE_LINESTRING

public static final int TYPE_LINESTRING
See Also:
Constant Field Values

TYPE_POLYGON

public static final int TYPE_POLYGON
See Also:
Constant Field Values

TYPE_MULTIPOINT

public static final int TYPE_MULTIPOINT
See Also:
Constant Field Values

TYPE_MULTILINESTRING

public static final int TYPE_MULTILINESTRING
See Also:
Constant Field Values

TYPE_MULTIPOLYGON

public static final int TYPE_MULTIPOLYGON
See Also:
Constant Field Values
Method Detail

getType

public int getType()

getNumPoints

public int getNumPoints()

getVertex

public int getVertex(int pos,
                     Coord c)

getEnvelope

public Box2d getEnvelope()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object