[mkgmap-dev] java.lang.NullPointerException

2010-09-26 Thread frmas
Hello,
I have a script that runs the creation of my map every sunday morning.
Today, I got the following error on exactly the same osm data than last
week.

java.lang.NullPointerException
at
uk.me.parabola.mkgmap.osmstyle.StyledConverter.setBoundingBox(StyledConverter.java:399)
at
uk.me.parabola.mkgmap.reader.osm.ElementSaver.convert(ElementSaver.java:219)
at
uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:77)
at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:149)
at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:220)
at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:217)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Exiting - if you want to carry on regardless, use the --keep-going option

The options used :
  OPTIONS_MKGMAP_PERSO="  \
  -Xmx896M\
  -jar $FILEDIR/mkgmap.jar\
  --draw-priority=20  \
  --family-id=444 \
  --latin1\
  --location-autofill=1   \
  --mapname=""\
  --remove-short-arcs \
  --route \
  --style-file=$FILEDIR/styles/perso  \
  --transparent   \
 "
I tried on another computer, but got the same pb. Francois
-- 
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap-dev Digest, Vol 26, Issue 35 / 'Not Near Any Road' Error Message

2010-09-26 Thread Mr Thwibble
Thanks people!

I repulled the data from OSM - just in case and then reordered the command 
options as suggested.

That resulted in a .img three times larger than I was previously using and now 
for the most part route calculation has sprang back into life.

Awesome, thanks for the help!  I'd never have thought of doing that!

 
Thwib & Leighton
{"It's not what you do - it's how you do it; be anything you want to be,
{"It's not what you've got - it's how you use it;
{"You be you and I'll be me - it's just a matter of styyyle
.[ICQ - 37469181; Yahoo! - mr_thwibble; AOL - Mr Thwibble].





From: "mkgmap-dev-requ...@lists.mkgmap.org.uk" 

To: mkgmap-dev@lists.mkgmap.org.uk
Sent: Sun, September 26, 2010 5:00:01 AM
Subject: mkgmap-dev Digest, Vol 26, Issue 35

Note: Forwarded message is attached.

Send mkgmap-dev mailing list submissions to
mkgmap-dev@lists.mkgmap.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
or, via email, send a message with subject or body 'help' to
mkgmap-dev-requ...@lists.mkgmap.org.uk

You can reach the person managing the list at
mkgmap-dev-ow...@lists.mkgmap.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mkgmap-dev digest..."
Today's Topics:

   1. 'Not Near Any Road' Error Message (Mr Thwibble)
   2. Re: 'Not Near Any Road' Error Message (Marko M?kel?)
   3. 'Route Calculation Error: No Roads Near Starting Point'
  (Mr Thwibble)
   4. Re: 'Not Near Any Road' Error Message (Felix Hartmann)
   5. Re: 'Not Near Any Road' Error Message (Ralf Kleineisel)
___
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] Trouble getting some multipolygons to render inmkgmap

2010-09-26 Thread Torsten Leistikow
WanMil schrieb am 24.09.2010 19:29:
>> My understanding of the multipolygons is, that the tags may EITHER be
>> in the
>> relation OR on the outer polygons. So the outerpoylgons are only to be
>> used,
>> when there are no tags on the relation.
>> If the relation itself is tagged and there is a tag on the
>> outerpolygons, this
>> does logical mean, that the outerpolygon tags apply to the complete area
>> including the inner-area.
> 
> You càn check yourself if it's now the time to remove this polygon list.
> I have attached a patch that follows your proposal. Just test it and let
> us know.

I tried your patch today, and I think it looks quite promising. Implementing
such a strict scheme will certainly show some faulty multipolygon (e.g.
Aussenalster in Hamburg), but perhaps this will encourage a cleaner tagging of
such relations.

I think the patch has still one problem: If the tags of the outerpolygon are not
used for the multipolygon area, they must still be used as a stand-alone 
polygon.

As an example take a nature reserve consisting of a wood with a lake inside.
This migth be mapped with two polygons and a relation:
polygon A: leisure=nature_reserve (the complete area)
polygon B: natural=water (only the inner area)
multipolygon relation: natural=wood and outer=polygon A and inner=polygon B
(only the surrounding area)

Right now polygon A seems to be missing in the resulting map.

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


Re: [mkgmap-dev] line features are converted to a closed way

2010-09-26 Thread Torsten Leistikow
WanMil schrieb am 20.09.2010 20:44:
> Attached patch performs only the line styles on unclosed ways (the patch
> is untested!!).

I tried your patch and I didn't notice any unwanted side effects.

Since this is quite a change from the previous behaviour, perhaps it would be a
good idea to control this via a command line parameter.

Another idea would be, to control this seperately for each line in the style
file. But from my point of view this is not neccessary, since all non closed
area polygons are a mapping error and should be corrected in the data base.

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


[mkgmap-dev] Commit: r1707: Fix NPE when no explicit bounding box was given.

2010-09-26 Thread svn commit

Version 1707 was commited by steve on 2010-09-26 21:23:54 +0100 (Sun, 26 Sep 
2010) 

Fix NPE when no explicit bounding box was given.

Gave an error like this:
java.lang.NullPointerException
at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.setBoundingBox(StyledConverter.java:399)

Also make sure that if the input file is completely empty, then we have an 
empty bounding box.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] java.lang.NullPointerException

2010-09-26 Thread Steve Ratcliffe

Hi

> I have a script that runs the creation of my map every sunday morning.
> Today, I got the following error on exactly the same osm data than last
> week.
>
> java.lang.NullPointerException
>   at 
> uk.me.parabola.mkgmap.osmstyle.StyledConverter.setBoundingBox(StyledConverter.java:399)

Thanks for reporting this.  It should be fixed now.

It only happened for osm files that do not contain a bounding box.

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


Re: [mkgmap-dev] [mkgmap-svn] Commit: r1707: Fix NPE when no explicit bounding box was given.

2010-09-26 Thread Greg Troxel

I'm seeing comits to what I think is the same mkgmap svn with different
version numbers.  So am I just missing something obvious, or is there
something unusual going on, or ??

  Version 1707 was commited by steve on 2010-09-26 21:23:54 +0100 (Sun, 26 Sep 
2010) 
  Version 230 was commited by steve on 2010-09-26 21:47:16 +0100 (Sun, 26 Sep 
2010) 


pgpIkxDdrsPGE.pgp
Description: PGP signature
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] [mkgmap-svn] Commit: r1707: Fix NPE when no explicit bounding box was given.

2010-09-26 Thread Jeffrey C. Ollie
On Sun, Sep 26, 2010 at 4:58 PM, Greg Troxel  wrote:

>
> I'm seeing comits to what I think is the same mkgmap svn with different
> version numbers.  So am I just missing something obvious, or is there
> something unusual going on, or ??
>
>  Version 1707 was commited by steve on 2010-09-26 21:23:54 +0100 (Sun, 26
> Sep 2010)
>   Version 230 was commited by steve on 2010-09-26 21:47:16 +0100 (Sun, 26
> Sep 2010)
>

Are there more SVN repos on svn.parabola.me.uk than mkgmap and the
splitter?  The splitter looks like it's on rev 161 as I type this so I don't
think it's that.

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

Re: [mkgmap-dev] java.lang.NullPointerException

2010-09-26 Thread frmas
Le 26/09/2010 22:41, Steve Ratcliffe a écrit :
>> java.lang.NullPointerException
>>  at 
>> uk.me.parabola.mkgmap.osmstyle.StyledConverter.setBoundingBox(StyledConverter.java:399)
> 
> Thanks for reporting this.  It should be fixed now.
> 
> It only happened for osm files that do not contain a bounding box.

Thank you Steve. Works fine now. Francois
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev