GeoRuby 0.0.3 → 0.0.4

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.3. 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.4. 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 :
@@ -20,7 +20,8 @@ Just type :
20
20
  gem install GeoRuby
21
21
 
22
22
  ===Changes since the last version
23
- Geometries can be input in WKT/EWKT format
23
+ Change of the default SRID when not specified
24
+ Correction of a bug in the EWKT parsing for negative SRIDs
24
25
 
25
26
  ===License
26
27
  GeoRuby is released under the MIT license.
@@ -43,7 +43,7 @@ module GeoRuby
43
43
  private
44
44
  def parse_geometry(ewkt)
45
45
  scanner = StringScanner.new(ewkt)
46
- if scanner.scan(/SRID=(\d+);/)
46
+ if scanner.scan(/SRID=(-?\d+);/)
47
47
  @srid = scanner[1].to_i
48
48
  else
49
49
  #to manage multi geometries : the srid is not present in sub_geometries, therefore we take the srid of the parent ; if it is the parent, we take the default srid
@@ -1,7 +1,7 @@
1
1
  module GeoRuby#:nodoc:
2
2
  module SimpleFeatures
3
3
  #arbitrary default SRID
4
- DEFAULT_SRID=128
4
+ DEFAULT_SRID=-1
5
5
  #indicates the presence of Z coordinates in EWKB strings
6
6
  Z_MASK=0x80000000
7
7
  #indicates the presence of M coordinates in EWKB strings. It is not supported at present.
@@ -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.3"
27
+ s.version = "0.0.4"
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)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: GeoRuby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
7
- date: 2006-04-16 00:00:00 +05:00
6
+ version: 0.0.4
7
+ date: 2006-04-23 00:00:00 +05:00
8
8
  summary: Ruby data holder for OGC Simple Features
9
9
  require_paths:
10
10
  - lib