<div dir="ltr"><div><div><div>Peter,<br></div>Thanks for the helpful info! It's much appreciated (and I just realized I posted to OSM list instead of mapnik, helpful anyway!).<br><br></div>I'll look deeper into post-render distortion. <br>
<br></div>Kind regards,<br><br>Chris<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 17, 2013 at 8:40 AM, Peter Körner <span dir="ltr"><<a href="mailto:osm-lists@mazdermind.de" target="_blank">osm-lists@mazdermind.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Am 17.07.2013 15:41, schrieb Christopher Stevens:<br>
<div class="im">> Hello gurus,<br>
> I'm thinking that I may need to find some alternative data visualization<br>
> software to make this work, but I love mapnik and thought it would be<br>
> good to start here first.<br>
</div>Mapnik is capable of rendering data in nearly any possible projection -<br>
and it can be done with osm-data, too.<br>
<br>
On <a href="http://polar.openstreetmap.de/" target="_blank">http://polar.openstreetmap.de/</a> we do a rendering in EPSG:3031<br>
Antarctic Polar Stereographic projection.<br>
<br>
Code and documentaztion can be found here:<br>
<a href="https://github.com/MaZderMind/mapnik-stylesheets-polar" target="_blank">https://github.com/MaZderMind/mapnik-stylesheets-polar</a><br>
<br>
However those projections are applied to the geometries *before*<br>
rendering out a planar, rectangular image.<br>
<div class="im"><br>
> I'm hoping to create a basic themed map of different types of data and<br>
> plot it on a full-Earth image (I can figure this part out, starter<br>
> examples cover this as well). The challenge is that I'm then projecting<br>
> this on Science On a Sphere<br>
</div>> <<a href="http://www.spacefoundation.org/visit/northrop-grumman-science-center-featuring-science-sphere/science-sphere%C2%AE" target="_blank">http://www.spacefoundation.org/visit/northrop-grumman-science-center-featuring-science-sphere/science-sphere%C2%AE</a>>,<br>

<div class="im">> which requires equirectangular images that distort more towards the<br>
> poles. Here's a quick example of something I made in a 3D program to<br>
> show latitude and longitude lines (note how the lines and labels get<br>
> fuzzy and stretched near the poles).<br>
><br>
> <a href="http://www.flickr.com/photos/8139783@N08/9305646391/" target="_blank">http://www.flickr.com/photos/8139783@N08/9305646391/</a><br>
</div>This however looks like an post-render distortion, so I'd guess you'd<br>
have to apply some filter to the rendered mapnik images.<br>
<div class="im"><br>
<br>
> Is there a way to add this type of distortion in mapnik? I'm guessing<br>
> not as mapnik is optimized for other uses (but who knows). I'm guessing<br>
> that it would "work" as is, but labels would get distorted (there are<br>
> work-arounds), and lines would get very thin near the poles.<br>
</div>I'd bet that it would be better to use sth. like graphicsmagick or a<br>
custom program with libpng to do the pixel-transformations after the<br>
rendering finished.<br>
<br>
Peter<br>
<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Christopher Stevens<br>303.929.7863 cell<br><a href="http://www.christopherstevens.cc">www.christopherstevens.cc</a>
</div>