lib/terraformer.rb in terraformer-0.0.4 vs lib/terraformer.rb in terraformer-0.0.6
- old
+ new
@@ -46,10 +46,15 @@
else
raise ArgumentError.new 'unknown type: ' + geojson['type']
end
end
+ def self.geojson_io data
+ require 'launchy'
+ Launchy.open "http://geojson.io/#data=data:application/json,#{URI.encode_www_form_component data.to_json}"
+ end
+
class Primitive
def initialize *args
arg = String === args[0] ? JSON.parse(args[0]) : args[0]
raise ArgumentError.new "invalid argument(s): #{args}" unless Hash === arg
@@ -90,7 +95,8 @@
require 'terraformer/multi_line_string'
require 'terraformer/polygon'
require 'terraformer/multi_polygon'
require 'terraformer/convex_hull'
require 'terraformer/circle'
+require 'terraformer/arcgis'
require 'terraformer/version'