Comments (6)
From the top of my head I'd say ActiveSupport core extensions. You can roll your own as_json for Hash, obviously.
from georuby.
It's just:
class Hash
def as_json(opts = {})
self
end
end
ya? Seems like a a good idea to add that to this project in case we're not working with Active*.
from georuby.
Yup, we could have something like that as a default Hash extension if ActiveSupport (or the method) is not present.
from georuby.
I've pushed some clean ups and changes. Please provide a use case @parkr , just need a spec to understand this part of the code ;)
from georuby.
@nofxx I was writing out GeoJSON, like so: https://github.com/parkr/would-patronize-again/blob/master/lib/patronize.rb
I got the above error when trying to turn the geographic information into GeoJSON and writing it out to a file.
from georuby.
Hello @parkr, should be working fine now. (v2.5.1)
No need for ActiveWhatever, #to_json is from 'json' gem:
*> {a: 1}.to_json
=> "{"a":1}"
>> JSON
=> JSON
>> ActiveSupport
NameError: uninitialized constant ActiveSupport
from (irb):4
from /usr/bin/irb:11:in `<main>'
from georuby.
Related Issues (20)
- Unable to connect to postgres without postGIS installed HOT 1
- Push latest version to Rubygems HOT 2
- kml_spec.rb failure HOT 1
- On Ruby 2.1.0 the HexEWKBParser fails to give correct results HOT 3
- gem fails to load? HOT 1
- CZML Support
- shape support does not work with dbf gem HOT 3
- *.SHP, *.SHX *.DBF files not supported (File extensions are capitalized) HOT 2
- Sync correct version on rubygems HOT 1
- Not able to access Dbf HOT 2
- line_string#simplify only returns two points HOT 1
- How to output a GeoJSONFeatureCollection? HOT 1
- build error badge in the readme
- code climate badge appears to be gone/misconfigured - image is missing
- malformed markdown in the readme
- Empty attribute table
- GeoRuby::SimpleFeatures::EWKBFormatError errors HOT 1
- Redirection to RGeo
- Soft Backend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from georuby.