Method: GeoWorks::Processors::Raster::Processor#raster_processor_class

Defined in:
app/processors/geo_works/processors/raster.rb

#raster_processor_classObject

Returns a raster processor class based on mime type passed in the directives object.

Returns:

  • raster processing class



13
14
15
16
17
18
19
20
21
22
# File 'app/processors/geo_works/processors/raster.rb', line 13

def raster_processor_class
  case directives.fetch(:input_format)
  when 'text/plain; gdal-format=USGSDEM'
    GeoWorks::Processors::Raster::Dem
  when 'application/octet-stream; gdal-format=AIG'
    GeoWorks::Processors::Raster::Aig
  else
    GeoWorks::Processors::Raster::Base
  end
end