Detailed Description

Spatial data.

A geometry is spatial data (coordinate values, and a reference to a
spatial reference system) organized into one of the geometry
types. Geometries can be created from several type of data including
a Perl data structure. There are several methods, which modify,
compare, test, or compute values from geometries.

Note

Most spatial analysis methods require <a
href="http://geos.osgeo.org/doxygen/">GEOS to work rigorously.

Object method.
Set the data of a point or add a point to a line string. Consider
using Geo::OGR::Geometry::Points. Note that the coordinate
dimension is automatically upgraded to 25D (3) if z is given.

Parameters

x

y

z

[optional]
Calls internally the 2D or 3D version depending on the number of parameters.

Object method.
Get or set the points of the geometry. The points (vertices) are
stored in obvious lists of lists. When setting, the geometry is
first emptied. The method uses internally either AddPoint_2D or
AddPoint_3D depending on the coordinate dimension of the input data.

Note

The same structure may represent different geometries
depending on the actual geometry type of the object.

Parameters

points

[optional] A reference to an array. A point is a reference to an
array of numbers, a linestring or a ring is a reference to an array of points,
a polygon is a reference to an array of rings, etc.