[josm-dev] Handling large files?
Frederik Ramm
frederik at remote.org
Mon Nov 24 18:49:25 GMT 2008
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"
More information about the josm-dev
mailing list