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.
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