Re: [OSM-dev] Experimental regional taginfo sites

2020-01-05 Thread Martijn van Exel
Very cool, thank you.
I’ll show this at our next map night in Salt Lake City. People will be excited.
Martijn

> On Jan 5, 2020, at 1:34 PM, Frederik Ramm  wrote:
> 
> Martijn,
> 
> On 05.01.20 21:17, Martijn van Exel wrote:
>> Am I misinterpreting your instructions or did you not add these regions?
> 
> The US has always been a special case on the download server, where
> because of its size there never was an extract for the country, just for
> the continent (North America) and then the census regions and individual
> US states. This leads to endless special-casing server-side, and I
> forgot that here, hence the bug. Fixed now:
> https://taginfo.geofabrik.de/north-america/us/utah
> 
> Bye
> Frederik
> 
> PS: Maybe some day I'll do a proper US extract and then the US will be a
> normal country like all the others ;)
> 
> -- 
> Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"


___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Experimental regional taginfo sites

2020-01-05 Thread Frederik Ramm
Martijn,

On 05.01.20 21:17, Martijn van Exel wrote:
> Am I misinterpreting your instructions or did you not add these regions?

The US has always been a special case on the download server, where
because of its size there never was an extract for the country, just for
the continent (North America) and then the census regions and individual
US states. This leads to endless special-casing server-side, and I
forgot that here, hence the bug. Fixed now:
https://taginfo.geofabrik.de/north-america/us/utah

Bye
Frederik

PS: Maybe some day I'll do a proper US extract and then the US will be a
normal country like all the others ;)

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Experimental regional taginfo sites

2020-01-05 Thread Martijn van Exel
Hi Frederik,
This is a nice idea and I’m eager to see taginfo for U.S. states.
The download server has my home state as 
https://download.geofabrik.de/north-america/us/utah.html 

But https://taginfo.geofabrik.de/north-america/us/utah 
 which would be the 
corresponding TagInfo link does not give the expected result.
Am I misinterpreting your instructions or did you not add these regions?
Thanks,
Martijn

> On Jan 5, 2020, at 8:44 AM, Frederik Ramm  wrote:
> 
> Happy new year!
> 
> Following in Imre Samu's
> (https://github.com/ImreSamu/dockerized-taginfo) footsteps, I have used
> the past holiday season to set up a taginfo server that is supposed to
> serve daily updated taginfo data for all regional extracts routinely
> offered on the Geofabrik download server.
> 
> It's still being tinkered with hence I'm not announcing it widely - I'd
> hope that a few of you here might want to give it a spin and tell me how
> it is working for them before it is properly "launched".
> 
> The site is https://taginfo.geofabrik.de/ and you have to append the
> path of the region you're interested in as known from the download
> server, e.g. https://taginfo.geofabrik.de/europe/germany/berlin/ or
> something.
> 
> If you do anything fancy with the URL e.g. leave off the trailing slash
> or add one where it doesn't belong, you'll get an internal server error
> ;) The same is true for situations in which I should accidentally have
> neglected to fix a hyperlink and it still points to /something instead
> of /continent/country/something.
> 
> The map images are auto-generated from the data extent and will probably
> require some tweaking in some cases, e.g. the Australia-Oceania image
> essentially spans the globe.
> 
> The way this works internally is that it simply runs Jochen's taginfo
> data analysis on every extract, separately, and then uses a slightly
> modified web application that is capable of handling multiple databases
> at the same time. For the non-extract-specific sources like the wiki
> extract, a shared copy is used by all regions. The regional databases
> are downloadable (e.g.
> http://taginfo.geofabrik.de/europe/germany/berlin/download/taginfo-db.db.gz),
> but in contrast to Jochen's global taginfo site, these downloads are
> compressed on demand, and you can easily overload the server by trying
> to download all databases. If you want all regional databases, talk to
> me and we'll set something up.
> 
> This is still missing a couple features, most of all some form of
> navigation between regions (currently only by manual URL manipulation).
> It also has a few issues that Imre has already encountered and fixed in
> his approach, most notably the fact that the Geofabrik extracts are not
> very precise, leading to strange artifacts like a
> "source=cadastre-dgi-fr" being prominent in Luxembourg and so on.
> 
> Most of the changes I have made to the taginfo web site are on
> https://github.com/geofabrik/taginfo/tree/multi-config, some bits and
> pieces are still missing but will ultimately all end up there.
> 
> Let me hear of the problems you encounter so I can fix them before
> announcing this further!
> 
> Bye
> Frederik
> 
> -- 
> Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"
> 
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Experimental regional taginfo sites

2020-01-05 Thread Tobias Knerr
Frederik, this is great work and will be a very useful tool for the
community. It works nearly flawlessly for me, too, so all I can do is
nitpick about minor UI details:

- The overpass turbo links for uncommon keys or tags come with a global
bounding box. I believe there's a "wizard_area" property in each Taginfo
configuration that can affect this?
- Likewise, the opensearch shortname and contact config properties still
use the default values (e.g. "Taginfo Test Instance"). It would be
especially convenient to show a name that reflects the particular
region, as you already do for the overall page title.

But frankly, it's already amazing as is!

Tobias

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Experimental regional taginfo sites

2020-01-05 Thread Pierre Béland via dev
Great Frederik
Testing for Democratic Republic of Congo. this is working well with 
https://taginfo.geofabrik.de/africa/congo-democratic-republic
as well as for

north-americanorth-america/canadanorth-america/canada/quebec

+ French version using my navigator preferences

happy new year to you
 
Pierre 
 

Le dimanche 5 janvier 2020 10 h 48 min 31 s UTC−5, Frederik Ramm 
 a écrit :  
 
 Happy new year!

Following in Imre Samu's
(https://github.com/ImreSamu/dockerized-taginfo) footsteps, I have used
the past holiday season to set up a taginfo server that is supposed to
serve daily updated taginfo data for all regional extracts routinely
offered on the Geofabrik download server.

It's still being tinkered with hence I'm not announcing it widely - I'd
hope that a few of you here might want to give it a spin and tell me how
it is working for them before it is properly "launched".

The site is https://taginfo.geofabrik.de/ and you have to append the
path of the region you're interested in as known from the download
server, e.g. https://taginfo.geofabrik.de/europe/germany/berlin/ or
something.

If you do anything fancy with the URL e.g. leave off the trailing slash
or add one where it doesn't belong, you'll get an internal server error
;) The same is true for situations in which I should accidentally have
neglected to fix a hyperlink and it still points to /something instead
of /continent/country/something.

The map images are auto-generated from the data extent and will probably
require some tweaking in some cases, e.g. the Australia-Oceania image
essentially spans the globe.

The way this works internally is that it simply runs Jochen's taginfo
data analysis on every extract, separately, and then uses a slightly
modified web application that is capable of handling multiple databases
at the same time. For the non-extract-specific sources like the wiki
extract, a shared copy is used by all regions. The regional databases
are downloadable (e.g.
http://taginfo.geofabrik.de/europe/germany/berlin/download/taginfo-db.db.gz),
but in contrast to Jochen's global taginfo site, these downloads are
compressed on demand, and you can easily overload the server by trying
to download all databases. If you want all regional databases, talk to
me and we'll set something up.

This is still missing a couple features, most of all some form of
navigation between regions (currently only by manual URL manipulation).
It also has a few issues that Imre has already encountered and fixed in
his approach, most notably the fact that the Geofabrik extracts are not
very precise, leading to strange artifacts like a
"source=cadastre-dgi-fr" being prominent in Luxembourg and so on.

Most of the changes I have made to the taginfo web site are on
https://github.com/geofabrik/taginfo/tree/multi-config, some bits and
pieces are still missing but will ultimately all end up there.

Let me hear of the problems you encounter so I can fix them before
announcing this further!

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
  ___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev