Re: [josm-dev] Please do not change long established shortcuts

2012-05-02 Thread David Earl

On 02/05/2012 17:23, Russ Nelson wrote:

Alan Mintz writes:
  >  I don't use it every day, but those who draw buildings do (or should). Draw
  >  the roof of a tall building. Drag (usually somewhat diagonally) the whole
  >  (closed) way to move it to the correct ground position, based on whichever
  >  corner is visible at ground level.

A, yes, of course. I wonder if shift-drag might not be appropriate
for such uses, to split out that functionality from selection? I mean,
how many times have you tried to draw a box around something, and
found yourself dragging a way??


I'd certainly be happy for it to be a different combination than 
dragging nodes, so long as the functionality remains.


David



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


Re: [OSM-dev] Nominatim's reverse geocoding statistics

2012-05-02 Thread Sarah Hoffmann
Hi,

On Wed, May 02, 2012 at 09:56:07AM +0200, Charles DESNEUF wrote:
> We are trying to build our own reverse geocoding service, based on
> Nominatim and we have an issue with it. Nominatim does work but when
> running a benchmark on the reverse geocoding page we are unable to get more
> than 13 or 14 pages per second.
> CPU isn't loaded, Memory is fine and IO are goods...
> I would like to know if some of you tried to benchmark his installation and
> know how many request the service can handle ?

poldi, OSM's Nominatim instance[1], currently tops somewhere around
220 request/s[2], although that includes about 5% search requests which
are much more expensive than calls to reverse. Also keep in mind
that it has the update process running in the background.

datendelphin has done some stress testing on a Hetzer EX-4S[3]
and reported that it manages around 120 requests/s (without any updates
running).

Both machines run a full planet with postgresql configured as described
in the wiki.

> And if you have an idea about what parameters (Php, Postgres, Apache ...)
> can we play on to improve the results I'll be glad to ear it.

Switching off keep-alive in Apache did help quite a bit. 
Also, you might want to switch the IO scheduler to deadline.

For postgresql, it might be worth to rerun VACUUM ANALYZE.

Sarah

[1] http://wiki.openstreetmap.org/wiki/Servers/poldi
[2] http://munin.openstreetmap.org/openstreetmap/poldi.openstreetmap/index.html
[3] http://www.hetzner.de/en/hosting/produkte_rootserver/ex4s

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


Re: [OSM-dev] Nominatim's reverse geocoding statistics

2012-05-02 Thread Derick Rethans
On Wed, 2 May 2012, Grant Slater wrote:

> On 2 May 2012 09:43, Derick Rethans  wrote:
> > On Wed, 2 May 2012, Charles DESNEUF wrote:
> >
> >> And if you have an idea about what parameters (Php, Postgres, Apache ...)
> >> can we play on to improve the results I'll be glad to ear it.
> >
> > On the PHP side. Make sure you have APC installed, and running the
> > latest version of PHP (5.4.1). It uses a lot less memory, and is about
> > 25-40% faster than 5.3.
> >
> 
> Further... make sure you are running PHP as an apache module (aka
> mod_php)* and not PHP via cgi.

You know what, that didn't even cross my mind. I wouldn't think 
*anybody* would still run anything as CGI (unless it's FastCGI).

cheers,
Derick

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


Re: [josm-dev] Please do not change long established shortcuts

2012-05-02 Thread Alan Mintz

At 2012-05-01 19:01, Russ Nelson wrote:

I'm just wondering how often you move an entire way, as opposed to a
single node? You can get the same effect by selecting the way,
searching for "child selected", and then moving any one of the
nodes. About once a month I need to move an entire way. I don't
understand the use case for this feature. Can somebody (preferably
somebody who uses it every day) explain it to me?


I don't use it every day, but those who draw buildings do (or should). Draw 
the roof of a tall building. Drag (usually somewhat diagonally) the whole 
(closed) way to move it to the correct ground position, based on whichever 
corner is visible at ground level.


Having said that, because I rarely draw buildings, most of the time I end 
up moving a way in JOSM, it's a mistake. It usually happens when trying to 
select one of the midpoint 'x' to create a new node and position it, and 
selecting the whole way instead. Longer ways are protected by a dialog that 
warns you, but I'd like to see the same for shorter ways. I would also like 
to add the ability to suppress a warning for just the current JOSM 
instance, so you could suppress it when doing a bunch of building geometry 
work. Those that routinely do this sort of thing could suppress it 
permanently, like any other warning.


--
Alan Mintz 


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


Re: [OSM-dev] Nominatim's reverse geocoding statistics

2012-05-02 Thread Grant Slater
On 2 May 2012 09:43, Derick Rethans  wrote:
> On Wed, 2 May 2012, Charles DESNEUF wrote:
>
>> And if you have an idea about what parameters (Php, Postgres, Apache ...)
>> can we play on to improve the results I'll be glad to ear it.
>
> On the PHP side. Make sure you have APC installed, and running the
> latest version of PHP (5.4.1). It uses a lot less memory, and is about
> 25-40% faster than 5.3.
>

Further... make sure you are running PHP as an apache module (aka
mod_php)* and not PHP via cgi.

*: It would also be interesting to see benchmarks for nominatim via PHP+fastcgi.

/ Grant

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


Re: [OSM-dev] Querying OAuth access token permissions

2012-05-02 Thread Cyrille Giquello
2012/5/2 Tom Hughes :
> On 02/05/12 12:22, Christoph Bünte wrote:
>
>> We did not get any feedback on our approach of improving the OSM API. We
>> would like to know if it because it is totally crap or for some other
>> reason.
>>
>> So we call out to every OSM developer to check the code make a remark.
>
>
> Yes, it's on my to do list and I'll get to it when I have time.
>
> We're a bit busy with server upgrades this week though, so it will likely be
> at the weekend.

Great ! Thanks a lot.

Tell us when it's time to test it ;-)

-- 
Cyrille.

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


Re: [OSM-dev] Querying OAuth access token permissions

2012-05-02 Thread Tom Hughes

On 02/05/12 12:22, Christoph Bünte wrote:


We did not get any feedback on our approach of improving the OSM API. We would 
like to know if it because it is totally crap or for some other reason.

So we call out to every OSM developer to check the code make a remark.


Yes, it's on my to do list and I'll get to it when I have time.

We're a bit busy with server upgrades this week though, so it will 
likely be at the weekend.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

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


Re: [OSM-dev] Querying OAuth access token permissions

2012-05-02 Thread Cyrille Giquello
2012/5/2 Christoph Bünte :
>> We implemented the suggested feature including tests and created a pull 
>> request on github:
>>
>> https://github.com/openstreetmap/openstreetmap-website/pull/45
>>
>> Could you have a look at it?

Hi,

I think this feature is important. I vote for it's acceptation.
When it will be integrated (on prod or dev servers), I'll could make
some tests if needed.

Cheers

-- 
Cyrille.

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


Re: [OSM-dev] Querying OAuth access token permissions

2012-05-02 Thread Christoph Bünte
Am 26.04.2012 um 17:42 schrieb Christoph Bünte:

> 
> Am 20.04.2012 um 13:31 schrieb Tom Hughes:
> 
>> On 20/04/12 12:13, Christoph Bünte wrote:
>> 
>>> But is there a way to find out if the user which permissions the user 
>>> actually granted? In particular, we would like to know whether the access 
>>> token can change the map. We know the recommended way is to just try an API 
>>> call which requires the specific permission. Our infrastructure queues all 
>>> changes to the osm data and works it off later to be independent from OSM 
>>> API status. But when the job is worked off it is too late to tell the user, 
>>> that permissions are missing.
>> 
>> Not at the moment, but it would be easy enough to add it to the user details 
>> API call (/api/0.6/user/details).
> 
> We implemented the suggested feature including tests and created a pull 
> request on github:
> 
> https://github.com/openstreetmap/openstreetmap-website/pull/45
> 
> Could you have a look at it?

We did not get any feedback on our approach of improving the OSM API. We would 
like to know if it because it is totally crap or for some other reason.

So we call out to every OSM developer to check the code make a remark.

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


Re: [OSM-dev] Nominatim's reverse geocoding statistics

2012-05-02 Thread Derick Rethans
On Wed, 2 May 2012, Charles DESNEUF wrote:

> And if you have an idea about what parameters (Php, Postgres, Apache ...)
> can we play on to improve the results I'll be glad to ear it.

On the PHP side. Make sure you have APC installed, and running the 
latest version of PHP (5.4.1). It uses a lot less memory, and is about 
25-40% faster than 5.3.

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

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


[OSM-dev] Nominatim's reverse geocoding statistics

2012-05-02 Thread Charles DESNEUF
Hi all !
We are trying to build our own reverse geocoding service, based on
Nominatim and we have an issue with it. Nominatim does work but when
running a benchmark on the reverse geocoding page we are unable to get more
than 13 or 14 pages per second.
CPU isn't loaded, Memory is fine and IO are goods...
I would like to know if some of you tried to benchmark his installation and
know how many request the service can handle ?
And if you have an idea about what parameters (Php, Postgres, Apache ...)
can we play on to improve the results I'll be glad to ear it.

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