Method: RGeo::Geos::CAPIGeometryMethods#encode_with
- Defined in:
- lib/rgeo/geos/capi_feature_classes.rb
#encode_with(coder) ⇒ Object
Psych support
53 54 55 56 57 58 59 |
# File 'lib/rgeo/geos/capi_feature_classes.rb', line 53 def encode_with(coder) # :nodoc: my_factory = factory coder["factory"] = my_factory str = my_factory.write_for_psych(self) str = str.encode("US-ASCII") if str.respond_to?(:encode) coder["wkt"] = str end |