Sha256: 53c3943ec775146ef7ec77f5ce2db31df195e3e9efe3e13828fba6583d865b38
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
require 'geo_ruby' require 'active_record' module SpatialAdapter #Translation of geometric data types def geometry_data_types { :point => { :name => "POINT" }, :line_string => { :name => "LINESTRING" }, :polygon => { :name => "POLYGON" }, :geometry_collection => { :name => "GEOMETRYCOLLECTION" }, :multi_point => { :name => "MULTIPOINT" }, :multi_line_string => { :name => "MULTILINESTRING" }, :multi_polygon => { :name => "MULTIPOLYGON" }, :geometry => { :name => "GEOMETRY"} } end end require 'spatial_adapter/raw_geom_info' require 'spatial_adapter/spatial_column' require 'spatial_adapter/schema_definitions' require 'spatial_adapter/schema_dumper' require 'spatial_adapter/table_definition' require 'spatial_adapter/adapters/postgis' require 'spatial_adapter/adapters/mysql'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spatial_adapter-0.3.0 | lib/spatial_adapter.rb |
spatial_adapter-0.2.1 | lib/spatial_adapter.rb |
spatial_adapter-0.2.0 | lib/spatial_adapter.rb |