[OSM-dev] [Mapnik-devel] reliefs madness

Artem Pavlenko artem.mapnik at googlemail.com
Wed Jan 9 10:14:15 GMT 2008


On 9 Jan 2008, at 09:58, Jochen Topf wrote:

> On Wed, Jan 09, 2008 at 09:26:34AM +0000, Artem Pavlenko wrote:
>> http://mapnik.org/maps/srtm_relief/
>
> Wow! That looks great.
>
>> I'm aware of voids and 'below sea level' areas (TODO) and I'm looking
>> for the best solution. Ideas welcome!
>
> I think areas below sea level should just get the darkest green. In  
> most
> cases it is probably not necessary to distinguish the details.

Yes, I'll try that.
>
> Void areas might be handled by painting them in a unqiue color and  
> then
> finding in the produced image all pixels with that unique color and  
> just
> taking the average of all pixels around them (that are not themselves
> void). Something like that anyway. That might not be the most accurate
> algorithm, but at least for low zoom levels it should be ok.

I think simple averaging should work well enough for the purpose  -  
we're only making a 2D maps at the moment :).
I was looking at GMap 'terrain' layer and it looks really rough in  
some areas, too:

http://maps.google.com/? 
ie=UTF8&ll=50.666981,-1.57156&spn=0.013029,0.026908&t=p&z=15&om=1


Cheers,
Artem
>
> Jochen
> -- 
> Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/   
> +49-721-388298
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080109/a6a8ce71/attachment.html>


More information about the dev mailing list