<div dir="ltr">Laurent,<div><br><div>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):</div>

<div><br></div><div>1. Install the Openlayers plugin</div><div>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)</div><div>3. edit the file openlayers_plugin.py to add the following line between line 124 and 142:     </div>

<div>self.olLayerTypeRegistry.add( OlLayerType(self, 'OSM - Humanitarian Data Model', 'osm_icon.png', 'osm_hdm.html', True) )</div><div><br></div><div>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:</div>

<div>   "OpenStreetMap - Humanitarian Data Model",</div><div><div>            var osm = new OpenLayers.Layer.OSM(</div><div>              "OpenStreetMap - Humanitarian Data Model",</div><div>              ["<a href="http://a.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png">http://a.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png</a>",</div>

<div>              "<a href="http://b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png">http://b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png</a>",</div><div>              "<a href="http://c.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png">http://c.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png</a>"],</div>

<div>              {</div><div>                eventListeners: {</div><div>                  "loadstart": layerLoadStart,</div><div>                  "loadend": layerLoadEnd</div><div>                }</div>

<div>              }</div><div>            );</div></div><div><br></div><div>Then (re)start QGIS and add your shapefile on top and you should be good to go.</div><div><br></div><div>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.</div>

<div><br></div><div>Cheers,</div><div><br></div><div>Vivien</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 12:18 AM, Kate Chapman <span dir="ltr"><<a href="mailto:kate@maploser.com" target="_blank">kate@maploser.com</a>></span> wrote:<br>

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


>> (4) <a href="https://hackpad.com/HIF-Brainstorming-uVyyoPsCqTZ" target="_blank">https://hackpad.com/HIF-Brainstorming-uVyyoPsCqTZ</a><br>
>><br>
>> _______________________________________________<br>
>> HOT mailing list<br>
>> <a href="mailto:HOT@openstreetmap.org">HOT@openstreetmap.org</a><br>
>> <a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
><br>
><br>
<br>
_______________________________________________<br>
HOT mailing list<br>
<a href="mailto:HOT@openstreetmap.org">HOT@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
</div></div></blockquote></div><br></div>