Class: Charta::Factory::FeatureFactoryBase

Inherits:
Object
  • Object
show all
Defined in:
lib/charta/factory/feature_factory_base.rb

Direct Known Subclasses

SimpleFeatureFactory

Instance Method Summary collapse

Instance Method Details

#empty_feature(srs = :WGS84) ⇒ Object



10
11
12
# File 'lib/charta/factory/feature_factory_base.rb', line 10

def empty_feature(srs = :WGS84)
  new_feature('GEOMETRYCOLLECTION EMPTY', srs: srs)
end

#new_feature(coordinates, srs: nil, format: nil) ⇒ Object

Raises:

  • (StandardError)


6
7
8
# File 'lib/charta/factory/feature_factory_base.rb', line 6

def new_feature(coordinates, srs: nil, format: nil)
  raise StandardError.new('Not implemented')
end