Module: SpatialAdapter

Defined in:
lib/spatial_adapter.rb,
lib/spatial_adapter/railtie.rb,
lib/spatial_adapter/common/raw_geom_info.rb,
lib/spatial_adapter/common/spatial_column.rb

Defined Under Namespace

Modules: SpatialColumn Classes: NotCompatibleError, Railtie, RawGeomInfo

Instance Method Summary (collapse)

Instance Method Details

- (Object) geometry_data_types

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 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