Opened 9 years ago

Closed 9 years ago

#781 closed defect/bug (fixed)

android csv-maps

Reported by: zaatlob -2- Owned by: zoff99
Priority: minor Milestone: want patch / contribution
Component: port/android Version:
Severity: Keywords: csv-maps android
Cc:

Description

Hello,

I am trying to use csv-maps in android. I added the next lines to my xml: <mapset enabled="yes"> <map type="binfile" enabled="yes" data="/sdcard/navitmap.bin"/> <map type="csv" enabled="yes" data="/sdcard/navit/poi_hotels.txt" item_type="poi_hotels" attr_types="position_longitude,position_latitude,label" /> </mapset>

The files has this structuur:

X,Y,TYPE

0.617306,44.182584,1ere-classe

2.089256,43.915803,1ere-classe

4.09314,44.10802,1ere-classe

2.370099,49.865701,1ere-classe 6.161438,49.127736,Formula1

The last entry is of the formule1 in Metz. If i search around hotels for that city, this entry isn't in the index. Neither is the hotel to see on the map.

The path and the name of the file is corretly spelled with the right case.

Anyone knows it this is a bug, there are some settings i have to change or that i am doing something wrong. I am using adroid 2.1 and the apk build on the 15 of februari.

The

Attachments (3)

navit.xml (209.4 KB) - added by zaatlob -2- 9 years ago.
navit.xml
poi_hotels.txt (20.2 KB) - added by zaatlob -2- 9 years ago.
poi_hotels.txt
Screenshot-5.png (34.1 KB) - added by korrosa 9 years ago.
I wonder if there's a problem with the csv file? See the attached screenshot, which shows two of the hotels from the csv file near Amiens, France. Note the extra line break symbols (?) after the name (the squares). Have you tried another hand-made csv file, of (say) two or three items (not copy/pasting from the hotels file: something completely different)? I guess we should rule out a dodgy file first, before trying to find out why csv's don't work at all in Android.

Download all attachments as: .zip

Change History (19)

Changed 9 years ago by zaatlob -2-

navit.xml

Changed 9 years ago by zaatlob -2-

poi_hotels.txt

comment:1 Changed 9 years ago by zoff99

  • Type changed from defect/bug to enhancement/feature request
  • Version svn deleted

you are not using the latest SVN version. always try to use the latest SVN before filing a bugreport.

comment:2 Changed 9 years ago by zaatlob -2-

i did install the latest version, but nothing changed.

comment:3 Changed 9 years ago by tegzed

Hello Zaatlob,

I think this is a typo in your map configuration, please use item_type="poi_hotel" instead of item_type="poi_hotels" . Please use latest svn(rev 4229 or greater) for your csv maps since I added some code to avoid crashes in certain situations in the csv driver.

comment:4 Changed 9 years ago by benja1972 -2-

I've checked latest svn 4229 android (and item_type="poi_hotel" ) and csv file from this trac and can confirm: it doesn't work. Cannot see poi hotel from file on map.

comment:5 Changed 9 years ago by tegzed

OK, are you sure that the path to the hotel_poi.txt file is correct? Yesterday i tried this out with a linux box and gui internal and worked ok with the typo fix mentioned above. Try removing the binfile from mapset so only csv remains clicking on map > globe with coords -> POI. If you see your hotel POIs in the list then it's a map layout display problem, if not map is not loaded correctly.

comment:6 Changed 9 years ago by zaatlob -2-

Hello tegzed,

I instaled the latest version(svn 4229) and removed the navitmap.bin from the xml. If i look at the poi i would expect a hotel within 400km. But there are no hotels. So it seems the map isn't loaded correctly.

comment:7 Changed 9 years ago by benja1972 -2-

Same here. No hotels poi from csv map. Even I cannot see csv map in the list of active maps (Menu-> Settings ->Maps)

Changed 9 years ago by korrosa

I wonder if there's a problem with the csv file? See the attached screenshot, which shows two of the hotels from the csv file near Amiens, France. Note the extra line break symbols (?) after the name (the squares). Have you tried another hand-made csv file, of (say) two or three items (not copy/pasting from the hotels file: something completely different)? I guess we should rule out a dodgy file first, before trying to find out why csv's don't work at all in Android.

comment:8 Changed 9 years ago by tegzed

One possibility that I can think of is that the android build system is configured without csv map support. If there is a build log for android it can be checked if csv map driver is compiled at all. Is there a build log where you downloaded the android version? (I don't have an android device so son't know where are the builds)

comment:9 Changed 9 years ago by benja1972 -2-

Just now checked with this file http://www.poiplaza.com/index.php?p=sdb&d=854&lstpg=ds&lsts=137

No effect. Cannot see csv map and poi from it

comment:10 Changed 9 years ago by zaatlob -2-

Did also a check and still don't work. I used the last build version on the android download site.

http://download.navit-project.org/navit/android/svn/

comment:11 Changed 9 years ago by tegzed

Please contact zoff99 on irc if csv support is built into the android build, if it is built, I would also check that the plugins section of navit xml loads the csv map driver .

comment:12 Changed 9 years ago by tegzed

Ok I downloaded an apk file and unzipped it. After checking the res/raw/navitXdpi.xml files it seems that my latest suspicion proved true. The driver file itself exists (lib/armeabi/libmap_csv.so) However the xml files are not containing the plugin entry to load csv driver.

        <plugins>
                <plugin path="$NAVIT_PREFIX/lib/libgraphics_android.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libvehicle_android.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libspeech_android.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libgui_internal.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libmap_textfile.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libmap_binfile.so" ondemand="no"/>
        <plugin path="$NAVIT_PREFIX/lib/libosd_core.so" ondemand="no"/>
        </plugins>

You should add a line to your navit.xml's plugins section like this:

        <plugin path="$NAVIT_PREFIX/lib/libmap_csv.so" ondemand="no"/>

I think it worth contacting cp15 the project leader or zoff99 the android dev to modify the default xml for android to include this map driver also.

comment:13 Changed 9 years ago by zoff99

  • Owner changed from cp15 to zoff99
  • Type changed from enhancement/feature request to defect/bug

this bug is known.

comment:14 Changed 9 years ago by tegzed

I have committed the fix in svn rev 4239 which will hopefully solve this problem. Please close this ticket if it works correctly.

comment:15 Changed 9 years ago by zoff99

the soultion will come next week. now it should not be commited

comment:16 Changed 9 years ago by zaatlob -2-

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.