Sha256: 001c9807401cf83b1721a11137d15f4de0539029fb85ad95994eee1fc01ec5c6

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

java_import com.vividsolutions.jts.io.WKTReader
java_import com.vividsolutions.jts.io.WKTWriter

module GeoScript
  module Geom
    module IO
      def self.read_wkt(wkt)
        WKTReader.new.read wkt
      end

      def self.write_wkt(geom)
        WKTWriter.new.write geom
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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