[Routing] Binary file format
Marcus Wolschon
Marcus at Wolschon.biz
Mon Dec 10 21:48:52 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Adrian,
Adrian Stabiszewski schrieb:
> But this is not my point. The idea here is to create a binary file format
> for the OSM data that would work like the tiles. Where you can jump in at
> any location you want and then start moving... Because this is like
> navigation should be working. At least I think so.
question:
How would you go about zooming out?
What would be the requirements to allow zooming out until
you know where in a complete country or continent you are?
I found this to be quite a problem with interactive rendering.
(One small part of the screen may show Berlin with thousands of roads.)
We would need a way to allow for level-of-details without storing things
twice and without loading large numbers of tiles into memory just so we
can get one way or node out of each one.
How would you go about ways that span tiles? Ways and areas that
intesect tiles without having any node inside the tile?
> Besides this you also need a list with locations and street names. I'm
> working here on tree based binary file.
I found that normalizing the names and keeping a small
database that matches them with the object-type, id and
tile-number works pretty well. For addresses I can simply
look for the city/zip-area and then find all ways in that
area with matching names and then look at house-numbers
(if known).
>> Do you have some repeatable test-case that I can investigate?
>
> Try navigating from Gundelsheim, Hebelstraße to Gundelsheim
> Heilbronnerstraße. I get here something like:
>
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: no
> way found for id 12337829!
> at
> org.openstreetmap.osm.data.searching.WayReferencePlace.getResult(WayReferenc
> ePlace.java:64)
It looks like you are simply missing the map of that area.
If you choose the Web-Service to find addresses
you can find places that are not in the parts of the
map that you downloaded. Try using the SimplePaintVisitor
or ODRpainter as a map-renderer. They show you the ways
you have in your local map. Simply pressing
"Download visible area" should do the trick.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHXbRDf1hPnk3Z0cQRAmCxAJ9TpdyFG7mU43qeURDUGjQeV8PbJQCgtNIY
jqqs0yvdZedfWS7A/1Ho7sM=
=UJ1j
-----END PGP SIGNATURE-----
More information about the Routing
mailing list