Class GeoRuby::SimpleFeatures::EWKTParser
In: lib/geo_ruby/simple_features/ewkt_parser.rb
Parent: Object

Parses EWKT strings and notifies of events (such as the beginning of the definition of geometry, the value of the SRID…) the factory passed as argument to the constructor.

Example

 factory = GeometryFactory::new
 ewkt_parser = EWKTParser::new(factory)
 ewkt_parser.parse(<EWKT String>)
 geometry = @factory.geometry

You can also use directly the static method Geometry.from_ewkt

Methods

new   parse  

Public Class methods

Public Instance methods

Parses the ewkt string passed as argument and notifies the factory of events

[Validate]