gazetteer: add aerialway (closes #4499), 
 move place to extratags only when boudary tag is there (fixes #4558),
 move name:prefix to extratags


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28746 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Implement a ways_get_list function to retrieve multiple ways at once. 
 
For the postgresql back-end this issues all way requests of a relation 
in a single sql call and then matches the result back to the list of 
ways in osm2pgsql. 
 
This saves round trip time / context switches to postgresql and potentially 
allows postgresql to be more efficient in retrieving the data. 
 
On tests with small extracts, this nearly doubled performance of the 
relation processing stage and showed increases of up to 25% for the complete 
import. On larger imports this speedup is likely smaller, but hopefully 
still noticeable. 
 
This function currently does not yet combine loading of nodes from 
multiple ways in ways_get_list, which might in future provide additional 
speed up.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28747 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
gazetteer: ignore buildings without name or address


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28748 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
use way_get_list function in gazetteer


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28761 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
+ add office=*


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28788 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Change the default node ram cache allocation strategy on 32bit platforms to sparse

Chunked and optimized both cause problems on platforms with limited virtual memory (i.e. 32bit platforms),
so change the default to sparse, which doesn't have as much virtual memory overhead for accounting and indexing.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28789 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Move code back to using ANSI C standard

In an attempt to get osm2pgsql compiled for windows, move
back to using ANSI C standard, as msvc doesn't support C99.

Also clean up some compiler warnings.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28862 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Fix bug #4651 - Failed fall back for when fork doesn't succeed

In multi-process mode, if the fork did not succeed "Iterate over pending ways"
and "Iterate over pending relations" produced the wrong data, as the fall back
mechanism didn't correctly work.

The information of the reduced number of successful helper processes was only
conveyed to the first process, and therefore all other helper processes used
the wrong stride length to go through the pending ways/relations array. Therefore
many ways/relations were not correctly processed.

Using a mmaped structure, make sure all helper processes know how many processes
correctly started for processing.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28864 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Fix Bug #3607 - Function index is not available in MinGW

The function index() is deprecated in the posix standard and superseded
by the strchr function. As index is not available in MinGW, replace
it with strchr to make osm2pgsql compile.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28865 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Fix bug 4625 - bbox parameter not working with pbf files



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28868 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Add o5m support to osm2pgsql

This is a patch provided by http://wiki.openstreetmap.org/wiki/Osm2pgsql/o5m
and improved by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28876 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] zero buffering invalid geometries

This is a set of commits by Darafei Praliaskouski with some own changes

Unless the --exclude-invalid-polygon flag is given, all invalid geometries
are fixed using the buffer(0) method



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28877 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql]  -x doesn't clutter hstore database too much anymore

This is a patch by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28878 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] - -x support for pbf - fixed names of attributes

This is a patch by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28879 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] faster relation processing due to early discard of non-supported ones

This is a patch by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28880 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
fix compile of middle-pgsql if HAVE_MMAP is not defined

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28907 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
comparison between pointer and zero is not portable + avoids pedantic warning with clang++

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28908 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Merge branch 'master' into run-quietly