Geo::OGC::Geometry Class Reference

Inherited by Geo::OGC::Curve, Geo::OGC::GeometryCollection, Geo::OGC::Point, and Geo::OGC::Surface.

Inheritance diagram for Geo::OGC::Geometry:

Inheritance graph
[legend]
List of all members.

Public Member Functions

Public Class Methods
Geo::OGC::Geometry new (hash params)
 Create a new and initialized object.
Public Object Methods
void init (hash params)
 Override in new classes but call $self->SUPER::init(params);.
void copy (scalar clone)
 Copies the attributes of this object to the other object, which is a newly created object of same class.
Geo::OGC::Geometry parse_wkt (scalar Text)
 parse well known text and construct respective geometry
Geo::OGC::Geometry Clone ()
 Clones this object, i.e., creates a spatially exact copy.
scalar Precision (scalar Precision)
 Sets or gets the precision.
scalar Dimension ()
 The dimension of this geometric object. In non-homogeneous collections, this will return the largest topological dimension of the contained objects.
scalar GeometryType ()
 Returns the name of the class of this geometric object.
scalar SRID (scalar SRID)
 Returns (or sets) the Spatial Reference System ID for this geometric object.
Geo::OGC::Polygon Envelope ()
 The minimum bounding box for this Geometry.
scalar as_text (scalar force_parens, scalar include_tag)
 A helper method used by AsText.
scalar AsText ()
 Returns this object in Well-known Text Representation of Geometry.
scalar AsBinary ()
 Returns this object in Well-known Binary Representation of Geometry.
scalar IsEmpty ()
 Returns true if this object is empty, i.e. contains no points or no data.
scalar IsSimple ()
 Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency.
scalar Is3D ()
 Returns true if this geometric object has z coordinate values.
scalar IsMeasured ()
 Returns true if this geometric object has m coordinate values.
Geo::OGC::Geometry Boundary ()
 Returns the closure of the combinatorial boundary of this geometric object.
scalar Equals (scalar geom)
 Returns true if this geometric object is "spatially equal" to the another geometry.
retval Disjoint (scalar geom)
retval Intersects (scalar geom)
retval Touches (scalar geom)
retval Crosses (scalar geom)
retval Within (scalar geom)
retval Contains (scalar geom)
retval Overlaps (scalar geom)
retval Relate (scalar geom, scalar int_pat)
retval LocateAlong (scalar mValue)
retval LocateBetween (scalar mStart, scalar mEnd)
retval Distance (scalar geom)
retval Buffer (scalar distance)
retval ConvexHull ()
retval Intersection (scalar geom)
retval Union (scalar geom)
retval Difference (scalar geom)
retval SymDifference (scalar geom)
 MakeCollection ()
 Creates a collection which contains this geometry.
 ApplyTransformation (scalar transf)
Public Functions
scalar ccw (scalar x0, scalar y0, scalar x1, scalar y1, scalar x2, scalar y2)
 counterclockwise from Sedgewick: Algorithms in C
scalar intersect (scalar x11, scalar y11, scalar x12, scalar y12, scalar x21, scalar y21, scalar x22, scalar y22)
 Test intersection of two lines from Sedgewick: Algorithms in C.
retval intersection_point (scalar x11, scalar y11, scalar x12, scalar y12, scalar x21, scalar y21, scalar x22, scalar y22)
scalar distance_point_line_sqr (scalar x, scalar y, scalar x1, scalar y1, scalar x2, scalar y2)
 Compute the distance of a point to a line.

Member Function Documentation

Geo::OGC::Geometry::ApplyTransformation ( scalar  transf  ) 

Parameters:
transf A point transformation method which will be applied for all points in the geometry as:
($new_x, $new_y, $new_z) = $transf->($x, $y, $z)
Note:
Not in the specification

Reimplemented in Geo::OGC::Point, and Geo::OGC::Curve.

scalar Geo::OGC::Geometry::as_text ( scalar  force_parens,
scalar  include_tag 
)

A helper method used by AsText.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, Geo::OGC::PolyhedralSurface, Geo::OGC::GeometryCollection, Geo::OGC::MultiPoint, Geo::OGC::MultiPolygon, and Geo::OGC::MultiLineString.

scalar Geo::OGC::Geometry::AsBinary (  ) 

Returns this object in Well-known Binary Representation of Geometry.

Note:
Not implemented yet.

scalar Geo::OGC::Geometry::AsText (  ) 

Returns this object in Well-known Text Representation of Geometry.

Geo::OGC::Geometry Geo::OGC::Geometry::Boundary (  ) 

Returns the closure of the combinatorial boundary of this geometric object.

Note:
Not implemented yet.

Reimplemented in Geo::OGC::Point, and Geo::OGC::MultiPoint.

retval Geo::OGC::Geometry::Buffer ( scalar  distance  ) 

scalar Geo::OGC::Geometry::ccw ( scalar  x0,
scalar  y0,
scalar  x1,
scalar  y1,
scalar  x2,
scalar  y2 
)

counterclockwise from Sedgewick: Algorithms in C

Returns:
-1, 0, or 1

Geo::OGC::Geometry Geo::OGC::Geometry::Clone (  ) 

Clones this object, i.e., creates a spatially exact copy.

Reimplemented in Geo::OGC::Point.

retval Geo::OGC::Geometry::Contains ( scalar  geom  ) 

retval Geo::OGC::Geometry::ConvexHull (  ) 

void Geo::OGC::Geometry::copy ( scalar  clone  ) 

Copies the attributes of this object to the other object, which is a newly created object of same class.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, Geo::OGC::PolyhedralSurface, and Geo::OGC::GeometryCollection.

retval Geo::OGC::Geometry::Crosses ( scalar  geom  ) 

retval Geo::OGC::Geometry::Difference ( scalar  geom  ) 

scalar Geo::OGC::Geometry::Dimension (  ) 

The dimension of this geometric object. In non-homogeneous collections, this will return the largest topological dimension of the contained objects.

Returns:
2 or 3

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Surface, and Geo::OGC::GeometryCollection.

retval Geo::OGC::Geometry::Disjoint ( scalar  geom  ) 

retval Geo::OGC::Geometry::Distance ( scalar  geom  ) 

Reimplemented in Geo::OGC::Point, Geo::OGC::LineString, Geo::OGC::Polygon, and Geo::OGC::GeometryCollection.

scalar Geo::OGC::Geometry::distance_point_line_sqr ( scalar  x,
scalar  y,
scalar  x1,
scalar  y1,
scalar  x2,
scalar  y2 
)

Compute the distance of a point to a line.

Geo::OGC::Polygon Geo::OGC::Geometry::Envelope (  ) 

The minimum bounding box for this Geometry.

Note:
This library returns always the envelope as a ring [(minx, miny), (maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny)]

Reimplemented in Geo::OGC::Point, Geo::OGC::LineString, Geo::OGC::Polygon, and Geo::OGC::GeometryCollection.

scalar Geo::OGC::Geometry::Equals ( scalar  geom  ) 

Returns true if this geometric object is "spatially equal" to the another geometry.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, and Geo::OGC::GeometryCollection.

scalar Geo::OGC::Geometry::GeometryType (  ) 

Returns the name of the class of this geometric object.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::LineString, Geo::OGC::Line, Geo::OGC::LinearRing, Geo::OGC::Surface, Geo::OGC::Polygon, Geo::OGC::Triangle, Geo::OGC::PolyhedralSurface, Geo::OGC::TIN, Geo::OGC::GeometryCollection, Geo::OGC::MultiSurface, Geo::OGC::MultiCurve, Geo::OGC::MultiPoint, Geo::OGC::MultiPolygon, and Geo::OGC::MultiLineString.

void Geo::OGC::Geometry::init ( hash  params  ) 

Override in new classes but call $self->SUPER::init(params);.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, Geo::OGC::PolyhedralSurface, Geo::OGC::GeometryCollection, and Geo::OGC::MultiPoint.

scalar Geo::OGC::Geometry::intersect ( scalar  x11,
scalar  y11,
scalar  x12,
scalar  y12,
scalar  x21,
scalar  y21,
scalar  x22,
scalar  y22 
)

Test intersection of two lines from Sedgewick: Algorithms in C.

retval Geo::OGC::Geometry::Intersection ( scalar  geom  ) 

Reimplemented in Geo::OGC::Point, Geo::OGC::LineString, and Geo::OGC::Polygon.

retval Geo::OGC::Geometry::intersection_point ( scalar  x11,
scalar  y11,
scalar  x12,
scalar  y12,
scalar  x21,
scalar  y21,
scalar  x22,
scalar  y22 
)

retval Geo::OGC::Geometry::Intersects ( scalar  geom  ) 

scalar Geo::OGC::Geometry::Is3D (  ) 

Returns true if this geometric object has z coordinate values.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, and Geo::OGC::GeometryCollection.

scalar Geo::OGC::Geometry::IsEmpty (  ) 

Returns true if this object is empty, i.e. contains no points or no data.

Reimplemented in Geo::OGC::Point.

scalar Geo::OGC::Geometry::IsMeasured (  ) 

Returns true if this geometric object has m coordinate values.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::Polygon, Geo::OGC::PolyhedralSurface, and Geo::OGC::GeometryCollection.

scalar Geo::OGC::Geometry::IsSimple (  ) 

Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency.

Reimplemented in Geo::OGC::Point, and Geo::OGC::LineString.

retval Geo::OGC::Geometry::LocateAlong ( scalar  mValue  ) 

retval Geo::OGC::Geometry::LocateBetween ( scalar  mStart,
scalar  mEnd 
)

Geo::OGC::Geometry::MakeCollection (  ) 

Creates a collection which contains this geometry.

Note:
Not in the specification

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::LineString, Geo::OGC::Surface, and Geo::OGC::Polygon.

Geo::OGC::Geometry Geo::OGC::Geometry::new ( hash  params  ) 

Create a new and initialized object.

Parameters:
params A set of named parameters (the subclasses may add new known parameters):
  • Text A well-known text, constructs an object of class the text defines.
  • SRID Sets the SRID attribute of the object, default is -1.
  • Precision If specified, has the effect that numeric comparisons in the Equals method is is preceded with a rounding operation (using sprintf "%.pe", where p is the Precision-1, i.e the number of meaningful numbers is Precision). Affects also AsText.
This method should be called eventually by all constructors. Blesses the object into the correct class and calls init.

Reimplemented in Geo::OGC::Point, Geo::OGC::Curve, Geo::OGC::LineString, Geo::OGC::Line, Geo::OGC::LinearRing, Geo::OGC::Surface, Geo::OGC::Polygon, Geo::OGC::Triangle, Geo::OGC::PolyhedralSurface, Geo::OGC::TIN, Geo::OGC::GeometryCollection, Geo::OGC::MultiSurface, Geo::OGC::MultiCurve, Geo::OGC::MultiPoint, Geo::OGC::MultiPolygon, and Geo::OGC::MultiLineString.

retval Geo::OGC::Geometry::Overlaps ( scalar  geom  ) 

Geo::OGC::Geometry Geo::OGC::Geometry::parse_wkt ( scalar  Text  ) 

parse well known text and construct respective geometry

scalar Geo::OGC::Geometry::Precision ( scalar  Precision  ) 

Sets or gets the precision.

Note:
Not in the specification

retval Geo::OGC::Geometry::Relate ( scalar  geom,
scalar  int_pat 
)

scalar Geo::OGC::Geometry::SRID ( scalar  SRID  ) 

Returns (or sets) the Spatial Reference System ID for this geometric object.

Parameters:
SRID [optional] The new SRID if setting it.

retval Geo::OGC::Geometry::SymDifference ( scalar  geom  ) 

retval Geo::OGC::Geometry::Touches ( scalar  geom  ) 

retval Geo::OGC::Geometry::Union ( scalar  geom  ) 

retval Geo::OGC::Geometry::Within ( scalar  geom  ) 

Reimplemented in Geo::OGC::Point, Geo::OGC::LineString, and Geo::OGC::Polygon.


The documentation for this class was generated from the following file:
Generated on Sun Oct 25 18:27:50 2009 for Geoinformatica by  doxygen 1.4.7