[OSM-talk] Beach directions

Dirk-Lüder Kreie osm-list at deelkar.net
Tue Oct 16 11:47:54 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rick Collins schrieb:
> At 01:28 PM 10/15/2007, OJW wrote:
>> On Sunday 14 October 2007 22:22:08 Matthias Julius wrote:
>>> I would like riverbanks to work the same way as coastlines. That is,
>>> everything to the right of it is water until the opposite riverbank.
>>
>> Talking of which...  has anyone considered marking which side is wet 
>> and which
>> side is dry on their beach polygons?
>>
>> Theoretically, the rendering should be some sort of gradient fading into the
>> ocean, but that doesn't work so well when the polygon doesn't have
>> a 'direction'.
> 
> 
> That is easy enough if you consider it to be a standard 
> default.  Assuming that the polygon encloses an area and the way has 
> a direction, apply the rule that the color will always be to the left 
> of the way direction.  So a counter clockwise loop will be filled 
> inside and a clockwise loop will be filled outside.  If you draw it 
> wrong, just flip the direction of the way forming the polygon.

I'd suggest to do it exactly the opposite: fill the *right* of the way,
i.e. treat it as enclosed clockwise.

But that doesn't answer the problem OJW wrote about, he wants an
*additional* direction from land to the sea side, but I have no idea how
to do this in a simple way. maybe make the beach a relation and have a
way for the seaside beach border and the land side beach border each.

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHFJbaFUbODdpRVDwRAlflAJ0SGfOoSFMgOVEeHCQKDbXy61W4igCgtvRf
DBWNQu+9nkqe3LH0iwvApME=
=fW6M
-----END PGP SIGNATURE-----




More information about the talk mailing list