Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Harry Wood
proj4rb in rails [ reply ]  
2010-05-28 16:17
If you're using proj4b in rails you must add the following to your environment.rb file:

config.gem "proj4rb", :lib => "proj4"

and then do "rake gems:install"

Note the ':lib' bit, which I guess enables the wrapped C library within the rails environment in some way.

Without this, I was stuck for a while with an error message: "no implicit conversion to float from nil" occurring on the line where I was calling 'forward' to perform a projection.