rgeo/rgeo-geojson

No Lib folder

Closed this issue · 3 comments

I installed the gem but I do not have a lib/rgeo/... folder. Is this normal? Do I have to create this folder manually?

Gem files are installed normally. You don't need to do anything special in your project. After you install the gem, you can require it with require 'rgeo-geojson'.

$ gem install rgeo-geojson
$ irb
> require 'rgeo-geojson'
=> true
> RGeo::GeoJSON
=> RGeo::GeoJSON

Thanks, ;)

$ irb

require 'rgeo-geojson'
=> false
RGeo::GeoJSON
=> RGeo::GeoJSON

but it work ;)

I need a hash like (Features & features collection), how can I do ? Where I can find a tuto who explain how i must do ?

@Tioneb12 check out this set of articles to learn more about how to use RGeo. The examples in the README.md also shows some simple encode/decode of features. Another useful resource when learning a library such as rgeo-geojson is the unit tests. For example, here's one way to work with a feature collection.