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

61c825d · Nov 16, 2021

History

85 Commits
Sep 25, 2021
Nov 16, 2021
Sep 25, 2021
Jul 14, 2020
Jun 30, 2020
Sep 25, 2021
Jul 11, 2020
Jul 11, 2020
Sep 25, 2021
Nov 15, 2021
Nov 16, 2021
Mar 16, 2019
Jun 30, 2020
Jul 14, 2020
Mar 16, 2019
Apr 14, 2019
Apr 14, 2019
Apr 14, 2019
Apr 14, 2019
Apr 29, 2019
Apr 30, 2019
Nov 15, 2021
Nov 15, 2021
Nov 16, 2021
Apr 30, 2019
May 5, 2019
May 17, 2019
May 23, 2019
May 23, 2019
May 24, 2019
Jul 1, 2019
Jul 1, 2019
Nov 16, 2021

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