--- Log opened Thu Feb 09 00:00:46 2017 00:09 #navit: < jkoan_> @kazer @pmckinley I think I also have the second output generally 00:50 #navit: < jkoan_> @kazer thx for +1 :D Jay, bouncers have definitely there pros. Even if you remember the days before I set up the bouncer --> mobile data connection often is not really stady 02:14 -!- jjelen [jjelen@nat/redhat/x-nfrpwnuimuwaywdl] has joined #navit 02:16 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has joined #navit 03:00 -!- pmckinley [~peter@88-110-197-119.dynamic.dsl.as9105.com] has joined #navit 03:17 #navit: < pmckinley> morning 03:18 #navit: < pmckinley> < jkoan_> @kazer @pmckinley I think I also have the second output generally 03:19 #navit: < pmckinley> hi jkoan, not sure what you mean by this 04:18 #navit: < pmckinley> :-/ 04:32 -!- pmckinley [~peter@88-110-197-119.dynamic.dsl.as9105.com] has quit [Ping timeout: 255 seconds] 04:36 -!- pmckinley [~peter@88-110-197-119.dynamic.dsl.as9105.com] has joined #navit 04:42 #navit: < pmckinley> back in the room 06:19 -!- dega [97456b69@gateway/web/freenode/ip.151.69.107.105] has joined #navit 06:19 -!- dega [97456b69@gateway/web/freenode/ip.151.69.107.105] has quit [Client Quit] 06:31 -!- wosa [6d2b00d5@gateway/web/freenode/ip.109.43.0.213] has joined #navit 06:35 -!- wosa [6d2b00d5@gateway/web/freenode/ip.109.43.0.213] has quit [Ping timeout: 260 seconds] 08:36 #navit: < pmckinley> CQDX 09:17 #navit: < pmckinley> is this working? 09:32 #navit: < jkoan_> i mean you pastebin about shapefiles form 20:51 yesterday 09:39 #navit: < pmckinley> Ahh you mean you have the same result, got it 09:39 #navit: < pmckinley> Hopefully kazer will come up with something 09:43 #navit: < pmckinley> Any idea what might be wrong? 10:04 #navit: < jkoan_> no i havent but this line seems interesting, but because i cont programm c right now i dont know what happens here: https://github.com/navit-gps/navit/blob/trunk/navit/map/shapefile/shapefile.c#L656 10:21 #navit: < pmckinley> Thanks jkoan 10:22 #navit: < pmckinley> I noticed there was a shapefile.c component in the Navit installation folder 10:23 #navit: < jkoan_> what do you mean by "install folder"? 10:26 #navit: < pmckinley> Navit-0.5.0 folder 11:20 -!- jjelen [jjelen@nat/redhat/x-nfrpwnuimuwaywdl] has quit [Ping timeout: 245 seconds] 12:31 -!- jandegr [5bb6166c@gateway/web/freenode/ip.91.182.22.108] has joined #navit 13:10 #navit: < kazer> hi there 13:10 #navit: < jkoan_> hi kazer 13:15 #navit: < jkoan_> kazer do you like crazy ideas which are not relevant at moment but maybe in future? ;) 13:17 #navit: < kazer> haha yeah sure 13:17 #navit: < jkoan_> do you know android wear? 13:18 #navit: < kazer> yep 13:18 #navit: < kazer> jandegr is our android expert btw :) 13:19 #navit: < kazer> pmckinley: interested, you segfault is slightly different than mine. It means that we don't face the exact same issue 13:19 #navit: < jkoan_> what do you think about navit on android wear? :D wear also hase an api for gps ;) But i dont know what changed with wear 2.0 13:19 #navit: < kazer> pmckinley: could you share your shapefile map? 13:21 #navit: < jkoan_> kazer do you take research with gdb on shapefiles? 13:21 #navit: < kazer> what do you mean jkoan_ ? 13:22 #navit: < jkoan_> dir you made research about shapefile with gdb. so why it is failing? 13:22 #navit: < jkoan_> *did 13:25 #navit: < jkoan_> kazer could cou explain me the line: https://github.com/navit-gps/navit/blob/trunk/navit/map/shapefile/shapefile.c#L656 13:28 #navit: < jkoan_> is this *meth asigned to map_methods_shapefile or the other direction? 13:28 #navit: < jkoan_> i ask because i never seen an * at first letter in a line 13:34 #navit: < kazer> are you familiar with pointers? 13:34 #navit: < jkoan_> a little bit 13:34 #navit: < kazer> ok. in short it's a pointer assignation 13:35 #navit: < jkoan_> okay, i will try to update the shapelib ;) 13:35 #navit: < jkoan_> https://github.com/manisandro/shapelib 13:41 #navit: < kazer> mmm, our implementation does not seem to rely on an external lib 13:42 #navit: < jkoan_> /navit/support 13:42 #navit: < jkoan_> than shapefile 13:43 #navit: < kazer> ah, good catch :D 13:43 #navit: < kazer> i was reading through the CMakefile but that explains why we don't need an external lib 13:44 #navit: < jkoan_> are you "good" at c/c++? 13:44 #navit: < kazer> i wouldn't call myself good.. but i'm working on it 13:45 #navit: < jkoan_> cpuld you take a look at /navit/navit/support/shapefile/dbfopen.c:1134 13:46 #navit: < kazer> return( psDBF->nFields ); ? 13:46 #navit: < jkoan_> #5 DBFGetFieldCount (psDBF=0x0) at /home/jan/navit/navit/support/shapefile/dbfopen.c:1134 13:46 #navit: < jkoan_> this caused the problem 13:46 #navit: < kazer> a segfault here would indicate that psDBF might not be correctly initialized 13:47 #navit: < kazer> so we have to back up and check it 13:47 #navit: < jkoan_> is this our problem or the problem from the lib? 13:47 #navit: < kazer> it looks like the library expects us to pass a valid DBFHabdle psDBF 13:48 #navit: < kazer> so we need to check the call for that function 13:48 -!- noradtux [~noradtux@2a02:2028:817:3100::1] has quit [Ping timeout: 258 seconds] 13:48 #navit: < jkoan_> but the i wonder why this has worked in the last yeares 13:49 #navit: < jkoan_> ore at least the time it was programmed 13:49 #navit: < kazer> yep.. but it was almost 10 years ago :) 13:49 #navit: < kazer> https://github.com/navit-gps/navit/blob/trunk/navit/map/shapefile/shapefile.c#L666 13:49 #navit: < kazer> so we would need to add a check after line 665 to ensure that m->hDBF is valid 13:50 #navit: < kazer> then maybe dig into DBFOpen (which is where it's crashing for me i believe) 13:51 #navit: < kazer> oh no i do have the same crash actually 13:51 #navit: < jkoan_> could you give it a try today? :D 13:51 #navit: < kazer> i'll try to give it a try :) 13:51 #navit: < jkoan_> thx 13:52 #navit: < jkoan_> i forgot the users name who needs it but probably we are on the right way :D 13:53 #navit: < kazer> it's for pmckinley :) 13:54 -!- noradtux [~noradtux@port-19283.pppoe.wtnet.de] has joined #navit 13:59 #navit: < kazer> so before using cmake we were using the system libshp, then falling back to the including one in case of problems : https://github.com/navit-gps/navit/commit/0121e6fecb7dd3d2257ded6f990089e93ba1dd3e 13:59 #navit: < kazer> not sure that this behavior has been correctly ported to cmake 14:00 #navit: < jkoan_> verry interesting 14:08 #navit: < kazer> that part confuses me : https://github.com/navit-gps/navit/blob/trunk/navit/map/shapefile/shapefile.c#L507 14:08 #navit: < jkoan_> i dont know what the function is dooing, but the extension is confuseing 14:09 #navit: < jkoan_> *confusing 14:09 #navit: < jkoan_> my thest wit the 2016 version of shapefile lib shows that the problem happens also with this version 14:10 #navit: < kazer> yeah i'm not really surprised 14:10 #navit: < jkoan_> actually this the lib that was removed with the cmake thin you said 14:10 #navit: < jkoan_> http://shapelib.maptools.org/ 14:11 #navit: < jkoan_> but as the libs website shows the files are shp shx dbf 14:14 #navit: < jkoan_> what did you said about zip files with shapefile (some days ago)? 14:16 #navit: < kazer> geofabrik provides shapefiles in a zip archive, with multiple groups (railways, buildings) and multiple files ( shp, shx, dbf) 14:17 #navit: < jkoan_> but you also thin that we need to unzip it? 14:20 #navit: < kazer> oh, i managed to avoid the segfault! 14:23 #navit: < jkoan_> got it working? 14:27 #navit: < jkoan_> i think we also have another problem with the naming (probably) 14:28 #navit: < jkoan_> the libary searches for: 14:28 #navit: < jkoan_> /home/jan/navit2/navit/maps/shapefiles/gis.osm_roads_free_1.cpg.shp 14:28 #navit: < jkoan_> naming is: 14:28 #navit: < jkoan_> /home/jan/navit2/navit/maps/shapefiles/gis.osm_pois_a_free_1.shp 14:28 #navit: < jkoan_> i will try if it worked with renaming 14:29 #navit: < jkoan_> sorry i mean: 14:29 #navit: < jkoan_> /home/jan/navit2/navit/maps/shapefiles/gis.osm_roads_free_1.cpg.shp 14:29 #navit: < jkoan_> and 14:29 #navit: < jkoan_> /home/jan/navit2/navit/maps/shapefiles/gis.osm_roads_free_1.shp 14:31 #navit: < jkoan_> kazer could you send me a "patch" to avoid the segfault 14:31 #navit: < jkoan_> ? 14:32 #navit: < kazer> two steps to avoid the segfault : 14:32 #navit: < jkoan_> wait 14:32 #navit: < kazer> 1) do not include the .shp in the filename, like this : http://pastebin.com/Gdge2Gdw 14:32 #navit: < jkoan_> navit is running 14:32 #navit: < jkoan_> with shapefile 14:33 #navit: < kazer> do you have usable data? 14:33 #navit: < kazer> is the map displayed or searchable? 14:33 #navit: < jkoan_> not complead but is a step in the right rirection 14:33 #navit: < kazer> so no display, right? 14:33 #navit: < jkoan_> i could test the search 14:34 #navit: < kazer> second step for me was to change the extension here : https://github.com/navit-gps/navit/blob/trunk/navit/map/shapefile/shapefile.c#L507 from dbfmap to dbf 14:34 #navit: < kazer> then navit does not segfault anymore 14:34 #navit: < kazer> but if you enable debugging with 14:34 #navit: < jkoan_> i havent pached but it is working without segfault 14:34 #navit: < kazer> interesting 14:35 #navit: < kazer> i get this too : debug:map_shapefile:map_rect_new_shapefile:/home/pierre/dev/navit/bin/navit/maps/shp/gis.osm_roads_free_1.dbf changed 1 old 0x7f2beb56c010 14:35 #navit: < kazer> debug:map_shapefile:build_match:line=?????? 14:35 #navit: < jkoan_> wait :D 14:35 #navit: < kazer> build_match output makes me think that the format is different 14:43 #navit: < kazer> jkoan_: do you get a usable (search and/or display) map or just no segfault? 14:43 #navit: < jkoan_> wait 1 min 14:43 #navit: < kazer> TOO MUCH SUSPENSE :) 14:44 #navit: < jkoan_> https://jkoan.de/navit1.png 14:45 #navit: < jkoan_> only renamed some of the fles 14:45 #navit: < jkoan_> only used shapefiles 14:46 #navit: < kazer> nice job! 14:46 #navit: < kazer> is the map displayed too? 14:46 #navit: < jkoan_> not really but i also dont know how to zoom out on computer 14:47 #navit: < kazer> i believe that pageup/pagedown are the default keys 14:47 #navit: < kazer> otherwise you can just enable the zoom osd items 14:49 #navit: < jkoan_> give me time to rename all files :X then we see 14:50 #navit: < kazer> sure :) 14:50 #navit: < jkoan_> right now i dont see anythin in log because hundrets of: 14:50 #navit: < jkoan_> debug:map_shapefile:map_rect_new_shapefile:/home/jan/navit2/navit/maps/shapefiles/gis.osm_waterways_free_1.dbfmap changed 0 old (nil) 14:50 #navit: < jkoan_> debug:map_shapefile:map_rect_new_shapefile:map_rect_new_shapefile 14:50 #navit: < jkoan_> debug:map_shapefile:map_destroy_shapefile:map_destroy_shapefile 14:50 #navit: < jkoan_> sorry for spamming irc 14:50 #navit: < kazer> you can just remove the shapefile debug :) 14:50 #navit: < jkoan_> i dont want open pastebin :D 14:50 #navit: < kazer> nah it's ok, 4 lines is hardly a spam 14:51 #navit: < kazer> to test you can also click on an item from your search, and then click on view on map 14:51 #navit: < kazer> it should center the map on it, ensuring that if you don't see something, it's not because your coordinates are off 14:52 #navit: < jkoan_> even if i set the default "munich" in config? 14:52 #navit: < kazer> set the default munich ? 14:53 #navit: < jkoan_> this is the default, but could be overridden by center.txt if you moved the map around and exited properly 14:54 #navit: < jkoan_> hm okay :D could you find out the right coordinates for me? :D 14:54 #navit: < kazer> depends upon your maps :) 14:54 #navit: < jkoan_> iceland 14:54 #navit: < kazer> try to click on the "view on map" item 14:55 #navit: < jkoan_> oh okay :D 14:59 -!- jandegr [5bb6166c@gateway/web/freenode/ip.91.182.22.108] has quit [Quit: Page closed] 15:04 #navit: < jkoan_> hm :/ 15:05 #navit: < kazer> does not sounds good :) 15:05 #navit: < jkoan_> http://pastebin.com/xrViBSvF 15:06 #navit: < jkoan_> that is what happens if i load the mps 15:06 #navit: < jkoan_> *maps 15:06 #navit: < kazer> yep that's what i was seeing too 15:06 #navit: < kazer> the shp files from geofabrik might be slightly different than the one we used in the past... We'll have to test with pmckinley's maps too 15:07 #navit: < kazer> jkoan_: would you mind putting some notes about your renaming in the wiki? we could start a documentation stub for shapefiles 15:07 #navit: < jkoan_> the question os what is dbfmap? (which file from geofabrik) 15:08 #navit: < jkoan_> wiki --> yes but not today 15:08 #navit: < jkoan_> i must go to bed (wake up at 5:00/5:30 tomorrow , german time) 15:09 #navit: < jkoan_> but i have a few minutes left for now 15:09 #navit: < kazer> don't worry then. If you could just toss a note somewhere about the renaming so that i can try later on and maybe implement the change in navit... 15:10 #navit: < jkoan_> https://jkoan.de/navit3.png i think it mainly does something 15:11 #navit: < kazer> that's a good start :) 15:12 #navit: < kazer> the fact that they are unkown is probably because we defined the POIs attributes later on, when working on OSM 15:13 #navit: < jkoan_> yes probably :D 15:13 #navit: < jkoan_> http://download.geofabrik.de/osm-data-in-gis-formats-free.pdf there are the pois 15:14 #navit: < jkoan_> Probably navit only does not map roads as roads? :/ (page 15 15:14 #navit: < jkoan_> ) 15:17 #navit: < kazer> mmm 15:21 #navit: < jkoan_> http://wiki.navit-project.org/index.php/Shapefiles 15:24 #navit: < kazer> awesome, that's a good pointer. Thanks! 15:25 #navit: < jkoan_> i dont know if every command works right 15:25 #navit: < kazer> i'm not sure that the cpg part is required 15:25 #navit: < jkoan_> which? 15:26 #navit: < kazer> .shx -> .cpg.shx for example 15:26 #navit: < jkoan_> i think navit search for this 15:26 #navit: < kazer> i think that only .dbf -> .dpfmap is needed 15:26 #navit: < kazer> i think it searches for cpg because you added it to your maps 15:27 #navit: < jkoan_> i dont know if dbfmap is really the same or map intends an concerted version 15:27 #navit: < kazer> yeah not sure about that either. But anyway it's a step in the right direction 15:27 #navit: < jkoan_> even with the pois 15:30 #navit: < kazer> i think that the POIs are 'unknown' because for OSM, maptool does the conversion from OSM types to types that navit recognize 15:30 #navit: < kazer> we might need something similar for shp 15:38 #navit: < jkoan_> probably interesting: http://www.maplibrary.org/library/stacks/Africa/index.htm 15:38 -!- jkoan_ [nbqtHzlazw@2a00:d0c0:200:0:b9:1a:9c0d:3a0] has left #navit [] 15:41 -!- jkoan_ [nbqtHzlazw@2a00:d0c0:200:0:b9:1a:9c0d:3a0] has joined #navit 15:46 #navit: < jkoan_> kazer: do you think we need to patch navit or only know how to rename the files ? 15:47 #navit: < kazer> we probably don't want to rename the files as users would have to do that everytime 15:47 #navit: < kazer> we can patch navit so that it tries both suffixes 15:47 #navit: < kazer> and also so that it doesn 15:47 #navit: < kazer> doesn 15:47 #navit: < kazer> damn it 15:47 #navit: < kazer> doesn't segfault when it can't open the file :) 15:48 #navit: < kazer> putting ' next to [Enter] was a bad idea for people like me who can't type 15:50 -!- jandegr [5bb6166c@gateway/web/freenode/ip.91.182.22.108] has joined #navit 15:50 #navit: < jkoan_> yes of course we rework on navit to get it easier. but I meaning a first proof of concept. do you think we need to program for this? 15:50 #navit: < jkoan_> hi jandegr 15:51 #navit: < jandegr> hi all 15:51 #navit: < kazer> here's a patch jkoan_ : http://pastebin.com/rJh568By 15:51 #navit: < kazer> second part is not even required 15:51 #navit: < kazer> hi jandegr 15:51 #navit: < jandegr> hi all 15:53 #navit: < jkoan_> kazer I will try it in some day's. at weekend I am not at hone so I probably can't test 15:53 #navit: < kazer> no worries jkoan_ 15:54 #navit: < kazer> jandegr: as our official android expert, do you have any thoughts about android wear? 15:55 #navit: < jandegr> hmm, become an expert in navit is easy, hang on untill the more knowledgable left :) 15:55 #navit: < jkoan_> but does it shows something with the patch? 15:56 #navit: < kazer> jkoan_: nop but that could be because of many things. But at least it doesn't segfault anymore 15:57 #navit: < jandegr> but kazer, I pm'ed you my current project, that might get me closer to the 'official' label 15:57 #navit: < kazer> ha, let me see 15:58 #navit: < jkoan_> yes this is nice :D 16:03 #navit: < jkoan_> kazer: did you remember the link I send you about the lib? probably you can find out More about the format there 16:06 #navit: < kazer> yep 16:07 #navit: < jkoan_> Do you want to spend time on this at weekend? ;) 16:07 #navit: < kazer> https://github.com/manisandro/shapelib 16:08 #navit: < kazer> yeah i'll have a look 16:10 #navit: < jkoan_> no not on github this one is old 16:11 #navit: < jkoan_> the one around where I said I try the 2016 version 16:12 #navit: < jkoan_> http://shapelib.maptools.org/ 16:14 #navit: < jkoan_> on the page bottom are file specifications 16:16 #navit: < jkoan_> if you have new things to report over weekend please also ping me :X 16:32 #navit: < kazer> ah ok 16:32 #navit: < kazer> yep will do thanks 16:41 #navit: < jkoan_> but as I currently see the library only knows 2 file types. dbf and shp/shx so we only need those 3 files because shp and shx are a pair. but I don't know were the cpg is for 16:43 #navit: < jandegr> bye folks, just keep in mind shapefile has no search and won't be routable AFAIK, not sure what you're all wanting to do with it, just don't expect too much of it :) 16:43 -!- jandegr [5bb6166c@gateway/web/freenode/ip.91.182.22.108] has quit [Quit: Page closed] 16:45 #navit: < jkoan_> we wan to help pmckinley :D but why it isn't be routable :( okay only shapes okay :D 16:46 #navit: < jkoan_> BTW the cpg only shows the encoding --> uft-8 16:46 #navit: < jkoan_> now I go to sleep good night 18:46 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has quit [Quit: Leaving.] 19:17 #navit: < pmckinley> @jkoan @kazer you guys are awesome, thank you for looking at my Shapefile problem 19:27 #navit: < pmckinley> By the way for test purposes I am using the Ireland map Shapefile from Geofabrik, because that is where I'm physically located, so Navit will be able to pinpoint me when it works 19:28 #navit: < pmckinley> http://download.geofabrik.de/europe/ireland-and-northern-ireland.html 19:30 #navit: < pmckinley> When we (kazer and jkoan, with me watching carefully form the side) get a Geofabrik Shapefile working, then I will switch to my required Shapefile from another maker 19:32 #navit: < pmckinley> jandegr: I'm not worried too much about search and routing 19:55 -!- Horwitz [~mich1@p200300800E05A800022268FFFE64E7C4.dip0.t-ipconnect.de] has quit [Ping timeout: 256 seconds] 20:09 -!- Horwitz [~mich1@p200300800E04F300022268FFFE64E7C4.dip0.t-ipconnect.de] has joined #navit 20:09 -!- mode/#navit [+o Horwitz] by ChanServ 22:08 #navit: < jkoan_> Could you please send Kazer and me the file names from the other shape files you have? Only make an "ls" in the folder with the shapefiles (we want to see the naming scheme). You could send it over private message in irc if you don't want that everyone could see it. 22:23 #navit: < jkoan_> And the other thing is if you could probably send us the files from the other maker? because at least I would like to check if the files are valid shapefiles for the library. If you don't want or beeing allow to share public, you even could send the link over private message. The point b 22:26 #navit: < jkoan_> The point why I want to check both is that Kazer end I tried a lot with the files but even if we could run navit without an instant crash we currently don't know much about the file format so we want to collect more then one test data from different sources --- Log closed Fri Feb 10 00:00:48 2017