Skip to content

Commit

Permalink
Basic implementation of OGC coordinate system interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Dec 15, 2010
1 parent a74e3a6 commit e60b873
Show file tree
Hide file tree
Showing 8 changed files with 1,497 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/rgeo/cartesian/factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def initialize(opts_={})
else
@proj4 = nil
end
@coord_sys = opts_[:coord_sys]
if @coord_sys.kind_of?(::String)
@coord_sys = CoordSys::CS.create_from_wkt(@coord_sys) rescue nil
end
end


Expand Down Expand Up @@ -184,7 +188,7 @@ def proj4
# See ::RGeo::Feature::Factory#coord_sys

def coord_sys
nil
@coord_sys
end


Expand Down
3 changes: 3 additions & 0 deletions lib/rgeo/coord_sys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ module CoordSys
require 'rgeo/coord_sys/proj4_c_impl'
rescue ::LoadError; end
require 'rgeo/coord_sys/proj4'
require 'rgeo/coord_sys/cs_classes'
require 'rgeo/coord_sys/cs_wkt_parser'
require 'rgeo/coord_sys/cs_factory'
Loading

0 comments on commit e60b873

Please sign in to comment.