[Tile-serving] [osm2pgsql] Providing Windows binaries/packages (#17)
klonuo
notifications at github.com
Tue Aug 12 12:33:42 UTC 2014
@alex85k I redo the test with you suggested edit - instead temp folder use current one and then I added some settings to make cygwin version work with the test suite:
``` diff
--- a
+++ b
@@ -6,10 +6,11 @@
# from pwd import getpwnam
import subprocess
-tmp_table = os.path.join(os.environ['temp'], 'psql-tablespace')
+tmp_table = os.path.join(os.getcwd(), 'psql-tablespace')
usr, pwd = 'postgres', 'MY_PASSWORD'
-credentials = ['--username', usr]
+os.environ['PGPASS'] = pwd
+credentials = ['--username', usr, '--host', 'localhost']
conn_str = "user={} password={} ".format(usr, pwd)
full_import_file="liechtenstein-2013-08-03.osm.pbf"
```
I did not understood what to do about proj.4, so now I get these results:
1. [test_log1.txt](https://gist.github.com/klonuo/a0c2680cfca7a67c28de) (your binary)
2. [test_log2.txt](https://gist.github.com/klonuo/91dd7ceb23028eb295ea) (cygwin binary)
Cygwin version fails on same tests and then some more, and it took 3x longer time to finish.
About the failures of type `... expected 24751 but was 24750.0 ...`. This may be problem in the test itself, as expected value is integer while compared value is float. It looks like rounding error but perhaps test author can comment why it fails here. This doesn't look like it can be Windows specific.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/17#issuecomment-51907493
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140812/b6b9b061/attachment.html>
More information about the Tile-serving
mailing list