[HOT] Humanitarian Innovation Fund Proposal Brainstorming Chat

Vivien Deparday vivien.deparday at gmail.com
Thu Oct 24 20:06:31 UTC 2013


Laurent,

As suggested by Kate, we have been using this technique too and you can
definitely do something similar a lot quicker in QGIS (a bit less flexible
though), you just need to tweak a little bit the OpenLayers plugin (should
be a lot easier than what you had to do with PostGIS and TileMill):

1. Install the Openlayers plugin
2. locate where it is installed on your hard drive (depending on your OS:
in my case it is: /Users/viv/.qgis2/python/plugins/openlayers_plugin)
3. edit the file openlayers_plugin.py to add the following line between
line 124 and 142:
self.olLayerTypeRegistry.add( OlLayerType(self, 'OSM - Humanitarian Data
Model', 'osm_icon.png', 'osm_hdm.html', True) )

4. in /html copy osm.html into a new file osm_hdm.html and edit
osm_hdm.html to have the HDM server instead of the OSM server, should look
like this around line 32:
   "OpenStreetMap - Humanitarian Data Model",
            var osm = new OpenLayers.Layer.OSM(
              "OpenStreetMap - Humanitarian Data Model",
              ["http://a.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png",
              "http://b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png",
              "http://c.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png"],
              {
                eventListeners: {
                  "loadstart": layerLoadStart,
                  "loadend": layerLoadEnd
                }
              }
            );

Then (re)start QGIS and add your shapefile on top and you should be good to
go.

I will do a PR to the QGIS plugin so that hopefully it gets added by
default to the new plugin version so there is no tweaking needed.

Cheers,

Vivien


On Thu, Oct 17, 2013 at 12:18 AM, Kate Chapman <kate at maploser.com> wrote:

> HI Laurent,
>
> Understood there are certainly things that could be done to make things
> easier.
>
> I wonder if you could have pulled the HDM rendering into QGIS using
> the OpenLayers plugin and then just put the health districts on top.
> We made a lot of maps in Jakarta for urban village leaders and what
> was done was take a WMS of the OSM data and then pull it into the map
> for printing, sticking a shp on top wouldn't be too bad.
>
> What do you mean by download the OSM data once? You could do that now,
> though if you update it you are going to off to upload your changes.
> Are you talking about differentials to update or something else?
>
> Thanks,
>
> -Kate
>
> On Tue, Oct 15, 2013 at 5:45 PM, Laurent Savaete
> <laurent.savaete at gmail.com> wrote:
> > Hi Kate,
> >
> > The map of Kalemie (http://tasks.hotosm.org/job/312) produced by the HOT
> > team via the task manager is simply the best map of the city that has
> ever
> > existed.
> > Still, my perspective on things (as seen from Congo) is that HOT needs
> > better (simpler) tools to make use of OSM data in the field.
> >
> > I'll just give a couple of examples of workflows that have been
> complicated
> > for me:
> > - I've had to print maps of the city we work in showing boundaries of
> health
> > areas. These are not in OSM (I was told before that they probably don't
> > belong there), so to get an A2 sized map of each of them, I've had to get
> > osm data in postgis, fix tilemill (with ybon's help on irc), and write a
> > python script (and later fork tilemill to add what I wanted) in order to
> > produce the map I needed (HDM rendering with custom shapefile
> overlayed). I
> > don't think this is a particularly weird usecase, however it has required
> > lots of (technical) work. If we could get the same job done in 10
> minutes by
> > a non-coder, it would bring tremendous value for the field.
> > - alternatively, if I could render HDM in QGIS as a baselayer, maybe that
> > would do the trick, though I like tilemill customization capabilities
> > - making maps easily converted to Garmin basemaps with HDM rendering
> would
> > be great. If I could get a custom layer thrown in (say boundaries for
> each
> > team's work area), it would be fantastic!
> >
> > Now to top it up, if I could use these tools offline (download osm data
> > once, then run unplugged), I'd be happiest OSM user around :) There's a
> > handful of nice tools online, but you rarely get 4G mobile internet in
> the
> > field!
> >
> > Then make all these tools as easy to install as firefox, and it's a
> killer!
> >
> > cheers,
> > Laurent
> >
> >
> > 2013/10/13 Kate Chapman <kate at maploser.com>
> >>
> >> Hi All,
> >>
> >> The Humanitarian Innovation Fund currently is in an application window
> >> for Large Grant Proposals(1). I put other information and supporting
> >> documents here(2).
> >>
> >> I'd like to convene a brainstorming session this week on IRC to
> >> discuss ideas on things HOT could do better with this sort of funding.
> >>
> >> The meeting will take place on IRC at Thursday, 17 October 2013,
> >> 15:00:00 UTC. Here is a timezone converter for you all (3).
> >>
> >> Here is a hackpad to get started(4). If you can't attend this meeting
> >> feel free to comment on this thread or in the hackpad.
> >>
> >> Thanks,
> >>
> >> -Kate
> >>
> >>
> >> (1)
> >>
> http://www.humanitarianinnovation.org/news/hif-large-grant-facility-open-0
> >> (2)
> >>
> https://drive.google.com/folderview?id=0Bzo5n4vXsVmeN3FBU2dDZm42ckE&usp=sharing
> >> (3)
> >>
> http://www.timeanddate.com/worldclock/fixedtime.html?msg=HIF+Brainstorming&iso=20131017T22&p1=1946
> >> (4) https://hackpad.com/HIF-Brainstorming-uVyyoPsCqTZ
> >>
> >> _______________________________________________
> >> HOT mailing list
> >> HOT at openstreetmap.org
> >> https://lists.openstreetmap.org/listinfo/hot
> >
> >
>
> _______________________________________________
> HOT mailing list
> HOT at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/hot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/hot/attachments/20131024/b94cb230/attachment.html>


More information about the HOT mailing list