Method: RGeo::Geographic::Factory#encode_with
- Defined in:
- lib/rgeo/geographic/factory.rb
#encode_with(coder) ⇒ Object
Psych support
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/rgeo/geographic/factory.rb', line 160 def encode_with(coder) # :nodoc: coder["impl_prefix"] = @impl_prefix coder["has_z_coordinate"] = @support_z coder["has_m_coordinate"] = @support_m coder["srid"] = @srid coder["wkt_generator"] = @wkt_generator.properties coder["wkb_generator"] = @wkb_generator.properties coder["wkt_parser"] = @wkt_parser.properties coder["wkb_parser"] = @wkb_parser.properties coder["buffer_resolution"] = @buffer_resolution coder["coord_sys"] = @coord_sys.to_wkt if @coord_sys return unless @projector coder["projectorclass"] = @projector.class.name.sub(/.*::/, "") coder["projection_factory"] = @projector.projection_factory end |