Jochen Topf | 6 Feb 18:49 2016

[OSM-dev] New libosmium/pyosmium versions

I recently released version 2.6.0 of libosmium, a C++ library for working with
OSM data and the PyOsmium python bindings for it. Libosmium is a bit faster
again reading OSM data, but the most interesting new feature is improved
support for writing OSM data from C++ and also now from Python.

See and the git repositories at and


Jochen Topf  jochen <at>  +49-351-31778688

dev mailing list
dev <at>
Peter Barth | 4 Feb 11:10 2016

[OSM-dev] Application for Google Summer of Code 2016

Hi all,

in less than a week the time slot for organizations to apply for
this year's Google Summer of Code opens. In my opinion our
participation last year (and the years before) had been a
success. We got a bunch of coding done, we also got new students
that stick with our great project and community and our
organization got some money, too. I also did a survey last year,
asking all mentors what they think about the output of GSoC,
about their students and especially if they think we should
reapply this year: Everyone did think so.

So I'm suggesting to apply again this year and I'm again willing
to do the administrative tasks. As time rushes, I'll wait for
this weekend for any objections.

So, please comment or object or silently agree :)


dev mailing list
dev <at>
mick | 3 Feb 02:11 2016

Re: [OSM-dev] Extracting info from XML open street map file

On Fri, 29 Jan 2016 09:20:30 +0100
Jochen Topf <jochen <at>> wrote:

> On Mi, Jan 27, 2016 at 03:06:25 +0000, mick wrote:
> > On Tue, 26 Jan 2016 15:52:03 +0100
> > Jochen Topf <jochen <at>> wrote:
> >   
> > > On Di, Jan 26, 2016 at 01:10:06 +0000, mick wrote:  
> > > > I've been struggling for a few years, on and off to extract useable subsets
> > > > from open streetmap files with very limited success. osm2pgsql produces the
> > > > best results but depends on knowing all the keys in the input file.    
> > > 
> > > You might be looking for hstore:
> > >
> > > 
> > > Then again, this might not do what you want. Depends on what you mean with
> > > "useable subsets from open streetmap". Maybe you can explain some more about
> > > what you are trying to achieve in the end.
> > > 
> > > Jochen
> > > -- 
> > > Jochen Topf  jochen <at>  +49-351-31778688
> > >   
> > The final result I'm after is a set of themed MapInfo layers (coastline, waterways, roman roads, roman
settlements, etc.). The reason I'm extracting tags is to create a complete list of tags to create a
comprehensive osm2pgsql .style file store the refined data in a postgis database.
> > 
> > Due to limitations in MapInfo a record is limited to 4000 characters and a field to 254 characters. Using
hstore fails due to truncation.  
(Continue reading)

Rajesh Elumalai | 29 Jan 16:38 2016

[OSM-dev] Installing tile server on Ubuntu 14.04


I am trying to set up a tile server based on this instruction.

What should be the user name given in this section below?

sudo -u postgres -i createuser username # answer yes for superuser (although this isn't strictly necessary) createdb -E UTF8 -O username gis exit
I tried giving a new user name other than the terminal user, but getting permission denied error later in the process. Please help. 
dev mailing list
dev <at>
mick | 26 Jan 02:10 2016

[OSM-dev] Extracting info from XML open street map file

I've been struggling for a few years, on and off to extract useable subsets from open streetmap files with
very limited success. osm2pgsql produces the best results but depends on knowing all the keys in the input file.

I have grep'd and sort -u the input to produce a list of unique key/value tags (2.1 million of them). The next
step is to process that list into an osm2psql style file but I can't think how to automate that process.

Generic key/value lines:
		<tag k="107" v="96"/>
		<tag k="1744_field_ref" v="143"/>
		<tag k="1744_field_ref" v="94"/>
		<tag k="1860name" v="Aberargie Mill (Corn &#38; Flour)"/>

osm2pgsql style:
node,way   building     text         polygon
node       capital      text         delete	#linear
node,way   construction text         delete	#linear

I've spent the last 3 days doing it manually but only got about 10% into it and am at the stage where I keep
making mistakes.

Can sks please give me a few pointers on the nifty *nix utilities that can work some magic on this process.

mick in glen innes

dev mailing list
dev <at>
Tomas Straupis | 25 Jan 09:26 2016

[OSM-dev] Reverting changesets


  Three changesets were found to be accidentally deleting quite large
amounts of correct data. I have informed the user and asked him to
wait until revert is completed. Changesets in question are: 36781121,
36781218 and 36781956.

  I'm starting with the last one and intend to revert all three.

  But there I have a problem, JOSM reverter plugin does not work (it
fetches info but does not apply any changes and does not complain
about anything) and there was info on weeklyosm that reverter plugin
is broken at this time.

  I then tried reverter scripts (as per But running:
  ./ 36781956

  fetches objects, identifies correct delete/modify operations to be
done but then fails with:

  PUT changeset//close
Use of uninitialized value $body in concatenation (.) or string at line 227.

  I'm still running in dry mode. I wonder if I could proceed anyway or
should I ask somebody else (DWG?) for help?

  Thank you

P.S. I'm running scripts on fedora 23.



dev mailing list
dev <at>
Wolfram Schneider | 20 Jan 18:54 2016

Re: [OSM-dev] Berlin Hack Weekend in February

On 3 January 2016 at 12:56, Frederik Ramm <frederik <at>> wrote:
> Hi,
>    there will be another OSM hack weekend in Karlsruhe on the 27/28
> February:

btw, there is also a OSM hack weekend in Berlin on the 06/07 February 2016.


> Everyone is welcome.
> Bye
> Frederik

Planet.osm extracts:
BBBike Map Compare:

dev mailing list
dev <at>
Florian Lohoff | 18 Jan 08:11 2016

[OSM-dev] libosmium / spatialindex


I am playing around with QA and for that i am using libosmium to walk
through the pbf files. Simple bugs are easy to do like missing, tags,
tags on wrong objects, broken tag combinations. For node reusage
for areas i used a std::vector<wayid> in a node index which worked

Now i am progressing to more complex checks with spatial relation and
for that i am thinking of writing ways e.g. their geometry and their
tags into a spatial index.

I used libspatialindex for that and wrote myself some code to create a
serialized compressed way (tags/values as variable length integers
and a geos wkb geometry). It works "sort of" but i am dissatisfied by
the code and keep refactoring it over and over which does not make it
more beautiful.

As typically i am not the first to approach stuff like that most likely
somebody else has already done that with libosmium.

So - Does anyone already have a generic Osmium Object Spatial Index
storage at hand that i just overlooked?


Florian Lohoff                                                 f <at>
      We need to self-defend - GnuPG/PGP enable your email today!
dev mailing list
dev <at>
Pichler, Markus | 11 Jan 14:16 2016

[OSM-dev] Usage of the standard dev server

Hello everybody,


I have a question regarding the usage of the dev server reachable under

I wanted to use this server for some JOSM testing and did what was described here:

It says on that page that the dev server is mostly empty, but if you go to the page it shows the entire world, just like the main site. However, if I do a download request in JOSM, it is empty. So my question is: Why is the map not a representation of the database on the dev server, showing basically nothing except in those places where somebody uploaded something for test purposes? Or am I missing something here?



dev mailing list
dev <at>
Even Rouault | 10 Jan 14:29 2016

[OSM-dev] osmformat.proto vs wiki: inconsistencies on Node field ids


I've noticed an inconsistency in the ids of the fields of the Node
message between and

The wiki mentions :

message Node {
   required sint64 id = 1;
   required sint64 lat = 7;
   required sint64 lon = 8;
   repeated uint32 keys = 9 [packed = true]; // Denote strings 
   repeated uint32 vals = 10 [packed = true];// Denote strings
   optional Info info = 11; // Contains metadata

And the .proto :

message Node {
required sint64 id = 1;
// Parallel arrays.
repeated uint32 keys = 2 [packed = true]; // String IDs.
repeated uint32 vals = 3 [packed = true]; // String IDs.
optional Info info = 4; // May be omitted in omitmeta
required sint64 lat = 8;
required sint64 lon = 9;

Except "id", all other fields ids are different.

I assume the .proto is up-to-date. Has there been a change at some point ?




Spatialys - Geospatial professional services

dev mailing list
dev <at>
Oleksiy Muzalyev | 8 Jan 10:30 2016

[OSM-dev] JOSM 9329, - Change default color of GPS tracks to magenta (r9248)

I like this change a lot. Now GPS tracks are clearly visible on the 
satellite image. I look at GPS tracks carefully in JOSM before going to 

A GPS track in mountains means that someone actually walked a route, and 
if there are three or four GPS tracks means that it is a well-frequented 

For example, there are quite a few GPS tracks visible in JOSM between 
Plambuit train station and Salin [1]. This is a safe path [2] with 
amenities for tourists. Another one, closer to the ravine of the Grande 
Eau river, where there is only one GPS track, has got a risk of rockfalls.

Sometimes a path is not mapped at all, but there are still GPS tracks.

I wish it could be possible to view GPS tracks in magenta color as a map 
layer at the main OSM page, and also in mobile applications, especially 
like MAPS.ME, which allow to download a map (often no Internet access in 
mountains). It would be a potentially life-saving feature.



dev mailing list
dev <at>