GeoRuby 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  =GeoRuby
2
- This is GeoRuby 0.0.1. It is intended as a holder for data returned from PostGIS queries. Therefore, the data model roughly follows the OGC "Simple Features for SQL" specification (see http://www.opengis.org/docs/99-049.pdf), although without any kind of advanced functionalities (such as geometric operators or reprojections).
2
+ This is GeoRuby 0.0.2. It is intended as a holder for data returned from PostGIS queries. Therefore, the data model roughly follows the OGC "Simple Features for SQL" specification (see http://www.opengis.org/docs/99-049.pdf), although without any kind of advanced functionalities (such as geometric operators or reprojections).
3
3
 
4
4
  ===Available data types
5
5
  The following geometric data types are provided :
@@ -15,6 +15,10 @@ The following geometric data types are provided :
15
15
  ===Input and output
16
16
  These geometries can be input and output in WKB/EWKB format (as well as the related HexWKB and HexEWKB formats). Since EWKB and HexEWKB are respectively the canonical binary and ASCII representations of geometries in PostGIS, this functionality can prove useful. Geometries can also be output as WKT/EWKT.
17
17
 
18
+ ===Installation
19
+ Just type :
20
+ gem install GeoRuby
21
+
18
22
  ===License
19
23
  GeoRuby is released under the MIT license.
20
24
 
@@ -142,7 +142,7 @@ module GeoRuby
142
142
 
143
143
  class UnpackStructure #:nodoc:
144
144
  NDR=1
145
- XDR=2
145
+ XDR=0
146
146
  def initialize(ewkb)
147
147
  @position=0
148
148
  @ewkb=ewkb
data/rakefile.rb CHANGED
@@ -24,7 +24,7 @@ spec = Gem::Specification::new do |s|
24
24
  s.platform = Gem::Platform::RUBY
25
25
 
26
26
  s.name = 'GeoRuby'
27
- s.version = "0.0.1"
27
+ s.version = "0.0.2"
28
28
  s.summary = "Ruby data holder for OGC Simple Features"
29
29
  s.description = <<EOF
30
30
  GeoRuby is intended as a holder for data returned from PostGIS queries. Therefore, the data model roughly follows the OGC "Simple Features for SQL" specification (see www.opengis.org/docs/99-049.pdf), although without any kind of advanced functionalities (such as geometric operators or reprojections)
@@ -18,6 +18,13 @@ class TestEWKBParser < Test::Unit::TestCase
18
18
  assert(point.instance_of?(Point))
19
19
  assert_equal(Point.from_x_y(12.4,45.3,123),point)
20
20
  end
21
+
22
+ def test_point2d_BigEndian
23
+ @hex_ewkb_parser.parse("00000000014013A035BD512EC7404A3060C38F3669")
24
+ point = @factory.geometry
25
+ assert(point.instance_of?(Point))
26
+ assert_equal(Point.from_x_y(4.906455,52.377953),point)
27
+ end
21
28
 
22
29
  def test_point3d
23
30
  @hex_ewkb_parser.parse("01010000A07B000000CDCCCCCCCCCC28406666666666A646400000000000000CC0")
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: GeoRuby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2006-01-28
6
+ version: 0.0.2
7
+ date: 2006-04-09
8
8
  summary: Ruby data holder for OGC Simple Features
9
9
  require_paths:
10
10
  - lib