• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POI editor
#31
Thanks Ashus,

Being the pain in the A*** that I am do you know how many fields to the csv import and are headers required ?

Keith
  Reply
#32
The header is not required. Just look into the import scripts - inc.import.csv.php:

Line is divided to variables $tmp [0-4] by commas, last variable may contain any number of commas
Code:
    $entry['lon'] = CleanStr($tmp[0]);
    $entry['lat'] = CleanStr($tmp[1]);
    $entry['name'] = CleanStr($tmp[2]);
    $entry['desc'] = CleanStr($tmp[3]); 

' phone: ' is searched for in the $entry['desc'] variable. If found, it splits data into desc and phone variables.
'# Folder: ' is also searched for. If found, it sets the category name for all following entries.
[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
  Reply
#33
Thanks very much

now clear as mud :lol: :lol:

Keith
  Reply
#34
Ashus,

Could you please check the KML export on your editor.

It may be me but everytime I try to export to kml I can only save in html whic obviously will not work

Thanks in advance

Keith
  Reply
#35
@Keith

Try another browser.

Code:
    header('Cache-Control: must-revalidate');
    header('Pragma: hack');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="poi.kml"');
    header("Content-Transfer-Encoding: binary\n"); 

This header says, that a download box needs to be displayed to the user (no direct opening in browser), and that the file is binary. It also states, the data shouldn't be cached anywhere on the way.
[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
  Reply
#36
Thanks I was using Opera will try IE8

Keith
  Reply
#37
Thanks again Ashus you are a star.
How about another one.

Copied user.upoi to sd card igo8/save and it takes some 10 minutes to load and no pois can be found under find or manage so I created a poi on the device and when I opened user.upoi in notepad I got the following

1|Test|Ex work||53.656896|-1.823424|_GBR||||HD3 3|Huddersfield, Lindley|Plover Road|18|||
簱慃灭湩籧敓⁡楖睥䠠汯摩祡倠牡㭫䜠ⵂ敓湮湥籼㕼⸰㜰㐲簸㔭㘮㔹籼籼籼籼佼㜱㘳㠠ㄷ㘲簶਍簳慃灭湩籧牔癥摥慲䘠牡慃慲慶…慃灭湩⁧楓整※䉇匭湥敮籮籼〵〮㈹㜹⵼⸵㠶㠰簷籼籼籼籼ㅏ㌷‶㜸㠱㠱ർ㔊䍼浡楰杮卼湥敮潃敶䌠浡楰杮䄠摮䌠牡癡湡楮杮※䉇匭⁴畂祲湡籼㕼⸰㤰〴簶㔭㘮㘶㤴籼籼籼籼佼㜱㘳㠠ㄷ㠵簸਍簷慃灭湩籧潌敷⁲牔慥敶䌠牡癡湡☠䌠浡楰杮倠牡㭫䜠ⵂ慌摮⁳湅籤籼〵〮㠸㤵⵼⸵㔶㜴簱籼籼籼籼ർ㤊䍼浡楰杮䍼牡楤湮祥䌠牡癡湡☠䌠浡楰杮倠牡㭫䜠ⵂ牃睯⵳湁圭慲籼㕼⸰㤰〴簳㔭㘮㠳㠴籼籼籼籼佼㜱㘳㠠〱㠸簰਍ㄱ䍼浡楰杮卼捥敲⁴慇摲湥䌠牡癡湡☠䌠浡楰杮倠牡㭫䜠ⵂ瑓䨠獵籴籼〵ㄮ㔱ㄸ⵼⸵㠶㌰簶籼籼籼籼ㅏ㌷‶㠷㌸㄰ർㄊ簳慃灭湩籧敋祬慮正※䉇匭⁴畊瑳籼㕼⸰ㄱ㈳簴㔭㘮㜷㐱籼籼籼籼佼㜱㘳㜠㜸㌶簳਍㔱䍼浡楰杮呼敲慶汹牯※䉇匭⁴畊瑳籼㕼⸰㌱㜳簹㔭㘮㈸㐷籼籼籼籼佼㜱㘳㜠㜸㄰簶਍㜱䍼浡楰杮剼獯汥湡獤䌠牡癡湡☠䌠浡楰杮倠牡瑌㭤䜠ⵂ瑓‮畊瑳籼㕼⸰ㄱ㈳簵㔭㘮㜵㐹籼籼籼籼佼㜱㘳㜠㠸㜵簱਍㤱䍼浡楰杮呼敨丠牯桴䤠湮※䉇倭湥敤湥籼㕼⸰㔱㐱簷㔭㘮㔶㔷籼籼籼籼佼㜱㘳㜠㠸ㄴ簷਍ㄲ䍼浡楰杮剼獵楨潈獵⁥慃慲慶慐歲※䉇䈭汥潣籯籼㐵㌮㔰㔹⵼⸷㤸㘳簶籼籼籼籼㉏‸㘶㠳㘠ㄵ簹਍㌲䍼浡楰杮䱼歡汥湡⁤慃慲慶慐歲※䉇䬭獥籨籼㐵㔮㈳㘴⵼⸷㔷㈳簹籼籼籼籼㉏‸㠶㌶ㄠ㜵簸਍㔲䍼浡楰杮䍼獡汴⁥牁档慤敬䌠牡癡湡倠牡㭫䜠ⵂ牉楶敮瑳睯籮籼㐵㐮㜷㌷⵼⸷㈷㌸簳籼籼籼籼㉏‸㠶㈶ㄠ㌳簳਍㜲䍼浡楰杮䑼畲桭湯祥䠠汯摩祡倠牡㭫䜠ⵂ楌湳牡捩籫籼㐵㐮㔶㤰⵼⸷㤶㘸簸籼籼籼籼㉏‸㠶‶ㄲ㤸簲਍㤲䍼浡楰杮卼慨敲䠠汯摩祡嘠汩慬敧※䉇䰭獩慮歳慥籼㕼⸴ㄲ㐱⵼⸷㜴㠶簶籼籼籼籼㉏‸㜶㈷㈠㈱簲਍ㄳ䍼浡楰杮剼畯摮䰠歡⁥慃慲慶慐歲※䉇䘭癩浥汩瑥睯籮籼㐵㌮㘹㤲⵼⸷ㄳ㐸簷籼籼籼籼㉏‸㤸㈵ㄠ㐹簹਍㌳䍼浡楰杮䑼畲慍潮⁲潆敲瑳倠牡㭫䜠ⵂ潃歯瑳睯籮籼㐵㘮㔳㐳⵼⸶㔷㠱簸籼籼籼籼㉏‸㘸㘷㈠㜷簴਍㔳䍼浡楰杮䝼獯潦摲䘠牯獥⁴慐歲※䉇䴭牡敫桴汩籬籼㐵㌮

This looks to me to be a binary file (or chinese) my region is set to UK.

Any suggestions please.

By the way if we ever meet I owe you a beer or three

Keith
  Reply
#38
Is that RTL a joke or what??

There are two possible UPOI formats, it looks like you are using iGo8, but trying to export to iGo8.3. Try another format.

Actually I use Opera for everything without any problems. You may try to make a clean install of the latest Opera 9.63 (delete preferences, but keep emails, bookmarks etc). But if you decide to use IE just for POI editor, I'm OK with that. Stick to Opera, the coolest and fastest browser on earth Wink
[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
  Reply
#39
Thanks again Ashus

I am using Opera 9.52 will update and for Igo 8.3.2.71348

Keith
  Reply
#40
Dobrý den,
Jednak Vám chci poděkovat za skvělý nástroj, jednak Vás chci poprosit o radu: Potřebuji vytvořit user.upoi pro IGo 8.3.xx, ovšem z dat z různých exotických zdrojů. Po všelijakých pokusech o konverzi sem/tam/zpět, jsem nakonec všechny databáze dostal do tvaru souboru *.CSV, což parádně funguje, nicméně má to hák - po konverzi vaším scriptem na *.upoi dojde k setřídění dat podle abecedy - vzhledem k počtu bodů už zpětně nedohledám a nedopíšu ke které skupině POI patří. Nedá se nějak už v tom csvčku předchroustat scriptu, aby doplnil skupinu už při generování *.upoi? Vím, že by se to dalo zpětně přečíst ze zdrojáku, jenže já zvládám akorát asembler :-(.

např:
1|Skupina X|Becov Most||50.44891|13.717|||||||||||

BTW: doufám že tenhle text dává smysl.

Díky moc
Cublay
  Reply




Users browsing this thread: 1 Guest(s)