Class: Charta::Factory::Transformers::EwktPassthrough
- Inherits:
-
EwktTransformer
- Object
- EwktTransformer
- Charta::Factory::Transformers::EwktPassthrough
- Defined in:
- lib/charta/factory/transformers/ewkt_passthrough.rb
Instance Method Summary collapse
- #handles?(value, format:) ⇒ Boolean
-
#transform(value, srid: nil, format: nil) ⇒ String
Ewkt representation of value.
Instance Method Details
#handles?(value, format:) ⇒ Boolean
8 9 10 |
# File 'lib/charta/factory/transformers/ewkt_passthrough.rb', line 8 def handles?(value, format:) value.is_a?(String) && format.nil? end |
#transform(value, srid: nil, format: nil) ⇒ String
Returns ewkt representation of value.
14 15 16 |
# File 'lib/charta/factory/transformers/ewkt_passthrough.rb', line 14 def transform(value, srid: nil, format: nil) value end |