class ArcServer::Geometry::Polygon
Public Instance Methods
extent()
click to toggle source
# File lib/arcserver/geometry/geometry.rb, line 69 def extent poly = self.rings.flatten x = poly.values_at(*poly.each_index.select {|i| i.even?}) y = poly.values_at(*poly.each_index.select {|i| i.odd?}) [x.min, y.min, x.max, y.max] end
geometryType()
click to toggle source
# File lib/arcserver/geometry/geometry.rb, line 65 def geometryType "esriGeometryPolygon" end