Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trailbehind/gaia-map-warper
This is a clone of the NYPL map warper created by Tim Waters, with a few changes for use in Gaia GPS. If you are interested in forking this project, I suggest you go with the original.
https://github.com/trailbehind/gaia-map-warper
Last synced: 3 days ago
JSON representation
This is a clone of the NYPL map warper created by Tim Waters, with a few changes for use in Gaia GPS. If you are interested in forking this project, I suggest you go with the original.
- Host: GitHub
- URL: https://github.com/trailbehind/gaia-map-warper
- Owner: trailbehind
- License: mit
- Created: 2012-10-30T04:46:20.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T20:20:04.000Z (about 10 years ago)
- Last Synced: 2023-10-20T23:32:14.171Z (about 1 year ago)
- Language: JavaScript
- Size: 6.6 MB
- Stars: 9
- Watchers: 28
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
README
--------Some things you may need to set up first:
libgdal-ruby is used to get the raster extents to update the bounding box of a warped map
config/deploy.rb for capistrano users, change this as fits. Have a look and see
how it works with shared paths, to save mapserver map files and images between deploys.gdal - needs to be installed, again FWTOOLS good. the path to the gdal executable
directory can be added / changed in config/environments/production.rb and/or development.rb if
It cannot find it on the PATH.Some files you will need to put manually there, and capistrano copies across to the correct place, basically enables
the code not to have site specific stuff in svn.config/initializers/session_store.rb.example into shared/config/session_store.rb
config/initializers/mail.rb. put mail.rb into shared/config folder
config/environments/production.rb again, into shared/config folder
config/database.yml.production into shared/config folder
see deploy.rb for detailscreate folders shared/system/mapimages/src and /dst and /dst/png
database - standard rails db migrate should do the trick - mysql or sqlite3 should
make sure you login as the admin set up in the migration 010 and use this to create a new user, and use this to disable this initial default adminbe fine. Change the database.example file to your database.yml
imagemagick required for paperclip and thumbnail handling....
legacy import from older warper with mapscans
you can use the custom rake command
RAILS_ENV=development rake legacy:migrate --trace
---------
replace GOOGLE_MAPS_KEY in production.rb to your ownOther optional config options put in you environment files
MAX_DIMENSION = 2000 #max dimension width or height for an upload. Otherwise it will get resized to fit this max size
MAX_ATTACHMENT_SIZE = 5.megabyte #max upload file size
GDAL_MEMORY_LIMIT = 20 # max memory used for gdal_warp, may keep some servers sweet
if you comment these out, then no constraints are used
--
tim waterstim_at_geothings_dotnet