[Openstreetmap-dev] metadata, getAllKeys not found
Ben Gimpert
ben at somethingmodern.com
Sun Jun 5 10:04:22 BST 2005
Looks like your (Python?) client-side should be passing a boolean as
the second argument to getAllMaps(). That method's proper getAllKeys()
signature takes a String first (token) and then a boolean (visible?),
not an integer (1) passing as a boolean.
Cheers,
Ben Gimpert
ben at somethingmodern.com
On 4 Jun 2005, at 18:01, Jo Walsh wrote:
> hello,
>
> i was playing around with the OSM lines in mapserver. i wanetd to get
> their metadata out too. but then i try to request the list of key UIDs
> and names, but i get this error:
>
> <Fault 0: 'java.lang.NoSuchMethodException:
> org.openstreetmap.server.osmServerHandler.getAllKeys(java.lang.String,
> int)'>
>
> it looks like it's defined okay in
> org/openstreetmap/server/osmServerHandler.java
>
> The following code is what i'm using to call it:
>
> ----
>
> import xmlrpclib
>
> x = xmlrpclib.Server('http://www.openstreetmap.org/api/xml.jsp')
> token = x.openstreetmap.login('zool at frot.org','bollocks')
> keys = x.openstreetmap.getAllKeys(token,1)
> # kabooom!
> for k in keys:
> print k
>
>
> -jo
>
> _______________________________________________
> Openstreetmap-dev mailing list
> Openstreetmap-dev at vr.ucl.ac.uk
> http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1278 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20050605/cc722e09/attachment.bin>
More information about the dev
mailing list