Module: SpatialAdapter
- Defined in:
- lib/spatial_adapter.rb,
lib/spatial_adapter/common.rb,
lib/spatial_adapter/railtie.rb,
lib/spatial_adapter/version.rb,
lib/spatial_adapter/base/mysql.rb,
lib/spatial_adapter/common/raw_geom_info.rb,
lib/spatial_adapter/common/spatial_column.rb
Defined Under Namespace
Modules: Base, Common, SpatialColumn Classes: NotCompatibleError, Railtie, RawGeomInfo
Constant Summary collapse
- VERSION =
'1.3.1'
Class Method Summary collapse
-
.geometry_data_types ⇒ Object
Translation of geometric data types.
Class Method Details
.geometry_data_types ⇒ Object
Translation of geometric data types
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/spatial_adapter.rb', line 19 def self.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 |