[Tilesathome] Rendering for print, was Re: [OSM-talk] Promoting/demoting items
D Tucny
d at tucny.com
Mon Dec 10 05:58:34 GMT 2007
On 10/12/2007, Kim Hawtin <kim.hawtin at adelaide.edu.au> wrote:
>
> D Tucny wrote:
> > That said, that's not something that's going to come
> > in the very near future, so, perhaps an even better idea for your
> purposes
> > would be to render the area yourself with as much details as you want at
> > whatever scale you want, it's not that difficult to do, then you could
> have
> > it printed, have the image hosted somewhere etc.
>
> Just how would one go about rendering off an area and stitching it up to
> print off?
For an area that's not too big, e.g. a reasonable size city, the easiest way
would be to get the data as an OSM file, either from the API, e.g. using
josm then saving the osm file, or extracted from the planet file using one
of tools that will extract data within a bounding box... next step would be
to set up osmarender, see
http://wiki.openstreetmap.org/index.php/Osmarenderit's not too
difficult, even on Windows... you then run it against your osm
file and it'll make an svg file... I'd typically run it like this...
c:\xml\xml tr osmarender.xsl rules/osm-map-features-z17.xml >map.svg
perl lines2curves.pl map.svg >curvymap.svg
The first line runs the transformation using osmarender's xsl and the
template for zoom 17, i.e. maximum detail, you might not want this, so you
could use the other zoom level templates
The second bit is running the lines2curves script to make curves curvy
rather than angled, if you don't want that, you don't need to do it...
Once you have the svg file, you can just open it in Inkscape and export as
whatever image format you want, or print...
For significantly larger areas, the use of osmxapi to get filtered data
might be more useful, but, depending on size of the area and, more
importantly, the amount of data, you may have trouble rendering it. There
are number of ways to proceed, but all somewhat trickier to achieve than
I'm aiming to print off a map for a miniconf I am working on, so that all
> the groups can lay up where they are from, etc ...
>
> Also we're looking at mapping out the area around the the conference and
> making making a video playback of the gps trails of folks tavels... I've
> seen some up on youtube, any ideas about how that is done?
http://wiki.openstreetmap.org/index.php/Party_render has some examples of
rendering the tracks, I'm sure there are other tools too, check out the wiki
anyway...
Hope this helps...
d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20071210/bcce9b9f/attachment.html>
More information about the Tilesathome
mailing list