def shape(geom, attributes)
      fields = Hash.new
      attributes.each do |key, value|
        fields[key.to_s] = value
      end
      GeoRuby::Shp4r::ShpRecord.new(geom, fields)
    end
def shape(geom, attributes)
      fields = Hash.new
      attributes.each do |key, value|
        fields[key.to_s] = value
      end
      GeoRuby::Shp4r::ShpRecord.new(geom, fields)
    end
Create a new GeoRuby::Shp4r::ShpRecord with the geometry of
 this object and the given attributes.

 This only works if the GeoRuby library is included.

 geom:: Geometry
 attributes:: Hash with attributes

 call-seq: shape(attributes) -> GeoRuby::Shp4r::ShpRecord

 Example:
   require 'rubygems'
   require 'geo_ruby'
   node = Node(nil, nil, nil, 7.84, 54.34)
   g = node.point
   node.shape(g, :type => 'Pharmacy', :name => 'Hyde Park Pharmacy')