<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Imre,<div class=""><br class=""></div><div class="">Thank you, these figures have done the trick.</div><div class=""><br class=""></div><div class="">The coordinates are in a different order to which Taginfo uses, however swapping the middle 2 numbers produces a good map.</div><div class=""><br class=""></div><div class="">Shaun<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 20 Apr 2019, at 17:04, Imre Samu <<a href="mailto:pella.samu@gmail.com" class="">pella.samu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi Shaun,<div class=""><br class=""></div><div class="">sorry, now I can't debug your values - but as I remember it is not easy. </div><div class=""><br class=""></div><div class=""><div class="">I am calculating with this ugly SQL function - for every country.</div><div class="">* <a href="https://github.com/taginfo/dockerized-taginfo/blob/master/setup/setup_xtaginfo_admin.sql#L42" class="">https://github.com/taginfo/dockerized-taginfo/blob/master/setup/setup_xtaginfo_admin.sql#L42</a></div></div><div class=""><div class=""><br class=""></div></div><div class="">and my result for GB  - this.</div><div class=""><a href="https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json" class="">https://github.com/ImreSamu/dockerized-taginfo/blob/sotm2018/service/eu/gb/taginfo-config.json</a>   - but this is smaller than yours<br class=""></div><div class="">( ~ 2-3 day online: <a href="http://207.180.196.156:20142/keys/highway#map" class="">http://207.180.196.156:20142/keys/highway#map</a> )</div><div class=""> included : <a href="https://en.wikipedia.org/wiki/Rockall" class="">https://en.wikipedia.org/wiki/Rockall</a> - so it is strange .. </div><div class=""><br class=""></div><div class="">-------</div><div class=""><div class="">and calling with your coordinate - my result.<br class=""></div><div class=""><font face="monospace, monospace" class="">===============</font></div><div class=""><font face="monospace, monospace" class="">osm=# select get_xtaginfo('gb', -12.35,2.98, 49.47, 61.2) ;</font></div><div class=""><font face="monospace, monospace" class="">NOTICE:  OK   R# = gb, 18 , 279.000 , 216.000 ,0.170 ,0.270</font></div><div class=""><font face="monospace, monospace" class="">            get_xtaginfo             </font></div><div class=""><font face="monospace, monospace" class="">-------------------------------------</font></div><div class=""><font face="monospace, monospace" class=""> {279,216,-12.35,3.150,49.47,61.470}</font></div><div class=""><font face="monospace, monospace" class="">(1 row)</font></div><div class=""><font face="monospace, monospace" class="">==============</font></div><div class="">so the geneated image:  279 x 216  pixel     <br class=""></div><div class="">and the coordinates=  -12.35,3.150,49.47,61.470<br class=""></div></div><div class="">but  I can't test ..</div><div class=""><br class=""></div><div class="">Imre</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Shaun McDonald <<a href="mailto:shaun@shaunmcdonald.me.uk" class="">shaun@shaunmcdonald.me.uk</a>> ezt írta (időpont: 2019. ápr. 20., Szo, 11:20):<br class=""></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 class="">
<br class="">
<br class="">
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 class="">
<br class="">
<a href="https://wiki.openstreetmap.org/wiki/Taginfo/Installation#Adapting_the_map_view" rel="noreferrer" target="_blank" class="">https://wiki.openstreetmap.org/wiki/Taginfo/Installation#Adapting_the_map_view</a><br class="">
<br class="">
My working is in <a href="https://docs.google.com/spreadsheets/d/1rnO5jqZAirsFankimavetobulNE2f5MJi4Z0PA8h0Dc/edit?usp=sharing" rel="noreferrer" target="_blank" class="">https://docs.google.com/spreadsheets/d/1rnO5jqZAirsFankimavetobulNE2f5MJi4Z0PA8h0Dc/edit?usp=sharing</a><br class="">
<br class="">
I’ve followed <a href="https://switch2osm.org/manually-building-a-tile-server-18-04-lts/" rel="noreferrer" target="_blank" class="">https://switch2osm.org/manually-building-a-tile-server-18-04-lts/</a> to produce a map DB.<br class="">
<br class="">
Map image script:<br class="">
cat create_taginfo_map.py<br class="">
import mapnik<br class="">
<br class="">
m=mapnik.Map(330,345)<br class="">
mapnik.load_map(m, 'openstreetmap-carto/taginfo_outline.xml')<br class="">
<br class="">
bbox = mapnik.Box2d(-9,49.8,2.5,60.8)<br class="">
m.zoom_to_box(bbox)<br class="">
<br class="">
im = mapnik.Image(330,345)<br class="">
mapnik.render(m,im)<br class="">
im.save('gb_map.png', 'png256’)<br class="">
<br class="">
The highway map is a good example showing the issue:<br class="">
<a href="https://taginfo.openstreetmap.org.uk/keys/highway#map" rel="noreferrer" target="_blank" class="">https://taginfo.openstreetmap.org.uk/keys/highway#map</a> <br class="">
<br class="">
head openstreetmap-carto/taginfo_outline.xml<br class="">
<?xml version="1.0" encoding="utf-8"?><br class="">
<!DOCTYPE Map[]><br class="">
<Map background-color="#f2efe9" buffer-size="0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"><br class="">
 <Parameters><br class="">
   <Parameter name="scale">1</Parameter><br class="">
   <Parameter name="metatile">2</Parameter><br class="">
   <Parameter name="name"><![CDATA[OpenStreetMap Carto]]></Parameter><br class="">
   <Parameter name="description"><![CDATA[A general-purpose OpenStreetMap mapnik style, in CartoCSS]]></Parameter><br class="">
   <Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter><br class="">
   <Parameter name="center">0,0,4</Parameter><br class="">
<br class="">
<br class="">
Taginfo config segment:<br class="">
   // For the geodistribution map. See the wiki documentation about these settings.<br class="">
   "geodistribution": {<br class="">
       "left": -9,<br class="">
       "bottom": 49.8,<br class="">
       "right": 2.5,<br class="">
       "top": 60.8,<br class="">
       "width": 345,<br class="">
       "height": 330,<br class="">
       "scale_image": 1,<br class="">
       "scale_compare_image" : 1,<br class="">
       //"background_image": "/img/mapbg/world.png",<br class="">
       "background_image": "/img/mapbg/gb_map.png",<br class="">
       // optional attribution for base image, will show up below all maps<br class="">
       "image_attribution": ""<br class="">
   },<br class="">
<br class="">
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 class="">
<br class="">
Shaun<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
Taginfo-dev mailing list<br class="">
<a href="mailto:Taginfo-dev@openstreetmap.org" target="_blank" class="">Taginfo-dev@openstreetmap.org</a><br class="">
<a href="https://lists.openstreetmap.org/listinfo/taginfo-dev" rel="noreferrer" target="_blank" class="">https://lists.openstreetmap.org/listinfo/taginfo-dev</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>