We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I attempt:
I am running:
os-x "High Sierra" 10.13.2 ruby 2.4.0p0 ruby on rails (5.1.1) rgeo-shapefile (0.2.3) dbf (3.1.1) rgeo (1.0.0) geos (3.6.2) which installed via brew install geos
brew install geos
In a rails console when I run the example
rails console
require 'rgeo/shapefile' RGeo::Shapefile::Reader.open('my_shapefile.shp') do |file| puts "File contains #{file.num_records} records." file.each do |record| puts "Record number #{record.index}:" puts " Geometry: #{record.geometry.as_text}" puts " Attributes: #{record.attributes.inspect}" end file.rewind record = file.next puts "First record geometry was: #{record.geometry.as_text}" end
I receive the output
File contains 83 records. RGeo::Error::RGeoError: GEOS is not available, but is required for correct interpretation of polygons in shapefiles.
'my_shapefile.shp' was a Zillow neighborhood file for Georgia.
Additional note is if I open irb in a directory other than this rails app and run:
irb
require 'rgeo' RGeo::Geos.supported?
it returns true
true
Running the same commands in irb inside the rails app root directory returns false.
false
The text was updated successfully, but these errors were encountered:
I was able to solve the problem by uninstalling rgeo then running
rgeo
ARCHFLAGS="-arch x86_64" gem install rgeo
Sorry, something went wrong.
Seems like this is fixed.
No branches or pull requests
When I attempt:
I am running:
os-x "High Sierra" 10.13.2
ruby 2.4.0p0
ruby on rails (5.1.1)
rgeo-shapefile (0.2.3)
dbf (3.1.1)
rgeo (1.0.0)
geos (3.6.2) which installed via
brew install geos
In a
rails console
when I run the exampleI receive the output
'my_shapefile.shp' was a Zillow neighborhood file for Georgia.
Additional note is if I open
irb
in a directory other than this rails app and run:it returns
true
Running the same commands in
irb
inside the rails app root directory returnsfalse
.The text was updated successfully, but these errors were encountered: