Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Johan Huysmans
Hi, Currently i'm working with the bbox of Belgium, but this bbox includes parts of the Netherlands, France,.. And this gives me some problems... it appears that some places in Belgium also exists in the Netherlands or France. Apparently it is only possible to use bbox-es to limit the size.

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Skywave
Download from here, it uses a polygon instead of a bbox. http://download.geofabrik.de/osm/europe/ On Fri, Apr 18, 2008 at 10:04 AM, Johan Huysmans [EMAIL PROTECTED] wrote: Hi, Currently i'm working with the bbox of Belgium, but this bbox includes parts of the Netherlands, France,.. And

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Rob
i would be cool if the osmxapi could accept a href to a polygon xml file reference instead of a bbox. We can put a list of country/province/city/... polygons somewhere on a site 2008/4/18, Johan Huysmans [EMAIL PROTECTED]: And a combination of both? Does that exists. Now my php script just

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Johan Huysmans
That's exactly what i mean/want :D That way you can call the osmxapi url with [polygon=belgium] or [polygon:country=belgium] What do the osmxapi developers think about it? Greetings Johan Rob wrote: i would be cool if the osmxapi could accept a href to a polygon xml file reference instead

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread 80n
On Fri, Apr 18, 2008 at 3:14 PM, Johan Huysmans [EMAIL PROTECTED] wrote: That's exactly what i mean/want :D That way you can call the osmxapi url with [polygon=belgium] or [polygon:country=belgium] What do the osmxapi developers think about it? It's a nice idea. I just need to implement

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Frederik Ramm
Hi, That way you can call the osmxapi url with [polygon=belgium] or [polygon:country=belgium] What do the osmxapi developers think about it? It's a nice idea. I just need to implement the algorithm described earlier in this thread :) Not only do you need to implement the algorithm, you

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread Andy Allan
On Fri, Apr 18, 2008 at 4:56 PM, Frederik Ramm [EMAIL PROTECTED] wrote: (An obvious optimization is to compute the largest rectangle contained in, and the largest rectangle containing, the polygon. First check if point is outside the outer bbox - if yes, you're done. Then check if point

Re: [OSM-talk] osmxapi/bbox question

2008-04-18 Thread 80n
On Fri, Apr 18, 2008 at 4:56 PM, Frederik Ramm [EMAIL PROTECTED] wrote: Hi, That way you can call the osmxapi url with [polygon=belgium] or [polygon:country=belgium] What do the osmxapi developers think about it? It's a nice idea. I just need to implement the algorithm

Re: [OSM-talk] osmxapi/bbox question

2008-04-12 Thread Igor Brejc
Karl Newman wrote: On Fri, Apr 11, 2008 at 5:47 AM, 80n [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can have any shaped bbox you like as long as it is a rectangle ;) Can anyone point me to a good algorithm for selecting points within an arbitrary polygon? 80n

Re: [OSM-talk] osmxapi/bbox question

2008-04-11 Thread Karl Newman
On Fri, Apr 11, 2008 at 5:47 AM, 80n [EMAIL PROTECTED] wrote: You can have any shaped bbox you like as long as it is a rectangle ;) Can anyone point me to a good algorithm for selecting points within an arbitrary polygon? 80n I don't have it in pseudocode, but one I've heard of casts a