Opened 12 years ago

Closed 11 years ago

#565 closed enhancement (fixed)

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

Reported by: lambertus Owned by: nick@…
Priority: minor Milestone:
Component: utils Version:
Keywords: Cc:

Description

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.

Change History (4)

comment:1 Changed 12 years ago by Tom Hughes

Component: adminutils
Owner: changed from Tom Hughes to nick@…

I think this script is yours Nick?

comment:2 Changed 12 years ago by Tom Hughes

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?

comment:3 in reply to:  2 Changed 12 years ago by lambertus

Replying to tom@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.

comment:4 Changed 11 years ago by crschmidt

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.