[Talk-ca] Canvec.osm samples
Sam Vekemans
acrosscanadatrails at gmail.com
Sat May 1 03:02:27 BST 2010
Ideas:
-mention this on the irc #osm-dev chat. As a JOSM develepor might be
able to help further
-zipping : try .bz2 compression, instead of regular zip, maybe it does
something different to the .osm data?
-at that same time (with that new josm revision, WMS didnt work for some people)
-josm doesnt automatically update all the plugins, when you get a new
version of the main exe file,
-Osmosis is the tool to combine .osm files, i havent yet been
sucessful at merging them (on the command line)
-each node would need a new ID, when merging files, maybe there is a
max # of features?
-Also, i'll check with user:MikeyCarter as he has gone ahead and
converted canvec for the Barrie Ontario area, using a customized
method.
Cheers,
Sam
On 4/30/10, Adam Dunn <dunnadam at gmail.com> wrote:
> If I understand correctly, older versions of JOSM would open the file
> correctly, but new versions will have problems? I'm not the only one here?
>
> I got the josm svn from this morning (rev 3213), opened it up in Eclipse,
> did some debugging, and see that for 082H04_Sample.osm, the error occurs on
> or near line 16217. It may not be Josm that is at fault, since it seems to
> handle most other osm files quite well.
>
> Please see http://josm.openstreetmap.de/ticket/4971 for the bug that I just
> filed.
>
> Adam
>
> On Fri, Apr 30, 2010 at 10:04 AM, Daniel Bégin <jfd553 at hotmail.com> wrote:
>
>> Hi Adam,
>>
>> I looked at Canvec.osm sample files about one month ago and did not get
>> any
>> problems with an earlier version of JOSM (before 3196). I've just tried
>> using JOSM 3196 and I got the same error message. I'm running on Windows.
>>
>> No good explanation to give :-(
>>
>> Daniel
>>
>> -----Original Message-----
>> From: Adam Dunn [mailto:dunnadam at gmail.com]
>> Sent: April 29, 2010 12:46
>> To: Sam Vekemans
>> Cc: Daniel Bégin; Talk-CA OpenStreetMap
>> Subject: Re: [Talk-ca] Canvec.osm samples
>>
>> I'm getting NullPointerException in JOSM for all three files, and making
>> sure the line feeds are unix (since I'm on linux) doesn't help. This is
>> with
>> JOSM 3208.
>>
>> Open file: /home/adam/Desktop/021L14_sample.osm (2796211 bytes)
>> org.openstreetmap.josm.io.IllegalDataException:
>> java.lang.NullPointerException
>> at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:586)
>> at
>> org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:42)
>> at
>> org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:34)
>> at
>>
>> org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImport
>> er.java:57)
>> at
>>
>> org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFi
>> leAction.java:263)
>> at
>>
>> org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileA
>> ction.java:242)
>> at
>>
>> org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.j
>> ava:83)
>> at
>>
>> org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:12
>> 9)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>> ...... more stack that goes into java api libraries
>> Caused by: java.lang.NullPointerException
>> at
>> org.openstreetmap.josm.data.osm.Storage$1.getHashCode(Storage.java:317)
>> at org.openstreetmap.josm.data.osm.Storage.getBucket(Storage.java:246)
>> at org.openstreetmap.josm.data.osm.Storage.get(Storage.java:196)
>> at
>> org.openstreetmap.josm.io.OsmReader$Parser.intern(OsmReader.java:126)
>> at
>> org.openstreetmap.josm.io.OsmReader$Parser.startElement(OsmReader.java:273)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab
>> stractSAXParser.java:501)
>> .... goes further into xerces
>>
>> I don't know if the stacktrace helps, or if anyone else is having problems
>> with these files. Other .osm files open up fine on my system. I could
>> submit
>> this as a bug report to Josm with the sample file, but wanted to check if
>> anyone else is having problems as well.
>>
>> Adam
>>
>>
>> On Thu, Apr 1, 2010 at 11:05 PM, Sam Vekemans <
>> acrosscanadatrails at gmail.com>
>> wrote:
>>
>>
>> Thanks,
>> But its oodles of people who help with the process.
>>
>> Speaking of which, i'll have the complete Ibycus 3.0 Garmin
>> MapSource
>> IMG files available for download as single (grouped) .zip files
>> available soon.
>> It will still be at least a year before we get our map to that
>> level.
>>
>> Sam
>>
>>
>> <snip>
>> For those who are interesting to have a look at sample datasets,
>> you
>> can download them from
>>
>> OSM wiki http://wiki.openstreetmap.org/wiki/CanVec#Sample_Datasets
>> <http://wiki.openstreetmap.org/wiki/CanVec#Sample_Datasets>
>> NRCan ftp://ftp2.cits.rncan.gc.ca/osm/pub
>>
>> Have fun (I hope!-)
>>
>> Daniel
>>
>>
>> _______________________________________________
>> Talk-ca mailing list
>> Talk-ca at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-ca
>>
>>
>>
>>
>>
>
--
Twitter: @Acrosscanada
Blogs: http://acrosscanadatrails.posterous.com/
http://Acrosscanadatrails.blogspot.com
Facebook: http://www.facebook.com/sam.vekemans
Skype: samvekemans
OpenStreetMap IRC: http://irc.openstreetmap.org
@Acrosscanadatrails
More information about the Talk-ca
mailing list