Error with OSM2NDS

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error with OSM2NDS

maddes
Hi,
I've been trying to generate a networkdataset with OSM2NetworkDataset 1.1.1

I'm using:
Windows 7 x64
ArcMap 10.1 SP1 + Desktop Background Georocessing (64-bit)
Java 7 Update 11 64-bit
OSM2NetworkDataset 1.1.1 console
wuerzburg.osm  (about 57mb extracted via bounding box with osmconvert)

I've attached a screenshot of my problem.

Thanks in advance
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

peterseva
Hello!

Maybe your problem refers to this: http://osm2nds.forum.52north.org/Exception-Could-not-load-native-libraries-td4015661.html

Try to use Java for 32-bit.

Best wishes,
Eva
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

maddes
This post was updated on .
Hi,
thanks for your quick answer.

In the meantime I've managed to create a networkdataset with the help of Arcgis Editor for Openstreetmap.

But i've come back to figure out the problem.

So, I've already tried Java 6 32-Bit and Java 7 32-Bit before but with no luck. Then I realized that i also have to change my Java path because the old one was still there.
Although it doesn't work with my self extracted osm, it seems to work with another one. At the moment i'm trying to convert unterfranken.osm . I reduced the size with osmosis to 103Mb with
--tf accept-ways highway=* --tf reject-ways highway=pedestrian,track,bus_guideway,raceway,path,footway,cycleway,bridleway,steps,proposed,construction --used-node --write-xml file=
 but somehow it has stopped at 55%. There are also lot of turn restriction errors but this seems to be normal.

Is 103MB still to big? I'm running 8gb of ram.
I will definitely try some more osm files with your tool. The Arcgis Editor for Openstreetmap also has some bugs..
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

peterseva
Hey!

I've managed to generate your network based on 130121_142627_downloaded.osm. Unfortunately, the XML schema for OSM has changed. Osm2nds 1.1.1 uses the following schema:

https://svn.52north.org/svn/geoprocessing/main/osm2nds/trunk/data/osm_v_0_6.xsd

This old schema does not accept the attributes "copyright", "attribution", and "license" in the osm tag at the beginning of the OSM file. As a short time solution you should remove these attributes:

Original osm tag:

<osm version="0.6" generator="CGImap 0.0.2" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">

Changed osm tag:

<osm version="0.6" generator="CGImap 0.0.2">

I will adapt osm2nds, so it accepts this new XML schema.

Your other topic:
103 MB should not be too big. I have already generated bigger networks, e.g.:

Dresden (112 MB OSM file)
Nuremberg (247 MB OSM file)

Be patient and wait some more hours for your process to finish.

Best wishes!
Eva



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

hxpto
Hello Eva
I´m trying to convert a osm and I receive also this error:

2013-05-20 15:20:01 ERROR: org.n52.osm2nds.reader.ReaderException: The reading process of the file 'D:\Data\Port\download.osm' failed:
        The file 'D:\Data\Port\download.osm' could not be unmarshalled. Maybe the file isn't valid.
        javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/D:/Data/Port/download.osm; lineNumber: 2; columnNumber: 197; cvc-complex-type.3.2.2: Attribute 'copyright' is not allowed to appear in element 'osm'.] ReaderException: Therefore the process is canceled.

I edited the xml file but I cannot find any "copyrigth" or license word...
Can you help me about this?
Thank you very much
Congratulations for the excelent wotk
Filipe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

peterseva
Hello Filipe,

did you really search for 'copyright'? Or did you search for 'copyrigth'? Could you please provide this OSM file if you don't find this attribute? Then, I will have a look.

Best wishes,
Eva
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

hxpto
Eva, thanks for the reply.
 I'm using these files attached.
Thanks again for your help.
Regards
Filipe

Parameters_Motorcar_v1.1.xmlplanet_-7.89,40.609_-7.093,41.261.osm.xz

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

peterseva
Hello Filipe,

it totally works with your data. There aren't any error messages. Are you sure that you have used this OSM file?

Best wishes,
Eva
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

hxpto
Thank you Eva, with this file the process goes well. So the problem comes from the other file. The tool works very well.
Thank you again and congralutalions  for excelent tool.
Best regards
Filipe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error with OSM2NDS

peterseva
Hello Filipe,

I'm glad that your process works with this file.

And thanks for the congratulations.

Best wishes,
Eva
Loading...