Re: [OSM-dev] Taginfo embedment in Wiki is disallowed

2013-01-20 Thread Jochen Topf
On Mon, Jan 21, 2013 at 12:04:19AM +0100, Holger Jeromin wrote:
> i just noticed (easy with the opera browser), that Taginfo
> does not allow display in an IFRAME.
> This is a problem in all wikipages like
> http://wiki.openstreetmap.org/wiki/Key:amenity
> 
> The problem is the http header:
> X-Frame-Options: SAMEORIGIN
> 
> According to
> https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
> the keyword ALLOW-FROM is not supported in many browsers.

Thanks. Fixed now.

I hate it when you upgrade a library and suddenly your site stops working
because the library thinks it must "protect" you from the evils of the
Internet.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] area filtering on change streams?

2013-01-20 Thread Frederik Ramm

Hi,

On 01/21/13 07:54, Brian Cavagnolo wrote:

I'm kinda hooked on the appeal of only working with the changeset.  I
poked around the osmosis source and learned a bit about the change
format.  It looks like changes could be filtered using the same code
used for the polygon and bounding box filters.  Does this sound
intuitively correct?


No.

The fact that changesets cannot be filtered by region is not a software 
limitation, it is a design limitation.


Changes can occur in nodes, ways, or relations; but only nodes have a 
geometry given in the .osc file. For example, an .osc file might contain 
the information "way #17 has been changed from highway=residential to 
highway=unclassified" but you won't know if that is relevant to you 
because the nodes of that way are not included in the changeset (unless 
by chance they have been modified at the same time).


If you really want to pursue this further, read up on "augmented diffs" 
which are reference-complete and would therefore allow such filtering: 
http://wiki.openstreetmap.org/wiki/Overpass_API/Augmented_Diffs


Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] area filtering on change streams?

2013-01-20 Thread Brian Cavagnolo
On Sun, Jan 20, 2013 at 10:00 AM, Frederik Ramm  wrote:
> Hi,
>
>
> On 20.01.2013 18:49, Stephan Knauss wrote:
>>>
>>> I'd like to maintain an updatable database of OSM data clipped by a
>>> polygon.  I understand how to initialize the database using osmosis'
>>> --bounding-polygon task.  But this task does not seem to operate on a
>>> change stream.  Any recommendations on trimming a change set down?
>>
>>
>> As you already noticed only nodes have a coordinate and can be used for
>> filtering.
>> Select your bounds a bit bigger and filter later in the database. I'm
>> using a cron job to clean it up.
>
>
> Alternatively, if you don't need minutely updates, download and clip the
> full area of interest in regular intervals, run a --derive-change task
> against the new extract and the earlier version, and load the resulting .osc
> into the database.

I'm kinda hooked on the appeal of only working with the changeset.  I
poked around the osmosis source and learned a bit about the change
format.  It looks like changes could be filtered using the same code
used for the polygon and bounding box filters.  Does this sound
intuitively correct?

Thanks,
Brian

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Deploying Potlatch2 - local test version

2013-01-20 Thread Toby Murray
On Sun, Jan 20, 2013 at 11:38 AM, Rob Nickerson
 wrote:
>
> Hi All,
>
> I'm attempting to deploy P2 following the instructions on the wiki. At the
> moment I want to deploy this locally (as in, not on a public server), so
> that I can have a play with the snapshot sever / merging tool. I do not need
> to upload anything.
>
> Is it not possible to do this without registering my "server" with osm?

When I was testing a small patch for P2 I followed this page:

http://wiki.openstreetmap.org/wiki/Potlatch_2/Developer_Documentation

and had a running P2 instance up that talked to the dev API in no time
flat. I had to create a new account in the dev rails port but P2
worked fine against it.

Toby

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Taginfo embedment in Wiki is disallowed

2013-01-20 Thread Holger Jeromin

Hello,

i just noticed (easy with the opera browser), that Taginfo
does not allow display in an IFRAME.
This is a problem in all wikipages like
http://wiki.openstreetmap.org/wiki/Key:amenity

The problem is the http header:
X-Frame-Options: SAMEORIGIN

According to
https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
the keyword ALLOW-FROM is not supported in many browsers.

-- 
greetings
Holger


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] area filtering on change streams?

2013-01-20 Thread Frederik Ramm

Hi,

On 20.01.2013 18:49, Stephan Knauss wrote:

I'd like to maintain an updatable database of OSM data clipped by a
polygon.  I understand how to initialize the database using osmosis'
--bounding-polygon task.  But this task does not seem to operate on a
change stream.  Any recommendations on trimming a change set down?


As you already noticed only nodes have a coordinate and can be used for
filtering.
Select your bounds a bit bigger and filter later in the database. I'm
using a cron job to clean it up.


Alternatively, if you don't need minutely updates, download and clip the 
full area of interest in regular intervals, run a --derive-change task 
against the new extract and the earlier version, and load the resulting 
.osc into the database.


Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] area filtering on change streams?

2013-01-20 Thread Stephan Knauss

On 18.01.2013 18:53, Brian Cavagnolo wrote:

I'd like to maintain an updatable database of OSM data clipped by a
polygon.  I understand how to initialize the database using osmosis'
--bounding-polygon task.  But this task does not seem to operate on a
change stream.  Any recommendations on trimming a change set down?


As you already noticed only nodes have a coordinate and can be used for 
filtering.
Select your bounds a bit bigger and filter later in the database. I'm 
using a cron job to clean it up.


http://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase#Cleanup_of_ways_outside_the_bounding_box


Stephan


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Deploying Potlatch2 - local test version

2013-01-20 Thread Rob Nickerson
Hi All,

I'm attempting to deploy P2 following the instructions on the wiki. At the
moment I want to deploy this locally (as in, not on a public server), so
that I can have a play with the snapshot sever / merging tool. I do not
need to upload anything.

Is it not possible to do this without registering my "server" with osm?

Regards
Rob
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Snapshot Server

2013-01-20 Thread Andy Allan
On 20 January 2013 00:45, Rob Nickerson  wrote:

> I reinstalled snapshot-server following your updated instructions, which was
> a lot simpler than last time :-) and gave the web load a test. It worked a
> charm :-)

That's great news. If you, or anyone else on the list, have problems
or suggestions for making it easier to install a copy of
snapshot-server, please let me know!

Cheers,
Andy

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev