OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

Join the forum, it's quick and easy

OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>
OruxMaps
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Large KML data support

3 posters

Go down

Large KML data support Empty Large KML data support

Post  Tagussan Sat Mar 30, 2013 7:58 am

Hi Orux,
Thank you for great app!
If I load a KML overlay that contains over 9000 points, the loading process doesn't end. Is there other ways to load this large KML other than splitting into small files?
Best regards,
Tagussan

Tagussan

Cantidad de envíos : 2
Fecha de inscripción : 2013-03-30

Back to top Go down

Large KML data support Empty Re: Large KML data support

Post  Icarus Sat Mar 30, 2013 11:35 am

I've had very large kml files load successfully but they just take a long time. A 3Mb kml takes about 5 minutes on a Galaxy S2.
Perhaps Orux can optimise the way the software parses the file?

Icarus

Cantidad de envíos : 104
Fecha de inscripción : 2011-04-03

Back to top Go down

Large KML data support Empty Re: Large KML data support

Post  Tagussan Sun Mar 31, 2013 3:24 am

Icarus wrote:I've had very large kml files load successfully but they just take a long time. A 3Mb kml takes about 5 minutes on a Galaxy S2.
Perhaps Orux can optimise the way the software parses the file?
The size of KML file I want to load is only 900kB. But, if I load this file, OruxMaps still display processing window after 15 minutes elapsed. I made a KML data without name, description. Like this.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
<Document>
<name><![CDATA[Waypoints]]></name>
<description><![CDATA[<h1>OruxMaps</h1><br /><hr align="center" width="480" style="height: 2px; width: 517px"/><h2>名前: Waypoints</h2><br /><p>距離: 0 km (00:00)</p><p>移動時間: 00:00</p><p>平均速度: 0 km/h</p><p>平均速度Mov。: 0 km/h</p><p>最大速度: 0 km/h</p><p>高度ゲイン: 0 m</p><p>高さ損失: 0 m</p><p>上昇時間: 00:00</p><p>下降時間: 00:00</p><hr align="center" width="480" style="height: 2px; width: 517px"/>]]></description>
<StyleMap id="multiTrack"><Pair><key>normal</key><styleUrl>#multiTrack_n</styleUrl></Pair><Pair><key>highlight</key><styleUrl>#multiTrack_h</styleUrl></Pair></StyleMap><Style id="multiTrack_n"><IconStyle><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle><LineStyle><color>99ffac59</color><width>6</width></LineStyle></Style><Style id="multiTrack_h"><IconStyle><scale>1.2</scale><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle><LineStyle><color>99ffac59</color><width>8</width></LineStyle></Style><Folder>
<name>Waypoints</name>

<visibility>1</visibility>
<Placemark>
<Point>
<coordinates>139.26878356934,35.791675567627,0.0</coordinates>
</Point>
</Placemark>
<Placemark>
<Point>
<coordinates>139.26934814453,35.792057037354,0.0</coordinates>
</Point>
</Placemark>
<Placemark>
<Point>
<coordinates>139.21868896484,35.801486968994,0.0</coordinates>
</Point>
</Placemark>
.....
....
</Folder>
<Folder>
<name>Tracks</name>
<open>0</open>
<visibility>1</visibility>
</Folder>
<Folder>
<name>Paths</name>
<open>0</open>
<visibility>1</visibility>
</Folder>
<Style id="gv_waypoint"><BalloonStyle><text><![CDATA[<p align="left"><font size="+1"><b>$[name]</b></font></p> <p align="left">$[description]</p>]]></text></BalloonStyle><IconStyle><Icon><href>http://maps.google.com/mapfiles/kml/pal4/icon29.png</href></Icon><color>FFFFFFFF</color><colorMode>normal</colorMode><hotSpot x="0.5" xunits="fraction" y="0.5" yunits="fraction"/></IconStyle><LabelStyle><color>FFFFFFFF</color></LabelStyle></Style><open>1</open>
<visibility>1</visibility>
</Document>
</kml>

Does this contains odd syntax and prevents OruxMaps from loading this file?

Tagussan

Cantidad de envíos : 2
Fecha de inscripción : 2013-03-30

Back to top Go down

Large KML data support Empty Re: Large KML data support

Post  orux Sun Mar 31, 2013 9:51 am

Tagussan wrote:
Icarus wrote:I've had very large kml files load successfully but they just take a long time. A 3Mb kml takes about 5 minutes on a Galaxy S2.
Perhaps Orux can optimise the way the software parses the file?
The size of KML file I want to load is only 900kB. But, if I load this file, OruxMaps still display processing window after 15 minutes elapsed. I made a KML data without name, description. Like this.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
<Document>
<name><![CDATA[Waypoints]]></name>
<description><![CDATA[<h1>OruxMaps</h1><br /><hr align="center" width="480" style="height: 2px; width: 517px"/><h2>名前: Waypoints</h2><br /><p>距離: 0 km (00:00)</p><p>移動時間: 00:00</p><p>平均速度: 0 km/h</p><p>平均速度Mov。: 0 km/h</p><p>最大速度: 0 km/h</p><p>高度ゲイン: 0 m</p><p>高さ損失: 0 m</p><p>上昇時間: 00:00</p><p>下降時間: 00:00</p><hr align="center" width="480" style="height: 2px; width: 517px"/>]]></description>
<StyleMap id="multiTrack"><Pair><key>normal</key><styleUrl>#multiTrack_n</styleUrl></Pair><Pair><key>highlight</key><styleUrl>#multiTrack_h</styleUrl></Pair></StyleMap><Style id="multiTrack_n"><IconStyle><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle><LineStyle><color>99ffac59</color><width>6</width></LineStyle></Style><Style id="multiTrack_h"><IconStyle><scale>1.2</scale><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle><LineStyle><color>99ffac59</color><width>8</width></LineStyle></Style><Folder>
<name>Waypoints</name>

<visibility>1</visibility>
<Placemark>
<Point>
<coordinates>139.26878356934,35.791675567627,0.0</coordinates>
</Point>
</Placemark>
<Placemark>
<Point>
<coordinates>139.26934814453,35.792057037354,0.0</coordinates>
</Point>
</Placemark>
<Placemark>
<Point>
<coordinates>139.21868896484,35.801486968994,0.0</coordinates>
</Point>
</Placemark>
.....
....
</Folder>
<Folder>
<name>Tracks</name>
<open>0</open>
<visibility>1</visibility>
</Folder>
<Folder>
<name>Paths</name>
<open>0</open>
<visibility>1</visibility>
</Folder>
<Style id="gv_waypoint"><BalloonStyle><text><![CDATA[<p align="left"><font size="+1"><b>$[name]</b></font></p> <p align="left">$[description]</p>]]></text></BalloonStyle><IconStyle><Icon><href>http://maps.google.com/mapfiles/kml/pal4/icon29.png</href></Icon><color>FFFFFFFF</color><colorMode>normal</colorMode><hotSpot x="0.5" xunits="fraction" y="0.5" yunits="fraction"/></IconStyle><LabelStyle><color>FFFFFFFF</color></LabelStyle></Style><open>1</open>
<visibility>1</visibility>
</Document>
</kml>

Does this contains odd syntax and prevents OruxMaps from loading this file?

Hi,

xml parsing is a hard work, that work is done mostly by android libraries. but I will try to improve it.

Please, send me the kml file, to see where is the problem. 900kb should not be a problem-->oruxuro@gmail.com

orux

orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Large KML data support Empty Re: Large KML data support

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum