Skip to content

Commit

Permalink
Includes Enumerable in ShpFile (so inject and all can be called)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvellut committed Feb 26, 2007
1 parent 81390b4 commit 05f08ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/geo_ruby/shp4r/shp.rb
Expand Up @@ -25,6 +25,8 @@ module ShpType
class ShpFile
attr_reader :shp_type, :record_count, :xmin, :ymin, :xmax, :ymax, :zmin, :zmax, :mmin, :mmax

include Enumerable

#Opens a SHP file. Both "abc.shp" and "abc" are accepted. The files "abc.shp", "abc.shx" and "abc.dbf" must be present
def initialize(file, access = "r")
#strip the shp out of the file if present
Expand Down
1 change: 0 additions & 1 deletion test/test_shp.rb
Expand Up @@ -73,5 +73,4 @@ def test_polygon

shpfile.close
end

end

0 comments on commit 05f08ab

Please sign in to comment.