Class: ActiveRecord::ConnectionAdapters::PostGISAdapter::ColumnDefinition
- Inherits:
-
ConnectionAdapters::ColumnDefinition
- Object
- ConnectionAdapters::ColumnDefinition
- ActiveRecord::ConnectionAdapters::PostGISAdapter::ColumnDefinition
- Defined in:
- lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb
Overview
:nodoc:
Instance Method Summary collapse
- #geographic? ⇒ Boolean
- #has_m? ⇒ Boolean
- #has_z? ⇒ Boolean
- #set_geographic(value_) ⇒ Object
- #set_has_m(value_) ⇒ Object
- #set_has_z(value_) ⇒ Object
- #set_spatial_type(value_) ⇒ Object
- #set_srid(value_) ⇒ Object
- #spatial_type ⇒ Object
- #srid ⇒ Object
Instance Method Details
#geographic? ⇒ Boolean
78 79 80 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 78 def geographic? @geographic end |
#has_m? ⇒ Boolean
94 95 96 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 94 def has_m? @has_m end |
#has_z? ⇒ Boolean
90 91 92 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 90 def has_z? @has_z end |
#set_geographic(value_) ⇒ Object
98 99 100 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 98 def set_geographic(value_) @geographic = value_ ? true : false end |
#set_has_m(value_) ⇒ Object
114 115 116 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 114 def set_has_m(value_) @has_m = value_ ? true : false end |
#set_has_z(value_) ⇒ Object
110 111 112 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 110 def set_has_z(value_) @has_z = value_ ? true : false end |
#set_spatial_type(value_) ⇒ Object
102 103 104 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 102 def set_spatial_type(value_) @spatial_type = value_.to_s end |
#set_srid(value_) ⇒ Object
106 107 108 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 106 def set_srid(value_) @srid = value_ end |
#spatial_type ⇒ Object
74 75 76 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 74 def spatial_type @spatial_type end |
#srid ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb', line 82 def srid if @srid @srid.to_i else geographic? ? 4326 : PostGISAdapter::DEFAULT_SRID end end |