Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Support for multiple bbox in planetosm-excerpt-area.pl #565

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

Support for multiple bbox in planetosm-excerpt-area.pl #565

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: lambertus
[Submitted to the original trac issue database at 9.09am, Thursday, 18th October 2007]

For creating Garmin maps with Mkgmap the bounding box should be fairly small (e.g. smaller then 0.5 degrees), otherwise the resulting image is too large. To output multiple bounding boxes the script needs to iterate through the entire planet file for every bounding box.

The example above can be significantly enhanced when the script allows multiple bounding boxes and output files to be defined. It then needs to iterate only once through the planet file, outputting the corresponding data for all supplied bounding boxes. This should speedup the process a great deal, almost by 1/n I think. This function would also be useful for other tasks, not just Garmin map making.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 9.38am, Friday, 19th October 2007]

I think this script is yours Nick?

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 9.40am, Friday, 19th October 2007]

Lambertus - there is also an extract-polygon.pl in svn that may be of more use to you as it can deal with non-rectangular polygons? I believe osmosis can also do the same, so that may be of use?

@openstreetmap-trac
Copy link
Author

Author: lambertus
[Added to the original trac issue at 10.36am, Friday, 19th October 2007]

Replying to [comment:2 tom[at]compton.nu]:

Lambertus - there is also an extract-polygon.pl in svn that may be of more use to you as it can deal with non-rectangular polygons? I believe osmosis can also do the same, so that may be of use?
Thanks for looking at it Tom but I'm afraid you missed the point. It is not about the shape of the excerpts, but the need for an number (> 10) of (rectangular) excerpts being written to different files (bbox 1 -> 1.osm, bbox2 -> 2.osm etc.).

Currently, the entire planet needs to be processed for every excerpt. I think this process could be significantly faster when the planet could be processed only once while outputting the data to different files for each of the multiple excerpts. Hence the request for multiple bounding boxes.

Fortunately this functionality appears to be possible when using the planetosm-excerpt-polygon.pl script. This ticket can therefore be closed. Thank you.

@openstreetmap-trac
Copy link
Author

Author: crschmidt
[Added to the original trac issue at 6.01pm, Saturday, 26th April 2008]

Closing, per Lambertus. Also, I believe that osmosis also has this functionality now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant