Re: [OSM-dev-fr] Osmose et last-update.py

2011-08-16 Thread Etienne Chové

Le 12/07/2011 15:20, Black Myst a écrit :

PS: Etienne Chové ne semble pas inscrit sur cette liste, je lui fais
suivre les mails sur sa boite mail de l'époque.



En fait, tu as raison, je n'y suis pas inscrit. Je pensait que c'était 
sur talk-fr. Je viens devoir qu'il y a un dev-fr. Les choses bougent...


Etienne


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


[OSM-dev] Remove oauth client

2010-03-29 Thread Etienne Chové
Hi,

How to remove oauth client application from OSM ?

RawEdit [1] is now client #49. You can remove application #7 from my 
account (old entry).

[1] http://rawedit.openstreetmap.fr/

-- 
Etienne

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


[OSM-dev] api/relation/0.6/*/full not working

2010-03-12 Thread Etienne Chové
Hi,

Downloading http://www.openstreetmap.org/api/0.6/relation/12/full
is not work since 20 minutes

Is it bug ?

-- 
Etienne

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


Re: [OSM-dev] Missing changes in minute-replicate

2009-11-17 Thread Etienne Chové
Brett Henderson a écrit :
 Osmosis 0.31.3 (the latest svn) has been deployed.  I've done some basic 
 testing and the new version appears to produce much the same results as 
 the old one but hopefully without missing data.

Deployed to minute-replicate ?

-- 
Etienne

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


Re: [OSM-dev] help on developing an editor

2009-10-31 Thread Etienne Chové
Sebastian Kürten a écrit :
 could someone please describe shortly, what actions are necessary to
 for example just changing a node's tags or inserting a new node?
 (or provide a link to the correct wiki-page i've missed)

!!! Make all your tests on http://api06.dev.openstreetmap.org/ !!!

Nota: All your requests should be authetified either with basic auth or 
oauth.

You can read on http://fwd4.me/2Fs that you should :
1. open a changeset
http put to /api/0.6/changeset/create with payload :
 ?xml version=1.0 encoding=UTF-8?
 osm version=0.6
 changeset
   tag k=created_by v=your_editor/0.1 /
 /changeset
 /osm
and read the changetid (result of the http request)
2. update a node
http put to /api/0.6/node/_NodeId_ with payload
 ?xml version=1.0 encoding=UTF-8?
 osm version=0.6
 node id=_NodeId_ changeset=_CSId_ lat=... lon=...
   tag k=poi v=your poi /
 /node
 /osm
3. close the changeset
http put without payload to /api/0.6/changeset/_CSId_/close

You can also make many changes in one changeset, just close it at the 
end of your session.

To create a node, put data to api/0.6/node/create (you'll get nodeid by 
return).

Is that enough short and clear ?


!!! Make all your tests on http://api06.dev.openstreetmap.org/ !!!

-- 
Etienne

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


Re: [OSM-dev] Minute Diffs Broken

2009-10-28 Thread Etienne Chové
Brett Henderson a écrit :
 Etienne Chové wrote:
 I think there is a bug in .state file on timestamp line... there are 
 useless backslashes.
   
 They are Java properties files and presumably a ':' character is being 
 escaped with a '\' character.  Apologies but I can't do much about it 
 without writing a custom file format.

Ok, thanks for that information. I use python so I'm not aware with that 
file type. Trimming backlsashes in my scripts is quite easy ;-)

-- 
Etienne

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


[OSM-dev] [announce][PythonOsmApi] new revision

2009-10-13 Thread Etienne Chové
Hi,

As some of you are using PythonOsmApi to download/upload data, I'd like 
to inform you that a new version is now available.

This version supports more api functions such as changeset/#/upload, 
changeset/#/download, way/#/full, relation/#/full...

I also have a new mecanism for automated changeset creation/closure and 
may group many (Node|Way|Relation)Create in one changeset/#/upload.

You can go to http://wiki.openstreetmap.org/wiki/PythonOsmApi for more 
(maybe not full) details.

-- 
Etienne

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


Re: [OSM-dev] get user id on api

2009-10-12 Thread Etienne Chové
Etienne Chové a écrit :
 Hi,
 
 How to get user id when we have the username ? (GET changesets needs 
 userid and do not accept username).

No idea or not possible ?

-- 
Etienne

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


Re: [OSM-dev] get user id on api

2009-10-12 Thread Etienne Chové
Matt Amos a écrit :
 Then fix the API ;-)
 
 done.
 
 http://trac.openstreetmap.org/changeset/18103
 http://wiki.openstreetmap.org/wiki/API_v0.6#Query:_GET_.2Fapi.2F0.6.2Fchangesets

Thanks !!!

 note that it might not be deployed yet by the time you read this. ;-)

That's not a problem... I have so many things to do.

-- 
Etienne

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


Re: [OSM-dev] Displaying specific version of node/way/relation

2009-10-09 Thread Etienne Chové
Maarten Deen a écrit :
 Now, is there a possibility (or a tool) to revert relation 73447 to
 version 124?

1. open in your browser :
http://www.openstreetmap.org/api/0.6/relation/73447/124

2. in a other tab open :
http://osmose.openstreetmap.fr/edit/relation/73447

3. Copy content from 1. to 2. and set version=125

4. click on send to api

-- 
Etienne

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


[OSM-dev] get user id on api

2009-10-09 Thread Etienne Chové
Hi,

How to get user id when we have the username ? (GET changesets needs 
userid and do not accept username).

-- 
Etienne

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


Re: [OSM-dev] Minute Diffs Broken

2009-10-06 Thread Etienne Chové
Matt Amos a écrit :
 we hope so. there are (currently experimental) replication diffs
 here http://planet.openstreetmap.org/minute-replicate/ in a three-deep
 numeric directory structure. these diffs are produced from the
 transactions in the database, so each doesn't strictly cover a minute
 of edits, but they are produced with almost no delay and shouldn't be
 missing any elements.

I think there is a bug in .state file on timestamp line... there are 
useless backslashes.

-- 
Etienne

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


Re: [OSM-dev] [JOSM][RemoteControl] import?url

2009-09-23 Thread Etienne Chové
Frederik Ramm a écrit :
 Hi,
 
 Etienne Chové wrote:
 I'm trying to use remote control plugin from JOSM with function 
 /import?url=... When I put an invalid url, I get an error, but when I 
 put a valid osm file url, nothing appens.
 
 People are reporting server problems ATM so try again later, and if the 
 problem persist, we'll investigate further.

I've josm-tested (version 1981) = it works
  josm-latest (version 2180) = it doesn't work

The bug occurs if no data have been downloaded before the call to 
openUrl (wich calls DownloadOsmTask). If I download some data with 
Ctrl+Maj+D and then call openUrl, it works fine.

I think the bug comes from :
http://tiny.cc/YYd0a

Cheers.

Etienne

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


[OSM-dev] [JOSM][RemoteControl] import?url

2009-09-22 Thread Etienne Chové
Hi,

I'm trying to use remote control plugin from JOSM with function 
/import?url=... When I put an invalid url, I get an error, but when I 
put a valid osm file url, nothing appens.

What shoul'd I do to get remote data into osm ?

I'm using JOSM 2180 on windows with RemoteControl 17590

-- 
Etienne

* Test 1 (incomplete file) :
http://127.0.0.1:8111/import?url=http://api.openstreetmap.org/api/0.6/way/31591786

= Console result :
RemoteControl received: GET 
/import?url=http://api.openstreetmap.org/api/0.6/way
/31591786 HTTP/1.1
GET http://api.openstreetmap.org/api/0.6/way/31591786
22 sept. 2009 18:13:08 org.openstreetmap.josm.io.OsmReader 
processWaysAfterParsi
ng
ATTENTION: marked way 31á591á786 with 5 nodes incomplete because at 
least one no
de was missing in the loaded data and is therefore incomplete too
RemoteControl received: GET 
/import?url=http://api.openstreetmap.org/api/0.6/way
/31591786/full HTTP/1.1

* Test 2 (valid file) :
http://127.0.0.1:8111/import?url=http://api.openstreetmap.org/api/0.6/way/31591786/full

= Console result :
RemoteControl received: GET 
/import?url=http://api.openstreetmap.org/api/0.6/way
/31591786/full HTTP/1.1
GET http://api.openstreetmap.org/api/0.6/way/31591786/full

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


[OSM-dev] Oauth on dev server

2009-09-07 Thread Etienne Chové
Hi,

I have an error on dev server requesting oauth token (it was ok last week) :
http://oauth.old-dev.openstreetmap.org/oauth/request_token
= error 404

Cheers

Etienne

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


Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Etienne Chové
Tom Hughes a écrit :
 You're using the wrong server - the URL you want is:
 
   http://oauth.dev.openstreetmap.org/oauth/request_token

Thanks, it looks better. The dev database have been cleaned ?

Etienne

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


[OSM-dev] oauth token validity

2009-08-31 Thread Etienne Chové
Hi,

I'm trying to implement oauth on my online application. It works (using 
the dev server) and I can get request token, authorize it, get access 
token and modify data.

My question are on access token expiration :
  - how to know when a token will expire ?
  - does user activity change expiration time for the token ?
  - how to know what a token is allowed to access/modify ?
  - how to know if a token still active ?

Sorry for my bad skills, I discovered oauth this morning.

Thanks.

Etienne

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


Re: [OSM-dev] a small patch for the OsmApi

2009-07-15 Thread Etienne Chové
Eddy Petrișor a écrit :
 chove a scris:
 On Mon, 13 Jul 2009 00:59:26 +0300, Eddy Petrișor
 eddy.petri...@gmail.com
 wrote:
 Hello,

 Attached is a patch to the Python OsmApi that allows identification of
 the application by pre-pending the application id, but keeping the
 Python OSM API version present.

 It  would be nice if you'd apply it to the code in SVN.

 Of course, I bumped the version number.
 Feel free to patch it if you wan't and have a svn account. I think I won't
 have svn client until september.
 
 I am also planning to add grab map support since I already did this in
 one of my apps. Is that OK with you?

Yes, there is no problem.

-- 
Etienne

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


Re: [OSM-dev] osm2pgsql / postgis precision

2009-07-01 Thread Etienne Chové
Hi,

Coordinates are rounded during initial import.

*Try to import (osm2pgsql -c -m -s)*

osm version=0.6
   node id=1 version=1 lat=0 lon=0/
   node id=2 version=1 lat=1.123456789 lon=2.123456789/
   way id=3
 tag k=highway v=primary/
 nd ref=1/
 nd ref=2/
   /way
/osm

*and then to import (osm2pgsql -a -m -s)*

osmChange version=0.6
   create
 way id=4
   tag k=highway v=primary/
   nd ref=1/
   nd ref=2/
 /way
   /create
/osmChange

*you'll get two differerent ways*

gis= SELECT osm_id, astext(way) from test_import_roads;
  osm_id |   astext
+-
   3 | LINESTRING(0 -7e-10,236382.12 125070.65)
   4 | LINESTRING(0 -7e-10,236382.128473 125070.652348178)

The difference is not really significant but postgis says polygons are 
olvelapping each other while they have just a common boundary.

Should I raise a bugreport ?

-- 
Etienne

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


Re: [OSM-dev] osm2pgsql / postgis precision

2009-07-01 Thread Etienne Chové
Etienne Chové a écrit :
 The difference is not really significant but postgis says polygons are 
 olvelapping each other while they have just a common boundary.

The errors doesn't appear when I delete lines #define FIXED_POINT in 
middle_ram.c and middle_pgsql.c

Is it danerous to delete them ?

-- 
Etienne

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


[OSM-dev] osm2pgsql / postgis precision

2009-06-29 Thread Etienne Chové
Hi,

I'm trying to use functions such as st_touches, st_crosses, st_overlap 
from postgis but due to incoherence in import mecanism the data are 
inconsistent :

postgis
gis= SELECT id,nodes[1] as firstnode,nodes[array_upper(nodes,1)] as 
lastnode FROM planet_osm_ways WHERE id IN (35996595,35996591);
 id| firstnode | lastnode
--+---+---
  35996591 | 420765141 | 309351619
  35996595 | 420748383 | 309351619
/postgis

These two ways have the same terminal node, but they are not exactly at 
the same position :

postgis
gis= select osm_id, astext(st_boundary(way)) as exteremites from 
planet_osm_roads where osm_id IN (35996595,35996591);
   osm_id  |   exteremites
--+--
  35996591 | MULTIPOINT(-100527.600494421 5992007.45755514,-100209.72 
5993195.32)
  35996595 | MULTIPOINT(-92980.895991175 
5995569.89694427,-100209.727688461 5993195.32213384)
/postgis

The right position is the second one :

postgis
gis= SELECT id,lon,lat from planet_osm_nodes where id=309351619;
 id |lon|   lat
---+---+--
  309351619 | -100209.727688461 | 5993195.32213384
/postgis

Do you know if there is a simplification into data import. I suppose one 
of these way have been imported during initial import and the other one 
during a diff import (but not sure). Maybe one of the two processes 
(initial/diff import) simplify data ?

Chears.

Etienne

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