Repository navigation
Replies: 9 comments 29 replies
|
The way maps are filled depends on the map creation process:
The map bounding box is available via |
|
Maybe I didn't explain my question well enough - for example the map (openandromaps) for Brandenburg has the following coverage: The map bounding box is available via Now I wonder whether this kind of polyline information is somewhere part of the map (... or could be part in the future). |
@mg4gh Something about this was taken care of in #1582, please examine the discussion and the code there, especially the
|
|
I would suggest that you first try using a boundary polygon in non trivial
cases. The reason this was implemented that way was that there was no good
way to perform these computations on device back then. The dedupe operation
turned out to be faster because of the cost of drawing.
The other problem is that osm data does not conveniently stop a polygon
boundaries, take a forest for example. You might get the forest polygon but
not some paths inside the forest.
Breaking the mapfile format is a really bad idea to save a few
milliseconds.
mg4gh ***@***.***> schrieb am So. 5. Jan. 2025 um 06:53:
… Bottom line I think it is worth to talk about the boundary polygon. Do you
see a chance to add this information without a change of the map format?
—
Reply to this email directly, view it on GitHub
<#1608 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJEYONQNE3GNKP7SZCU4IT2JBQ7RAVCNFSM6AAAAABUQQAT3SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZTGYYTANI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
I had optimized DEDUPLICATE with: We could probably improve it more. |
|
If someone wants to tackle this and do some benchmarking, here is a suggestion for a (possibly notable) performance improvement for
This way we avoid computing a detailed hash code for each and every element, even though most of them won't be duplicates. |
|
#1608 (comment) --> This appears to be a worthwhile effort. @mg4gh @devemux86 @ludwigb
Android wasn't tested, but the results could be even better there, given that mobile devices have weaker GPUs. Not sure, though, maybe someone could do some testing on Android after we release the code.* The results using just one map (so no duplicates) are comparable between two methods; slower performance of DEDUPLICATE is practically imperceptible. This is not that surprising when you think about it, since deduplicate sorts and iterates over a list of size on the order of 10'000, using the return-fast (for non-duplicates) This makes the *@devemux86 Maybe it would be good to make a separate branch for this improvement, to facilitate testing? |





Uh oh!
There was an error while loading. Please reload this page.
Mapsforge maps have a bounding box. But most maps do not fill this bounding box completely, rather a polygon inside of this bounding box is really filled. Osmosis seems to have a parameter
--bounding-polygonfor this. Is this polygon information somewhere stored in the mapsforge map file ... and somehow accessible?All reactions