[josm-dev] Handling large files?
Michael Speth
conzar at gmail.com
Mon Nov 24 20:30:40 GMT 2008
>
> If you must use Java,
> don't use the built-in JOSM parsers, use the libosm that comes with
> Osmosis and Traveling Salesman.
So I would like to use DB4O (An object oriented DB that can be embedded).
The DataSet dataSet that was returned from the parser can simply be added to
DB4O by the following call assuming that the db object is already
initialized.
db.set(dataSet);
db.commit();
Easy huh? So are you suggesting that JOSM cannot do what I require? If
not, then the libosm would have parsers that are similar to JOSM?
Thanks
2008/11/24 Frederik Ramm <frederik at remote.org>
> Hi,
>
> > So should I be using a different parser for large files? Does OSM handle
> > large files? My end goal is to be able to search through OSM data to
> find a
> > road based on the GPS coordinates. Is there a better way of doing that?
> I
> > was thinking about putting this information in an embedded database like
> > DB4O.
>
> If you have the chance of using a GIS database like PostGIS then simply
> import the file using osm2pgsql and make an SQL query that gives you all
> ways near a given position. No Java involved. If you must use Java,
> don't use the built-in JOSM parsers, use the libosm that comes with
> Osmosis and Traveling Salesman.
>
> Bye
> Frederik
>
> --
> Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
>
--
Michael Speth 石雨濛
Computer Engineer
OPNET
http://www.opnet.com
More information about the josm-dev
mailing list