Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for CYGWIN which resolves undefined references #9

Closed
wants to merge 491 commits into from
Closed

Fix for CYGWIN which resolves undefined references #9

wants to merge 491 commits into from

Conversation

onepremise
Copy link
Contributor

If building under cygwin, you'll encounter the following undefined references:

build_geometry.o: In function coords2nodes': /cygdrive/c/development/bamboo/bamboo-home/xml-data/build-dir/OSM-OSM2PSQL-JOB1/build_geometry.cpp:220: undefined reference togeos::geom::Coordinate::Coordinate(double, double, double)'
/cygdrive/c/development/bamboo/bamboo-home/xml-data/build-dir/OSM-OSM2PSQL-JOB1/build_geometry.cpp:220: undefined reference to geos::geom::Coordinate::~Coordinate()' /cygdrive/c/development/bamboo/bamboo-home/xml-data/build-dir/OSM-OSM2PSQL-JOB1/build_geometry.cpp:220: undefined reference togeos::geom::Coordinate::~Coordinate()'

This update resolves those issues.

jonb and others added 30 commits December 19, 2009 16:21
…extra-attributes option is off by default

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

tags (eg. missing building=yes) still show up in the polygon table.


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@19398 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
…r were unable to parse any valid columns

git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@19974 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
Tweaks to how house numbers are pressented.
Fix json output (incorrect address details)


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@20035 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
At least in theory this will allow for 3-column output tables now.

Tested with the following environment:

* non slim mode
* hstore-new (http://pgfoundry.org/projects/hstore-new/
* PgSQL 8.4/PostGIS 1.4




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@20475 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
where no additional tag columns should be added.

For this reason we introduce a new flag called phstore which will
do the same as the polygon flag but without adding a column for the
tag specified in the stylefile.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@20565 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
the reason is, that hstore rows can get really long,

thus dynamic allocation prevents them to get cut and (hopefully)
also prevents likely buffer overflows as well.



git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@20775 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
as 3GB of virtual address space. This is due to 3GB/1GB split on
32bit linux machines. No matter how much physical RAM you have,
you end up on 3GB limit.

This is quite low limit when importing anything big as country
OSM file or the whole planet OSM. If we know this, we should
warn user in syntax help, during runtime and even when we start
throwing std::bad_alloc during conversion.


git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@20823 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
apmon and others added 23 commits September 24, 2012 04:17
…ays 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
…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
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
…cceed

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
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
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
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
This is a patch by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28878 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
This is a patch by Darafei Praliaskouski




git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28879 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
…pported 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
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
…SO 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
@springmeyer
Copy link
Contributor

please rebase or re-issue a pull request as per #11 (comment)

@springmeyer
Copy link
Contributor

could you re-create this pull? Also, would be good to know why you think this fix is needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants