Module: SpatialAdapter

Defined in:
lib/postgis_adapter/common_spatial_adapter.rb

Instance Method Summary collapse

Instance Method Details

#geometry_data_typesObject

Translation of geometric data types



102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/postgis_adapter/common_spatial_adapter.rb', line 102

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