Re: [OSM-dev] Is YOUR code 64 bit proof?

2013-01-02 Thread Peter Körner
Am 30.12.2012 21:26, schrieb Andrew: Could you store node numbers as strings? You could do so and use bcmath for all your calculations, but depending on the size of the region you're working with it would take a whole lot of time and memory to do so. Peter

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-30 Thread Even Rouault
Hi, The OGR OSM driver was mostly ready for 64bit ids, but as this was not triggered before your test files, there were a few issues that are now corrected. So GDAL/OGR 1.10 will be ready. Thanks for having provided those files. Even ___ dev

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-30 Thread David Earl
On Thu Dec 27 13:55:31 GMT 2012 Frederik Ramm wrote another 62 million nodes and we'll have IDs of more than 2^31-1 which means than software using a simple, 32-bit, signed integer will not be able to process the data any longer. If you're using PHP, you have to use 64-bit hardware to get

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-30 Thread Andrew
David Earl david at frankieandshadow.com writes: On Thu Dec 27 13:55:31 GMT 2012 Frederik Ramm wrote another 62 million nodes and we'll have IDs of more than 2^31-1 which means than software using a simple, 32-bit, signed integer will not be able to process the data any longer.

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-30 Thread Frederik Ramm
Hi, On 27.12.2012 14:55, Frederik Ramm wrote: I've commited to SVN a couple of files with large node IDs so that you can quickly check your own programs or those you're using: If someone looked at the .osc files that I provided and was puzzled - they were broken (and are fixed now). In

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-29 Thread Dane Springmeyer
Thanks Frederik, Mapnik 2.2.x will have full support for 64bit integers across the codebase: https://github.com/mapnik/mapnik/issues/1662 https://github.com/mapnik/mapnik/pull/1661 Dane On Dec 27, 2012, at 5:55 AM, Frederik Ramm wrote: Hi, another 62 million nodes and we'll have IDs of

[OSM-dev] Is YOUR code 64 bit proof?

2012-12-27 Thread Frederik Ramm
Hi, another 62 million nodes and we'll have IDs of more than 2^31-1 which means than software using a simple, 32-bit, signed integer will not be able to process the data any longer. If you're using C or similar compiled languages and have used as simple int for your IDs, it is likely

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-27 Thread Peter Körner
Hi mine is (although not yet in the master branch): https://github.com/MaZderMind/osm-history-splitter/compare/64bit https://github.com/MaZderMind/osm-history-renderer/compare/64bit I have a pull request for osmium pending which is required for these branches to be merged into master:

Re: [OSM-dev] Is YOUR code 64 bit proof?

2012-12-27 Thread Michael Bemmerl
Frederik Ramm schrieb: another 62 million nodes and we'll have IDs of more than 2^31-1 which means than software using a simple, 32-bit, signed integer will not be able to process the data any longer. This will be around the beginning of February 2013, so we'll have one more month to fix