<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>>Thank you, these figures have done the trick.<br></div><div><br></div>good news :)<div>( I see : <a href="https://taginfo.openstreetmap.org.uk/taginfo/config">https://taginfo.openstreetmap.org.uk/taginfo/config</a> )</div><div><br></div><div>some small comments:</div><div>#1.</div><div>  you can add a config    turbo.wizard_area =  "in 'United Kingdom'"<br>  <a href="https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json#L71">https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json#L71</a>     but this is containing Northern Ireland</div><div>  ( I have checked the  "Great Britain" relation, but this is smaller <a href="https://www.openstreetmap.org/relation/6038068">https://www.openstreetmap.org/relation/6038068</a> , a lot of islands not included )</div><div><br></div><div>#2.</div><div>with high precision extracting - you can remove the extra tags in Ireland  ( ~ south coastline )  or in France </div><div>* <a href="https://taginfo.openstreetmap.org.uk/keys/natural#map">https://taginfo.openstreetmap.org.uk/keys/natural#map</a>  vs.  <a href="http://207.180.196.156:20142/keys/natural#map">http://207.180.196.156:20142/keys/natural#map</a>  </div><div>I am running an extra <font face="monospace, monospace">"osmium extract -<span style="color:rgb(36,41,46);font-size:12px;white-space:pre">-strategy simple</span>" </font>on the input data:   <a href="https://github.com/taginfo/dockerized-taginfo/blob/master/sh/osm_split.sh#L47">https://github.com/taginfo/dockerized-taginfo/blob/master/sh/osm_split.sh#L47</a></div><div><br></div><div>Imre</div><div><br></div><div> </div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Shaun McDonald <<a href="mailto:shaun@shaunmcdonald.me.uk">shaun@shaunmcdonald.me.uk</a>> ezt írta (időpont: 2019. ápr. 22., H, 0:27):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Imre,<div><br></div><div>Thank you, these figures have done the trick.</div><div><br></div><div>The coordinates are in a different order to which Taginfo uses, however swapping the middle 2 numbers produces a good map.</div><div><br></div><div>Shaun<br><div><br><blockquote type="cite"><div>On 20 Apr 2019, at 17:04, Imre Samu <<a href="mailto:pella.samu@gmail.com" target="_blank">pella.samu@gmail.com</a>> wrote:</div><br class="gmail-m_-4121524507858954761Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Shaun,<div><br></div><div>sorry, now I can't debug your values - but as I remember it is not easy. </div><div><br></div><div><div>I am calculating with this ugly SQL function - for every country.</div><div>* <a href="https://github.com/taginfo/dockerized-taginfo/blob/master/setup/setup_xtaginfo_admin.sql#L42" target="_blank">https://github.com/taginfo/dockerized-taginfo/blob/master/setup/setup_xtaginfo_admin.sql#L42</a></div></div><div><div><br></div></div><div>and my result for GB  - this.</div><div><a href="https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json" target="_blank">https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json</a>   - but this is smaller than yours<br></div><div>( ~ 2-3 day online: <a href="http://207.180.196.156:20142/keys/highway#map" target="_blank">http://207.180.196.156:20142/keys/highway#map</a> )</div><div> included : <a href="https://en.wikipedia.org/wiki/Rockall" target="_blank">https://en.wikipedia.org/wiki/Rockall</a> - so it is strange .. </div><div><br></div><div>-------</div><div><div>and calling with your coordinate - my result.<br></div><div><font face="monospace, monospace">===============</font></div><div><font face="monospace, monospace">osm=# select get_xtaginfo('gb', -12.35,2.98, 49.47, 61.2) ;</font></div><div><font face="monospace, monospace">NOTICE:  OK   R# = gb, 18 , 279.000 , 216.000 ,0.170 ,0.270</font></div><div><font face="monospace, monospace">            get_xtaginfo             </font></div><div><font face="monospace, monospace">-------------------------------------</font></div><div><font face="monospace, monospace"> {279,216,-12.35,3.150,49.47,61.470}</font></div><div><font face="monospace, monospace">(1 row)</font></div><div><font face="monospace, monospace">==============</font></div><div>so the geneated image:  279 x 216  pixel     <br></div><div>and the coordinates=  -12.35,3.150,49.47,61.470<br></div></div><div>but  I can't test ..</div><div><br></div><div>Imre</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Shaun McDonald <<a href="mailto:shaun@shaunmcdonald.me.uk" target="_blank">shaun@shaunmcdonald.me.uk</a>> ezt írta (időpont: 2019. ápr. 20., Szo, 11:20):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
<br>
I’m trying to get the background map to match the Taginfo generated map for the GB Taginfo. I seem to be missing something from the instructions on the OSM wiki, as the background maps. With an earlier version I was getting too much included vertically.<br>
<br>
<a href="https://wiki.openstreetmap.org/wiki/Taginfo/Installation#Adapting_the_map_view" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Taginfo/Installation#Adapting_the_map_view</a><br>
<br>
My working is in <a href="https://docs.google.com/spreadsheets/d/1rnO5jqZAirsFankimavetobulNE2f5MJi4Z0PA8h0Dc/edit?usp=sharing" rel="noreferrer" target="_blank">https://docs.google.com/spreadsheets/d/1rnO5jqZAirsFankimavetobulNE2f5MJi4Z0PA8h0Dc/edit?usp=sharing</a><br>
<br>
I’ve followed <a href="https://switch2osm.org/manually-building-a-tile-server-18-04-lts/" rel="noreferrer" target="_blank">https://switch2osm.org/manually-building-a-tile-server-18-04-lts/</a> to produce a map DB.<br>
<br>
Map image script:<br>
cat create_taginfo_map.py<br>
import mapnik<br>
<br>
m=mapnik.Map(330,345)<br>
mapnik.load_map(m, 'openstreetmap-carto/taginfo_outline.xml')<br>
<br>
bbox = mapnik.Box2d(-9,49.8,2.5,60.8)<br>
m.zoom_to_box(bbox)<br>
<br>
im = mapnik.Image(330,345)<br>
mapnik.render(m,im)<br>
im.save('gb_map.png', 'png256’)<br>
<br>
The highway map is a good example showing the issue:<br>
<a href="https://taginfo.openstreetmap.org.uk/keys/highway#map" rel="noreferrer" target="_blank">https://taginfo.openstreetmap.org.uk/keys/highway#map</a> <br>
<br>
head openstreetmap-carto/taginfo_outline.xml<br>
<?xml version="1.0" encoding="utf-8"?><br>
<!DOCTYPE Map[]><br>
<Map background-color="#f2efe9" buffer-size="0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"><br>
 <Parameters><br>
   <Parameter name="scale">1</Parameter><br>
   <Parameter name="metatile">2</Parameter><br>
   <Parameter name="name"><![CDATA[OpenStreetMap Carto]]></Parameter><br>
   <Parameter name="description"><![CDATA[A general-purpose OpenStreetMap mapnik style, in CartoCSS]]></Parameter><br>
   <Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter><br>
   <Parameter name="center">0,0,4</Parameter><br>
<br>
<br>
Taginfo config segment:<br>
   // For the geodistribution map. See the wiki documentation about these settings.<br>
   "geodistribution": {<br>
       "left": -9,<br>
       "bottom": 49.8,<br>
       "right": 2.5,<br>
       "top": 60.8,<br>
       "width": 345,<br>
       "height": 330,<br>
       "scale_image": 1,<br>
       "scale_compare_image" : 1,<br>
       //"background_image": "/img/mapbg/world.png",<br>
       "background_image": "/img/mapbg/gb_map.png",<br>
       // optional attribution for base image, will show up below all maps<br>
       "image_attribution": ""<br>
   },<br>
<br>
I can’t quite figure out what I’m doing wrong to get the maps to line up correctly while following the instructions on the wiki. I’m so close now. Would anyone be able to provide some pointers on how to fix?<br>
<br>
Shaun<br>
<br>
<br>
_______________________________________________<br>
Taginfo-dev mailing list<br>
<a href="mailto:Taginfo-dev@openstreetmap.org" target="_blank">Taginfo-dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/taginfo-dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/taginfo-dev</a><br>
</blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>