Thanks all. I did in fact attempt to set up some dummy users - a new one for each distinct user-userId pair in the xml I downloaded. I'll go back and see what I did wrong...<br><br>Looking over the api, it looks like we're really only going to be able to test a small number of the queries with our own setup: given that I don't have version information, user data etc... Is there any chance at some later date that I might be able to get read-only access to (or a dump of) the live database (or a section thereof) to get things working further?<br>
<br>What we've done so far is available here (not quite ready to trial - but in case anyone's interested in coding style, etc): <a href="http://code.google.com/p/modosmapi/">http://code.google.com/p/modosmapi/</a><br>
<br>Dependencies are: apache 2.0, xerces, and boost.<br><br>Thanks,<br><br>Alex<br><br> <br>2008/6/19 SteveC <<a href="mailto:steve@asklater.com">steve@asklater.com</a>>:<br>><br>> On 18 Jun 2008, at 16:13, Tom Hughes wrote:<br>
><br>> > In message<br>> > <<a href="mailto:44d06e000806181421l72532569p9a43e502330d50f@mail.gmail.com">44d06e000806181421l72532569p9a43e502330d50f@mail.gmail.com</a>><br>> > "Alex Wilson" <<a href="mailto:alex_wilson@pobox.com">alex_wilson@pobox.com</a>> wrote:<br>
> ><br>> >> A quick and a dumb question: I've been trying to get the ruby port<br>> >> working<br>> >> in order to compare the api query from it with the results of our C++<br>> >> implementation of the api. I've imported a uk sub-section of world<br>
> >> using<br>> >> planetosm-to-db.pl into a mysql db - it seems to be successfully<br>> >> populated.<br>> >> The local version of the server is up and running and in<br>> >> development mode.<br>
> >> However I get errors from the ruby when attempting to use the map<br>> >> query. Can<br>> >> anyone help - or tell me which M to RTF? The error follows:<br>> ><br>> > As Jon said, the problem is that planetosm-to-db.pl does not, by<br>
> > default, associate the objects it loads with a user. That confuses<br>> > the rails code, which expects to be able to check whether to reveal<br>> > the username by looking at the associated user object.<br>
> ><br>> > If you have a created a user you can use the --user switch that I<br>> > added<br>> > to planetosm-to-db.pl to associate records with a user when importing<br>> > them.<br>><br>
> also, you want it to be a good match to do 'real' tests<br>><br>> ><br>> ><br>> > Tom<br>> ><br>> > --<br>> > Tom Hughes (<a href="mailto:tom@compton.nu">tom@compton.nu</a>)<br>
> > <a href="http://www.compton.nu/">http://www.compton.nu/</a><br>> ><br>> > _______________________________________________<br>> > dev mailing list<br>> > <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> > <a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>> ><br>><br>> Best<br>><br>> Steve<br>><br>><br>> _______________________________________________<br>
> dev mailing list<br>> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>
<br>