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 +5 -1
- data/lib/geo_ruby/simple_features/ewkb_parser.rb +1 -1
- data/rakefile.rb +1 -1
- data/test/test_ewkb_parser.rb +7 -0
- metadata +2 -2
data/README
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
=GeoRuby
|
2
|
-
This is GeoRuby 0.0.
|
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
|
|
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.
|
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)
|
data/test/test_ewkb_parser.rb
CHANGED
@@ -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