<div dir="ltr"><div><div><div><div><div><div>Alright,<br>Thanks to some great feedback,
I've made some good progress on getting distortions to look better on a
sphere. It's not perfect yet, but getting close. Perhaps I just need to
do a little more research on different projections and more trial and
error. <br>
<br>Here's what I've done so far:<br><br></div>#Create mml file with Mollwide projection specifed in <Map>:<br><br><?xml version="1.0" encoding="utf-8"?><br><Map srs="+proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"><br>
<Stylesheet><![CDATA[<br> *<br> {<br> map-bgcolor: #69f;<br> }<br><br> #world-borders<br> {<br> /*line-width: 1;<br> line-color: #696;*/<br>
polygon-fill: #6f9;<br> }<br><br> #world-borders NAME<br> {<br> text-face-name: "DejaVu Sans Book";<br> text-size: 24;<br> text-fill: #000;<br> text-halo-fill: #9ff;<br>
text-halo-radius: 2;<br> text-placement: point;<br> text-wrap-width: 50;<br> text-avoid-edges: true;<br> }<br> <br> #world-outline<br> {<br> line-width: 10;<br>
line-color: #696;<br> }<br> ]]></Stylesheet><br>
<Layer id="world-outline" srs="+proj=merc +a=6378137 +b=6378137
+lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null
+wktext +no_defs +over"><br>
<Datasource><br> <Parameter name="type">shape</Parameter><br> <Parameter name="file">sample_data/world_merc.shp</Parameter><br> </Datasource><br>
</Layer><br> <Layer id="world-borders" srs="+proj=merc
+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0
+units=m +nadgrids=@null +wktext +no_defs +over"><br> <Datasource><br>
<Parameter name="type">shape</Parameter><br> <Parameter name="file">sample_data/world_merc.shp</Parameter><br> </Datasource><br> </Layer><br>
</Map><br><br></div>#create XML<br>cascadenik-compile.py shapeTest.mml shapeTest.xml<br><br></div>#create Mollwide projection:<br>nik2img.py shapeTest.xml shapeTest.tif -d 4096 2048 --bbox -180.0 -90.0 180.0 90.0<br>
<a href="http://www.flickr.com/photos/8139783@N08/9319568407/" target="_blank">http://www.flickr.com/photos/8139783@N08/9319568407/</a><br><br></div>#reproject as EPSG:4326<br>gdalwarp
-s_srs '+proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84
+units=m +no_defs' -t_srs EPSG:4326 -te -180.0 -90.0 180.0 90.0 -ts 4096
2048 -overwrite shapeTest.tif shapeTestOut.tif<br>
<a href="http://www.flickr.com/photos/8139783@N08/9319567933/in/photostream/" target="_blank">http://www.flickr.com/photos/8139783@N08/9319567933/in/photostream/</a><br><br></div>#3D render previews:<br><a href="http://www.flickr.com/photos/8139783@N08/9322359900/in/photostream/" target="_blank">http://www.flickr.com/photos/8139783@N08/9322359900/in/photostream/</a><br>
<a href="http://www.flickr.com/photos/8139783@N08/9322359828/in/photostream/" target="_blank">http://www.flickr.com/photos/8139783@N08/9322359828/in/photostream/</a> (lines and text a touch thicker near the poles, labels a touch skewed? - so close!)<br>
<br></div><div><b>Update as I write:</b><br></div><div>I can guess that the text is getting skewed due to the stretching from one projection to the other (more stretching towards the right and left edges). I imagine that I'll need to calculate and place text separately. Science On a Sphere allows text to be placed via an accompanying dataset text file as well. Also, if I make the map outlines, "inlines", things seem to stay less stretched near the poles.<br>
<a href="http://www.flickr.com/photos/8139783@N08/9323320848/">http://www.flickr.com/photos/8139783@N08/9323320848/</a> (lines may appear deceiving as I thinned them out a bit compared to above links)<br><br>Thanks again for the feedback. Any additional ideas are welcome as I research more.<br>
</div><div><br></div>Best regards,<br><br>Chris<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 2:12 AM, Martin Raifer <span dir="ltr"><<a href="mailto:tyr.asd@gmail.com" target="_blank">tyr.asd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Just a wild guess (didn't try), but what if you rendered your map in an equal area projection (e.g. Mollweide) and reprojected the resulting raster image - in a second step - to equirectangular (for example using GDAL)? That could result in something more towards your objective...<br>
<br>
Cheers,<br>
Martin<br>
<br></blockquote></div></div></div>