You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-02-08 23:20:55

imattuk
Member
Registered: 2014-10-18
Posts: 6

Parsing things other than a file using OSmosis

hi there,
I am currently reading xml in from a file and parsing it successfully using OSMosis.

The code given to do this all depends on this line:

RunnableSource reader = new XmlReader(file, false, compression);

Unfortunately, for what I want to do, saving XML to file is no longer an option. I have therefore use JDom to create a document object of the XML and would like to parse this.

Is there anyway to use OSMosis to parse a Document other than a file? How about a string? I am open to suggestions about any internal structure I can parse that doesn't involve saving a file to the system.

Thanks,
Matt

Offline

#2 2015-02-10 17:20:12

stephan75
Member
Registered: 2008-05-28
Posts: 2,918

Re: Parsing things other than a file using OSmosis

What about asking this on the Osmosis developers mailinglist? Maybe there are more experts ...

Offline

#3 2015-03-02 23:35:36

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,840
Website

Re: Parsing things other than a file using OSmosis

Has anything come out of this discussion? Have you contacted the Osmosis developers or found a different solution?


OSM in 3D: OSM2World

Offline

Board footer

Powered by FluxBB