<html><head><base href="x-msg://178/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Samuel,<div><br></div><div>It seems to me like rendering the actual pages would be easier (than actually rendering a large image, then chopping). This should also give better results because the scales of things like text and lines would look better.</div><div><br></div><div>So, the way I would approach this would be to determine the size and extents of each map for each page (ideally automatically). Then render each one with Mapnik. So, your ingredients would be a width and height in pixels, and bounding box for each page. Then write a python script to loop over every page and render a map using an OSM stylesheet.</div><div><br></div><div>If you don't have python scripts skills then we can think of alternatives, but that would be my first recommendation. Mike Migurski, also author of safety maps, has done this with Mapnik for printed bike maps of SF, so he could likely advise.</div><div><br><div><div>On Jun 6, 2011, at 3:03 PM, Mikel Maron wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Folks, what did we have in place to produce map books?<br><br></div></div></span></blockquote><div><br></div><div>Making mapbooks easier to script, via python, with Mapnik has long been a goal of mine. </div><div><br></div><div>But I've not really gotten past proof of concept. One usecase is making a map of every "feature" in a dataset that meets some criteria. I wrote a script a while ago that demonstrates how to do that with mapnik by querying all countries over a given population and them rendering a map for each, while painting a special outline over their border. Code is here: <a href="http://mapnik-utils.googlecode.com/svn/example_code/map_sequences/">http://mapnik-utils.googlecode.com/svn/example_code/map_sequences/</a> and an animated gif to demonstrate what is done is here:</div><div><br></div><div><a href="http://dbsgeo.com/tmp/mapnik_animated.gif">http://dbsgeo.com/tmp/mapnik_animated.gif</a></div><br><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Can Mapsomatic easily be modified for different formats/scales?<br></div></div></blockquote><div><br></div>It can be done but I've found that hacking around in MapOsMatic requires a lot of patience and pretty high python/cairo skill level.</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br><span><a target="_blank" href="http://www.safety-maps.org/">http://www.safety-maps.org/</a><span class="Apple-converted-space"> </span>was a recent project to do something similar. I know the developers would be interested to hear more ideas how to make it useful.</span><br></div></div></span></blockquote><div><br></div>safety-maps are awesome.</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> </div>== Mikel Maron ==<br>+14152835207 @mikel s:mikelmaron<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, helvetica, sans-serif; font-size: 10pt; "><font size="2" face="Tahoma">----- Forwarded Message ----<br><b><span style="font-weight: bold; ">From:</span></b><span class="Apple-converted-space"> </span>Richard Weait <<a href="mailto:richard@weait.com">richard@weait.com</a>><br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space"> </span>Samuel Mandell <<a href="mailto:shmandell@gmail.com">shmandell@gmail.com</a>><br><b><span style="font-weight: bold; ">Cc:</span></b><span class="Apple-converted-space"> </span><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space"> </span>Mon, June 6, 2011 4:16:08 PM<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [OSM-talk] Disaster Preparedness Project<br></font><br>On Fri, Jun 3, 2011 at 8:12 PM, Samuel Mandell <<a ymailto="mailto:shmandell@gmail.com" href="mailto:shmandell@gmail.com">shmandell@gmail.com</a>> wrote:<br>> I'm designing a project whose goal is to prepare folks in my community for<br>> disasters. An essential part of any disaster kit are maps of the local area<br>> so that when electricity has gone out people can still navigate to specific<br>> areas of the city (for instance to get supplies or medical help).<br>> OpenStreetMap has comprehensive map data for my area (the San Francisco Bay<br>> Area) and I'd like to use the mapping data to create maps for the various<br>> cities to hand-out to residents. Since I'd need detailed (1:4800) of an<br>> entire city I haven't been able to use the export tool since it seems to<br>> have some built in limits to how large of an image it will generate (which<br>> makes sense). For Mountain View, CA the image size we'd want to generate is<br>> around 9409 x 11310 with a 1:4800 scale, in other words, very large. We<br>> would then cut this into smaller squares and print it out in a booklet with<br>> attribution to OpenStreetMap for the data and visuals.<br>> What's the best way for us to generate these detailed maps of the various<br>> cities?<br><br>Well that sounds awesome.<br><br>You might try downloading an extract of OSM data for that area.  You<br>should be able to find an extract that deals with California, or the<br>US West.  That way you don't have to deal with an entire planet full<br>of data.  Then use Mapnik or one of the other rendering tools to<br>generate your map.  You'll likely want to adjust the style sheet to<br>make it just right for emergency awareness.<br><br>There is a company in SF area experienced in printing high resolution<br>maps from OSM data. Perhaps they'll do it for you for free since it is<br>such a worthy project?<br><br>_______________________________________________<br>talk mailing list<br><a ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><span><a target="_blank" href="http://lists.openstreetmap.org/listinfo/talk">http://lists.openstreetmap.org/listinfo/talk</a></span><br></div></div></div>_______________________________________________<br>HOT mailing list<br><a href="mailto:HOT@openstreetmap.org">HOT@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/hot">http://lists.openstreetmap.org/listinfo/hot</a><br></div></span></blockquote></div><br></div></body></html>