fails to display OSM data #2576
Comments
Author: Koying
|
Author: landry[at]rhaalovely.net It's with 0.14 from tarball.
of course, the url in a browser works and gets the XML, heck i'm using JOSM without problems since ages.. so far what i've tried :
This doesn't make sense as the download window says that it correctly downloaded 177kb of data. I'll try do add some debug printfs to see what happens.. |
Author: landry[at]rhaalovely.net Okay, think i narrowed it down to gzipDecode : if i add
after QByteArray Uncompressed(gzipDecode(Content)); in Downloader::go(), here's what i get on the stdout :
Seeing that, can't qUncompress() be used here ? http://qt.nokia.com/doc/4.6/qbytearray.html#qUncompress If i trace gzipDecode, it fails at ret = inflateInit2(&strm,15+32); ret is -6, which corresponds to Z_VERSION_ERROR. zlib is 1.2.3 here. Can't do much more with that now.... |
Author: landry[at]rhaalovely.net Ok, good news, got it, and it was nasty :
this check is done :
sizeofs differs... as merkaartor links with our libz, which has a different sizeof for the struct from the one DownloadOSM.cpp includes :
Easy fix :
With that, merkaartor succesfully displays OSM data. |
Author: Koying Applied to SVN and removed embedded zlib |
Reporter: landry[at]rhaalovely.net
[Submitted to the original trac issue database at 5.37am, Thursday, 24th December 2009]
I've ported merkaartor to OpenBSD, it compiles fine with a bunch of patches (attached) to appease G++3, (i use NOUSEWEBKIT=1 as our Qt4.5.3 isn't compiled with Webkit), but it fails to display/render any OSM data. I can view gpx tracks, create roads/nodes, but when i download data from osm i only get a zero-feature layer.
The data seems correctly downloaded, i get this on the output :
then a short 'Parsing XML' window.. but then, the download layer is empty :
How can i help debug that ? Building a DEBUG version, and ??
The text was updated successfully, but these errors were encountered: