Class GeoRuby::SimpleFeatures::Envelope
In: lib/geo_ruby/simple_features/envelope.rb
Parent: Object

Contains the bounding box of a geometry

Methods

==   as_georss   as_kml   center   extend   extend!   from_coordinates   from_points   new  

Attributes

lower_corner  [RW] 
srid  [RW] 
upper_corner  [RW] 
with_z  [RW] 

Public Class methods

Creates a new envelope. Accept a sequence of point coordinates as argument : ((x,y),(x,y))

Creates a new envelope. Accept an array of 2 points as argument

Creates a enw Envelope with lower_corner as the first element of the corners array and upper_corner as the second element

Public Instance methods

Tests the equality of line strings

georss serialization: Dialect can be passed as option :dialect and set to :simple (default) :w3cgeo or :gml. Options <tt>:featuretypetag

Sends back a latlonaltbox

Sends back the center of the envelope

Merges the argument with the current evelope and sends back a new envelope without changing the current one

Merges the argument with the current evelope

[Validate]