+public_transport


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28948 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Try and enable large file support on more systems

A number of files used in osm2pgsql can be bigger than 4Gb so we need
large file support such that off_t is 64bit. Try and use a more portable
version to enable large file support through compiler preprocessor directives




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28956 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] More cleanup work to support compiler flags -ansi -pedantic


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28957 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
lseek uses 64 bit offsets on os x

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28958 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
follow to r28957 - handle -Wdeclaration-after-statement warnings as ISO C90 forbids mixing declarations and code - another step toward supporting -ansi -pedantic

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28959 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
revert unintended changes from r28959

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28960 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Configure check for fork and only provice --number-processes if available

Windows doesn't have fork, so when compiling with MinGW ifdef those sections



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29052 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Make sure that number of decimal places is the same for nodes in planet_osm_point and for lines and polygons constructed via the node cache. 
If this is not the case spatial relationship functions will not work.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29057 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] fix minor memory leak in primitive parser not closing file

Fixes coverity scan issue #745718



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29064 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Null-terminate string before passing it into strchr

Fix coverity scan issue #745723



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29065 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Fix memory leak on error path

fixes coverity scan issue #745715



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29066 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Free memory on error path

fix coverity scan issue #745714



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29067 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Unclean use of sizeof

Fixes coverity scan issue #745698



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29071 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] order of memset arguments was mixed up

Fixes coverity scan issue #745709



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29072 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] fix memory leak in node-persistent-cache-reader

Fixes coverity scan issues #745716 and #745717



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29073 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Check return values of file operations in node-persistent cache

Fixes a number of coverity scan issues.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29077 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] wrong use of sizeof in node-ram-cache

Fix coverity scan issue #745722



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29078 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Wrong use of sizeof in input.c

Fix coverity scan issue #745719



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29079 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
[osm2pgsql] Wrong sizeof argument in middle-pgsql.c

Fixes coverity scan issues #745720 and #745721



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29080 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Discard created_by and source tags in PBF reader to match parse-xml2.

This fixes one scenario where relations with created_by tags are sometimes handled differently between PBF and BZ2 imports.


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@29087 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4