Geoinformatica  0.90
Geo::OGC::Geometry Class Reference

A root class for geospatial features. More...

+ Collaboration diagram for Geo::OGC::Geometry:

Public Member Functions

public method new ()
 
public void init (hash params)
 Override in new classes but call $self->SUPER::init(params);. More...
 
public void copy (scalar clone)
 Copies the attributes of this object to the other object, which is a newly created object of same class. More...
 
public Geo::OGC::Geometry parse_wkt (scalar Text)
 parse well known text and construct respective geometry More...
 
public method ccw ()
 
public method intersect ()
 
public method intersection_point ()
 
public method distance_point_line_sqr ()
 
public Geo::OGC::Geometry Clone ()
 Clones this object, i.e., creates a spatially exact copy. More...
 
public method Precision ()
 
public method Dimension ()
 
public method GeometryType ()
 
public method SRID ()
 
public Geo::OGC::Polygon Envelope ()
 The minimum bounding box for this Geometry. More...
 
public method as_text ()
 
public method AsText ()
 
public method AsBinary ()
 
public method IsEmpty ()
 
public method IsSimple ()
 
public method Is3D ()
 
public method IsMeasured ()
 
public Geo::OGC::Geometry Boundary ()
 Returns the closure of the combinatorial boundary of this geometric object. More...
 
public method Equals ()
 
public method Disjoint ()
 
public method Intersects ()
 
public method Touches ()
 
public method Crosses ()
 
public method Within ()
 
public method Contains ()
 
public method Overlaps ()
 
public method Relate ()
 
public method LocateAlong ()
 
public method LocateBetween ()
 
public method Distance ()
 
public method Buffer ()
 
public method ConvexHull ()
 
public method Intersection ()
 
public method Union ()
 
public method Difference ()
 
public method SymDifference ()
 
public method MakeCollection ()
 Creates a collection which contains this geometry. More...
 
public method ApplyTransformation (scalar transf)
 
public method LastPolygon ()
 Returns last (latest added) polygon or undef. More...
 

Static Public Attributes

static hash EXPORT_TAGS
 

Detailed Description

A root class for geospatial features.

Geo::OGC::Geometry new(params) Create a new and initialized object.

Parameters
paramsA 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.

Definition at line 69 of file Geometry.pm.

Member Function Documentation

public method Geo::OGC::Geometry::ApplyTransformation ( scalar  transf)
Parameters
transfA 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
Code:
click to view
public method Geo::OGC::Geometry::as_text ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::AsBinary ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::AsText ( )

Undocumented Method

Code:
click to view
public Geo::OGC::Geometry Geo::OGC::Geometry::Boundary ( )

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

Note
Not implemented yet.
Code:
click to view
public method Geo::OGC::Geometry::Buffer ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::ccw ( )

Undocumented Method

Code:
click to view
public Geo::OGC::Geometry Geo::OGC::Geometry::Clone ( )

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

Code:
click to view
public method Geo::OGC::Geometry::Contains ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::ConvexHull ( )

Undocumented Method

Code:
click to view
public 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.

Code:
click to view
public method Geo::OGC::Geometry::Crosses ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Difference ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Dimension ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Disjoint ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Distance ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::distance_point_line_sqr ( )

Undocumented Method

Code:
click to view
public 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)]
Code:
click to view
public method Geo::OGC::Geometry::Equals ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::GeometryType ( )

Undocumented Method

Code:
click to view
public void Geo::OGC::Geometry::init ( hash  params)

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

Code:
click to view
public method Geo::OGC::Geometry::intersect ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Intersection ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::intersection_point ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Intersects ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Is3D ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::IsEmpty ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::IsMeasured ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::IsSimple ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::LastPolygon ( )

Returns last (latest added) polygon or undef.

Code:
click to view
public method Geo::OGC::Geometry::LocateAlong ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::LocateBetween ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::MakeCollection ( )

Creates a collection which contains this geometry.

Note
Not in the specification
Code:
click to view
public method Geo::OGC::Geometry::new ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Overlaps ( )

Undocumented Method

Code:
click to view
public Geo::OGC::Geometry Geo::OGC::Geometry::parse_wkt ( scalar  Text)

parse well known text and construct respective geometry

Code:
click to view
public method Geo::OGC::Geometry::Precision ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Relate ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::SRID ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::SymDifference ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Touches ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Union ( )

Undocumented Method

Code:
click to view
public method Geo::OGC::Geometry::Within ( )

Undocumented Method

Code:
click to view

The documentation for this class was generated from the following file: