Re: [mkgmap-dev] Build mkgmap with patch

2011-11-01 Thread Jaromír Mikeš
 Od: Steve Ratcliffe st...@parabola.me.uk

 The patch had an error, see:
 
   http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2011q3/012324.html
 
 Just delete the lines that don't compile, they are just printing out
 information and aren't important.

Thank you,

it works now ;)

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


Re: [mkgmap-dev] possible bug? mkgmap freezes with lines only routing style

2011-11-01 Thread michael lohr
maybe it would be a good idea to have a command line switch *and* a 
style rule.


the command line switch would have to default to no-index=false, 
otherwise indexing in all older styles would break. a 2nd optinon 
no-index=true could automatically add a no-index tag to all lines 
which then can be set to false in the style whenever we want a line indexed.



Am 29.10.2011 15:57, schrieb Steve Ratcliffe:

Hi

I would like some opinions please from those that make maps.

If you have a style that say sets the name of every path to 'Path'

eg: highway=path | highway=footway | highway=track {name 'Path' }

or anything similar that results in thousands of roads with the same
name, then mkgmap appears to freeze.

The code that is slow is creating a list of roads that will be used
when you search for an address in MapSource or on the device.

I can fix this in various ways, but I want to ask how useful it is to
have thousands of roads with the same name appear as a result of a
search?

For a start in mapsource, you only see a few of the results anyway.

Should I drop the name completely from the index when there are more
than say 500 roads with the same name in the same city?

There is a branch called simplify-sorted-roads where I am trying out
different approaches to the problem, if anyone else wants to try it out
or look at it.



I can confirm that behaviour. Although in real mkgmap does not freeze
(endless loop) but is working very very hard. Possibly the mkgmap code
is not very optimal for the special test case.

@Steve, the code requires a very long time in the
NETFile.simplifySortedRoads method because I think there are many roads
with the same name. I think I remember a similar discussion some time
ago? The method seems to perform a brute force method to detect
connected roads with the same name. Can you have a look on it?

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

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

Re: [mkgmap-dev] mkgmap ignores --country-abbr?

2011-11-01 Thread Marko Mäkelä
On Sun, Oct 30, 2011 at 10:16:48PM +0200, Marko Mäkelä wrote:
On Sun, Oct 30, 2011 at 01:18:26PM +0100, WanMil wrote:
Anyhow I don't mind replacing this with a better implementation. If you
post some better rules I might start implementing that.

Thanks, I will see what I can do. One idea would be to have a known
places with country list from the known places with region, city and
country list. Or, maybe the known places list could allow a null
region or city.

In the end, I fixed most of it by adding addr:country, addr:region, 
addr:city to a few place nodes. Now most places are in Finland again. I 
will add the addr:* to the outliers to fix the rest.

Can you commit the patch? I did not test without it.

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


[mkgmap-dev] mkgmap and aster data

2011-11-01 Thread Jaromír Mikeš
Hi list,

I need advice how to use ASTER tif tiles for building map with contours?
It is not probably scope of this list, but I can't find answer elsewhere.
I am building map where srtm having a lot of big holes (Patagonia).

I have 58 tiles (dem.tif and num.tif file for each). Is it possible convert 
them to .hgt files and then continue with Srtm2Osm?
Linux tools are prefered.

Thank you for any advice.

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


Re: [mkgmap-dev] mkgmap and aster data

2011-11-01 Thread Apollinaris Schoell
yes this is possible. see the post 

http://gis.638310.n2.nabble.com/contour-map-error-tp5183094p5238778.html


On Nov 1, 2011, at 9:27 AM, Jaromír Mikeš wrote:

 Hi list,
 
 I need advice how to use ASTER tif tiles for building map with contours?
 It is not probably scope of this list, but I can't find answer elsewhere.
 I am building map where srtm having a lot of big holes (Patagonia).
 
 I have 58 tiles (dem.tif and num.tif file for each). Is it possible convert 
 them to .hgt files and then continue with Srtm2Osm?
 Linux tools are prefered.
 
 Thank you for any advice.
 
 mira
 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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


Re: [mkgmap-dev] [PATCH v1] add-pois-to-lines

2011-11-01 Thread Torsten Leistikow
Moin,

WanMil schrieb am 31.10.2011 21:35:
 I have modified the patch by the following things:
 1. The relation style is now applied before the POIs are added

Today I had the idea of solving the problem the other way around: Add the
artificially created POIs as members to the relation.

But doing the relation processing as soon as possible is perhaps in general a
good idea, since anything can be member of a relation.

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


Re: [mkgmap-dev] mkgmap and aster data

2011-11-01 Thread Apollinaris Schoell
I recommend the older version for performance reasons. the newer version has 
some improvements for polygons which are useless for contours and slow down the 
conversion a lot.
https://github.com/iandees/shp-to-osm

On Nov 1, 2011, at 1:40 PM, Jaromír Mikeš wrote:

 Od: Apollinaris Schoell ascho...@gmail.com
 
 yes this is possible. see the post 
 
 http://gis.638310.n2.nabble.com/contour-map-error-tp5183094p5238778.html
 
 Thank you for link.
 
 I am trying adjust contour.pl script for my needs ;)
 
 Where I can get shp-to-osm-0.6.1-jar-with-dependencies.jar ?
 
 regards
 
 mira 
 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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


[mkgmap-dev] osm.pbf file conversion

2011-11-01 Thread steve sgalowski
while trying to convert *.osm.pbf files into a  img file
the program really never runs at all
even though i have 14 osm.pbf files to convert across
i  have tried the r1995 and r2064 version of the mkgmap and both fail

this is the string i am useing to convert the files
java -Xmx500m -jar mkgmap.jar --route --gmapsupp --mapname=*.osm.pbf
the splitter worked well this time , did not crash .

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

Re: [mkgmap-dev] mkgmap and aster data

2011-11-01 Thread Jaromír Mikeš
 Od: Apollinaris Schoell ascho...@gmail.com

 I recommend the older version for performance reasons. the newer version has
 some improvements for polygons which are useless for contours and slow down 
 the
 conversion a lot.
 https://github.com/iandees/shp-to-osm

I am trying shp-to-osm-0.8.2-SNAPSHOT-jar-with-dependencies.jar , no older 
seems be available.

But having some weird problem here:
Caused by: java.lang.ClassNotFoundException: Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Main.  Program will exit.

Same with newer version :(

Tried things like:
$ java -cp .  shp-to-osm-0.8.2-SNAPSHOT-jar-with-dependencies.jar
$ java -classpath . ../shp-to-osm-0.8.2-SNAPSHOT-jar-with-dependencies.jar
$ java -classpath . 
/media/MIRES/Aster/shp-to-osm-0.8.2-SNAPSHOT-jar-with-dependencies.jar 

Seems to be java classpath problem (google).
Any idea how fix this?

regards

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