Sha256: 788aeca8ac51990671edc3a6d1bcc0bf24dff9f2d8ac082f18514c550ed94b0d

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

#!/usr/bin/env ruby
require 'rgeo'
a = "0101000000000000000000F03F000000000000F03F"

factory = RGeo::Geographic.spherical_factory(:default_srid => 4326)
parser = RGeo::WKRep::WKBParser.new(nil, support_ewkb: true, default_srid: 4326)
point = parser.parse(a)
p point.srid

generator = RGeo::WKRep::WKTGenerator.new(tag_format: :ewkt) #, emit_ewkt_srid: true)
p generator.generate(point)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
armg-0.7.1 test.rb
armg-0.7.0 test.rb
armg-0.6.1 test.rb
armg-0.6.0 test.rb
armg-0.5.2 test.rb
armg-0.5.1 test.rb
armg-0.5.0 test.rb