Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-03-02 Thread Garvan maew
Mark Burton wrote:
 Hello Garvan,

   
 I found a generalize function in gpsmapedit that removed 10% of the 
 points in the file, but the national boundaries still did not display, 
 so I split the very long polyline up and then it compiled correctly. 
 

 I don't see why that was required because we already split lines that
 have more than 250 points.

   
 This experience may be worth noting for others who see long lines 
 disappearing with no error message when compiling in osm format.
 

 Sure, but I would rather find out why the existing line splitting
 didn't work satisfactorily.

 Mark
   
I managed to isolate the problem further.

The lines disappear only when you have ways where the first and last 
point of the way are identical. It makes no difference if I merge the 
first and last node or when they have separate node id's. This has 
allowed me to make a small file demonstrating the problem, which I have 
uploaded to http://dl.dropbox.com/u/4900023/cambodia.osm.gz .

This file contains nine ways (contour lines) but when compiled with the 
option --remove-short-arcs=5 only three ways (one of which might be too 
small to see) are in the img file.

Now that I understand the problem I can avoid it easily by 
pre-processing the file, but I am sure others must be relying on 
--remove-short-arcs with raw osm input.

Garvan

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-03-02 Thread Mark Burton

Hi Garvan,

Thanks for persevering with this issue.

Your latest example has brought me enlightenment!

I will work on a solution this evening.

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-27 Thread Mark Burton

Hello Garvan,

 I found a generalize function in gpsmapedit that removed 10% of the 
 points in the file, but the national boundaries still did not display, 
 so I split the very long polyline up and then it compiled correctly. 

I don't see why that was required because we already split lines that
have more than 250 points.

 This experience may be worth noting for others who see long lines 
 disappearing with no error message when compiling in osm format.

Sure, but I would rather find out why the existing line splitting
didn't work satisfactorily.

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Mark Burton

Hello Garvan,

 http://dl.dropbox.com/u/4900023/cambodia.osm
 

If you zip up that file to save my bandwidth, I will take a look at it.

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Garvan maew
Mark Burton wrote:
 Hello Garvan,

   
 http://dl.dropbox.com/u/4900023/cambodia.osm

 

 If you zip up that file to save my bandwidth, I will take a look at it.

 Mark
   

Sorry, wasn't thinking.

http://dl.dropbox.com/u/4900023/cambodia.osm.zip

Garvan

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Mark Burton

Well, I looked at it but learnt nothing. I just get an empty map, no
lines, no diagnostics, nothing at all.

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Garvan maew
Mark Burton wrote:
 Well, I looked at it but learnt nothing. I just get an empty map, no
 lines, no diagnostics, nothing at all.

 Mark

If you zoom in I think the contours and provincial boundaries will show 
up, but at full zoom nothing shows because the national boundaries are 
missing. I am not sure exactly when they should show in mapsource, but 
gpsmapedit tells me they are not in the img file at all.

Garvan

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Mark Burton

 If you zoom in I think the contours and provincial boundaries will show 
 up, but at full zoom nothing shows because the national boundaries are 
 missing. I am not sure exactly when they should show in mapsource, but 
 gpsmapedit tells me they are not in the img file at all.

OK, I think what's happening here is that the file contains a lot of
points that are so close together that the remove-short-arc process
just throws them away and then throws the ways away because they
contain less than 2 points. If you look at the diagnostics you get lots
of lines like:

2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
(http://www.openstreetmap.org/browse/way/-2475) has consecutive nodes with the 
same coordinates 
(http://www.openstreetmap.org/?mlat=11.78333mlon=103.63197zoom=17) - merging 
node -187534 into -187526
2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
(http://www.openstreetmap.org/browse/way/-2478) has consecutive nodes with the 
same coordinates 
(http://www.openstreetmap.org/?mlat=11.78236mlon=103.65167zoom=17) - merging 
node -187581 into -187573
2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 700 
(http://www.openstreetmap.org/browse/way/-2477) has consecutive nodes with the 
same coordinates 
(http://www.openstreetmap.org/?mlat=11.78327mlon=103.34835zoom=17) - merging 
node -187572 into -187564

and then later you get:

2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
(http://www.openstreetmap.org/browse/way/-11092) has less than 2 points - 
deleting it
2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
(http://www.openstreetmap.org/browse/way/-11091) has less than 2 points - 
deleting it
2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
(http://www.openstreetmap.org/browse/way/-11094) has less than 2 points - 
deleting it

Can you reduce the number of points in the ways?

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Garvan maew
Mark Burton wrote:
 If you zoom in I think the contours and provincial boundaries will show 
 up, but at full zoom nothing shows because the national boundaries are 
 missing. I am not sure exactly when they should show in mapsource, but 
 gpsmapedit tells me they are not in the img file at all.
 

 OK, I think what's happening here is that the file contains a lot of
 points that are so close together that the remove-short-arc process
 just throws them away and then throws the ways away because they
 contain less than 2 points. If you look at the diagnostics you get lots
 of lines like:

 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-2475) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78333mlon=103.63197zoom=17) - 
 merging node -187534 into -187526
 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-2478) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78236mlon=103.65167zoom=17) - 
 merging node -187581 into -187573
 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 700 
 (http://www.openstreetmap.org/browse/way/-2477) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78327mlon=103.34835zoom=17) - 
 merging node -187572 into -187564

 and then later you get:

 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
 (http://www.openstreetmap.org/browse/way/-11092) has less than 2 points - 
 deleting it
 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-11091) has less than 2 points - 
 deleting it
 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
 (http://www.openstreetmap.org/browse/way/-11094) has less than 2 points - 
 deleting it

 Can you reduce the number of points in the ways?

 Mark

   

Reducing the number of points sounds like a good idea and I have read of 
tools that do this. The import is from shapefiles originally, so I think 
I can manage this.

But why do the national boundaries display correctly when I delete the 
contour lines? Something is wrong. The line that is being dropped is a 
single line with 22,668 points.

Garvan

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bug report --remove-short-arcs=5 ???

2010-02-23 Thread Garvan maew
Garvan  maew wrote:
 Mark Burton wrote:
   
 If you zoom in I think the contours and provincial boundaries will show 
 up, but at full zoom nothing shows because the national boundaries are 
 missing. I am not sure exactly when they should show in mapsource, but 
 gpsmapedit tells me they are not in the img file at all.
 
   
 OK, I think what's happening here is that the file contains a lot of
 points that are so close together that the remove-short-arc process
 just throws them away and then throws the ways away because they
 contain less than 2 points. If you look at the diagnostics you get lots
 of lines like:

 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-2475) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78333mlon=103.63197zoom=17) - 
 merging node -187534 into -187526
 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-2478) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78236mlon=103.65167zoom=17) - 
 merging node -187581 into -187573
 2010/02/23 14:49:04 INFO (Osm5XmlHandler): cambodia.osm:   Way 700 
 (http://www.openstreetmap.org/browse/way/-2477) has consecutive nodes with 
 the same coordinates 
 (http://www.openstreetmap.org/?mlat=11.78327mlon=103.34835zoom=17) - 
 merging node -187572 into -187564

 and then later you get:

 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
 (http://www.openstreetmap.org/browse/way/-11092) has less than 2 points - 
 deleting it
 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 200 
 (http://www.openstreetmap.org/browse/way/-11091) has less than 2 points - 
 deleting it
 2010/02/23 14:49:09 INFO (Osm5XmlHandler): cambodia.osm:   Way 100 
 (http://www.openstreetmap.org/browse/way/-11094) has less than 2 points - 
 deleting it

 Can you reduce the number of points in the ways?

 Mark

   
 

 Reducing the number of points sounds like a good idea and I have read of 
 tools that do this. The import is from shapefiles originally, so I think 
 I can manage this.

 But why do the national boundaries display correctly when I delete the 
 contour lines? Something is wrong. The line that is being dropped is a 
 single line with 22,668 points.

 Garvan
   
PS. Thanks for your help.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev