Skip to content

The GDAL/ImageMagick-based exporter system from MapKnitter

License

Notifications You must be signed in to change notification settings

publiclab/mapknitter-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapKnitterExporter

Add this gem with gem install mapknitter_exporter

Then, use it with:

require 'mapknitter_exporter'

# this should work:

MapKnitterExporter.generate_perspectival_distort(
  scale,
  1, # a unique id
  [
    { lat: 41.8403113680142, lon: -71.3983854668186 },
    { lat: 41.8397358653566, lon: -71.3916477577732 },
    { lat: 41.8351476451765, lon: -71.392699183707  },
    { lat: 41.8377535388085, lon: -71.3981708900974 }
  ],
  'test/fixtures/demo.png',
  image,
  height,
  width
)

Tests

To run tests, use ruby test/exporter_test.rb.

Tests require minitest which you can install with bundle install.

About

The GDAL/ImageMagick-based exporter system from MapKnitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published