[OSM-talk] [Fwd: Re: zones for motorway/in town/outof town?]

Guenther Meyer d.s.e at sordidmusic.com
Thu May 21 08:02:39 BST 2009


Am Thursday 21 May 2009 schrieb Radomir Cernoch:
> Guenther Meyer píše v Čt 21. 05. 2009 v 00:49 +0200:
> > Am Wednesday 20 May 2009 schrieb Radomir Cernoch:
> > ...but you would need some kind of gis database/functions to evaluate the
> > polygon data.
> > the easy way of reading just keys and values like with most of the other
> > features in the osm database would not be possible.
>
> I have read somewhere (a few weeks ago) that querying whether "a point
> lies in a country" can be done quickly. I was assuming that the same
> should be possible for any polygon. However I am not aware of technical
> details.
>
yes - if you can make use of a database with geospatial extension like 
postgis. there you have functions to find out easily if a point or a line 
(which streets are) lies inside a given polygon.
I you don't have those functions, I don't know if this is possible.
It may be, but this would be a very complex thing...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20090521/0c121e49/attachment.pgp>


More information about the talk mailing list