Sha256: f2f476628f261529729e8ada9ff8e3d75e64f565257b43a44fa5d6d2802c369b

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

java_import org.geotools.geojson.geom.GeometryJSON

module GeoScript
  module Geom
    module IO
      def self.write_json(geom)
        GeometryJSON.new.to_string geom
      end

      def self.read_json(json)
        GeometryJSON.new.read json.to_java
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoscript-0.0.1 lib/geoscript/geom/io/json.rb
geoscript-0.0.1.pre lib/geoscript/geom/io/json.rb