3

I am programming a website (Node server) for a friend of mine who created a fantasy world, to promote his books and games.

As a former GIS tech, I really would like to setup a map of his world (using his drawings). I don't have any worries about projection since I'll be using Mercator, and nor about rendering since I can choose between OpenLayers and Leaflet.

My problem is: I don't own a server, nor any computer that could be used as, I rely on Heroku for hosting my apps and websites freely.

Does anyone know of a solution, some kind of WMS host allowing to upload at least georeferenced rasters?

I considered installing Geoserver or Mapserver but I really don't think free plans like I have on Heroku or any other webhost would allow me to install such softwares.

I considered also using npm packages directly in my website backend, but all I can find seems to be vector and no raster

There are about two dozen standard paper (A4) drawings to upload, I am open to any format.

If I find nothing else, I will vectorise the drawings and use a node server.

  • 3
    Mapbox comes to mind; not 100% sure if their free plan covers custom raster upload, but I suspect so. – ThingumaBob Feb 14 at 13:27
  • 1
    Azure and AWS offer "free time limited trials". This would be a pretty heavy solution if you only need to host for a short period of time. Heavy in the sense you'll probably need to setup a full VM and put some geo-hosting-server software on it yourself. – KHibma Feb 14 at 14:01
  • 5
    Have you considered to use a tool like gdal2tiles gdal.org/programs/gdal2tiles.html and place the tiles as xyz directory into any http server? – user30184 Feb 14 at 14:19
  • @user30184 gdal2tiles seems to be what I am talking about ! They say it generates data ready for leaflet or OL, that would be great. I'll take a further look at this in a few days – gui3 Feb 14 at 18:24
  • About Aws, @KHibma I already have an account but what I look for is no time limit (bandwidth limit is ok because I don't expect more than a hundred requests a month) – gui3 Feb 14 at 18:24
3

You can avoid completely web map server depending of your requirements.

I've made a recipe (using command line) to produce tiles using

  • MBTiles where you only need a PHP file to serve tiles from a SQLite database so very easy to deploy on Heroku
  • GDAL2Tiles if you prefer an approach with only a file system (hierarchy of directories with png files within)

You can find it at https://gist.github.com/ThomasG77/127c8b7b4781c77528ce6d4827f2dc1a

It will also show how to serve MBTiles using PHP. I do not cover Node for MBTiles use case but you can use https://github.com/tobinbradley/mbtiles-server or https://github.com/DenisCarriere/mbtiles-server#readme to serve MBTiles (it seems you are using Node as you mentioned NPM packages)

FIY, you can also produce both MBTiles or directory of tiles from QGIS "Processing Toolbox" with functions "Generate XYZ tiles (Directory)" and "Generate XYZ tiles (MBTiles)"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.