Commit graph

97 commits

Author SHA1 Message Date
Matt Amos
dc2a959037 Added tests for changeset upload code. Refactored diff reading code and put it into /lib. Changed the route of a changeset upload to explicitly refer to the changeset it applies to (i.e: resource). 2008-10-23 15:14:17 +00:00
Shaun McDonald
3e9ceb0c38 more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call. 2008-10-19 07:09:04 +00:00
Matt Amos
b56f57ec43 Fixed up delete methods on nodes, ways and relations to return the new version number and added some more tests. 2008-10-14 14:27:12 +00:00
Shaun McDonald
24b21e4a29 additional consistency checks. making the error message for the number of nodes use the configured number of nodes, rather than a hard coded number. minor improvements to the way controller functional tests. Not sure if they should be turned into integration tests. 2008-10-12 22:32:51 +00:00
Shaun McDonald
2b7a40069f adding the controller code to be able to get a specific version of a node, way or relation. Add some node checks on update. Some code indentation cleanup. 2008-10-08 18:03:41 +00:00
Shaun McDonald
e1b205913c Fix the data config, so that the development database is not the same as the test database. Make a good stab at getting the creates and updates for relations working, adding some new error exceptions. Some code indentation cleanup. 2008-10-08 15:42:42 +00:00
Shaun McDonald
d9e070e069 Doing a resync from mainline 8633:10895. There was one simple to resolve conflict on app/models/node.rb. Also moving the migrations for API0.6 to new sequence numbers since there was some new migrations added to mainline, where the migration numbers would conflict if not moved. 2008-09-25 15:06:05 +00:00
Tom Hughes
fb5f6bb4a2 Rework GPX import daemon to use libxml2 for speed. 2008-07-30 08:37:05 +00:00
Gabriel Ebner
e823ce2fc4 api06: Fix OSM::APIVersionMismatchError.render_opts 2008-05-13 12:32:43 +00:00
Gabriel Ebner
2ff2cdf63d api06: fix syntax errors. 2008-05-13 12:27:38 +00:00
Gabriel Ebner
7151fa05e4 api06: simplify exception handling and add exception handling to the diff
upload.
2008-05-13 12:15:06 +00:00
Gabriel Ebner
86b4d1bc2c api06: Move version-checking into the models, raising an exception on mismatch
(still not implemented for delete requests though.)
2008-05-12 21:05:11 +00:00
Steve Coast
bbd769304c dont eager load tags (false primary key fucks all sorts of things up) and move delete way logic to model so that amf_controller can use it (plan is to do this with all of the methods. sigh.) 2008-01-25 14:32:45 +00:00
Steve Coast
63e0486ca1 Lots of documentation updates, plus split out potlatch libraries in to lib 2008-01-24 16:03:56 +00:00
Steve Coast
3bd92c1670 move potlatch presets to only be generated once, and allow pulling in way_tags in a way via a false primary key 2008-01-24 10:52:10 +00:00
Tom Hughes
07e8449625 Allow a GPX to be fetched in XML format by fetching data.xml instead
of data (the data method returns it in the format it is stored in).

Closes #534.
2008-01-23 13:40:47 +00:00
Tom Hughes
5bf4ce35c0 Fix picture generation to avoid truncating the sides of the image for
a trace that is wider than it is tall.
2008-01-05 15:23:04 +00:00
Tom Hughes
2ba147e7fa Clear gotele and gotdate when we see the start of a trkpt element to
avoid inheriting previous data.
2007-11-26 16:28:28 +00:00
Tom Hughes
8d2f6da628 Rework image generation to work in a fixed amount of memory. Closes #580. 2007-10-31 13:46:36 +00:00
Tom Hughes
f82f362cea Fix geolocation to actually work... 2007-10-12 16:34:38 +00:00
Tom Hughes
9afb35449b Change the gps_points table to store latitude and longitude values to
seven decimal places to given a worse case precision of about 1cm.
2007-09-18 23:29:47 +00:00
Tom Hughes
349413a520 Allow column names in area conditions to be qualified, and do so for
the SWF queries which sometimes reference more than one table with
columns named latitude and longitude.
2007-09-14 11:16:25 +00:00
Tom Hughes
33a65a90c9 QuadTile infrastructure. 2007-09-11 23:55:25 +00:00
Tom Hughes
d45db3acc4 Fix image referred to in RSS feeds so that it actually exists. 2007-08-15 18:12:37 +00:00
Tom Hughes
c2b377efac Salt passwords so that two users with the same password will have
different password hashes in the database.
2007-08-14 23:25:58 +00:00
Tom Hughes
0a8c26e596 Various updates to the user management, including the creation of a
preferences table and moving tokens into a tokens table so that a user
can have more than one.
2007-08-14 23:07:38 +00:00
Tom Hughes
deb3c74fc7 Add the author name to RSS feeds. 2007-08-14 09:22:29 +00:00
Tom Hughes
d77e5f9d4d Ignore timeouts doing IP geolocation. 2007-08-08 21:09:26 +00:00
Tom Hughes
6706ca3c50 Use IP GeoLocation to choose a default view for the slippy map if
we don't have any better ideas.
2007-08-08 12:37:16 +00:00
Tom Hughes
dcac9dfeca Treat a timestamp that can't be parse as if it didn't exist. 2007-06-26 23:21:20 +00:00
Tom Hughes
b3d6d4291e Use a multi-pass approach to parsing GPX files to keep memory usage down. 2007-06-24 10:38:31 +00:00
Tom Hughes
b982bc6b19 Make "nearby users" show all those within 50km rather than all those
within a degree of latitude and longitude.
2007-06-20 17:04:29 +00:00
Tom Hughes
7f2756fe20 Cope with the degenerate case of a GPX file with only a single point. 2007-06-19 13:58:44 +00:00
Tom Hughes
69e0457dea Use DateTime instead of Time for GPX timestamps as it can handle a
wider range of dates.
2007-06-18 23:30:06 +00:00
Dan Karran
3a375c4c6a Adding a guid element to feed items, replicates URL. 2007-06-17 19:25:35 +00:00
Dan Karran
1a1f600243 Using RFC-822 date for RSS feeds. 2007-06-17 19:17:55 +00:00
Dan Karran
c43fac76df left a bit in previous commit that shouldn't have been there. 2007-06-11 21:23:03 +00:00
Dan Karran
eada120ffa #499: Making GeoRSS class more reusable and stopping geotags being added if there is no geodata to be represented. The only reference I can find to code using this class currently is the GPX GeoRSS generator which doesn't specify any parameters, so it shouldn't matter that I have added a title parameter before the description parameter. 2007-06-11 21:19:25 +00:00
Dan Karran
d95c17e4f7 #374: changing W3C geo tags to use 'long' instead of 'lon', per spec. 2007-06-09 21:41:48 +00:00
Richard Fairhurst
4769eec5aa TomH's patches 2007-05-28 14:54:50 +00:00
Steve Coast
89e976c6e5 updates from hacking day 2007-05-06 10:08:00 +00:00
Steve Coast
668f8020cc simplify grabbing of a xml base doc 2007-04-07 12:43:48 +00:00
Steve Coast
e5f292cf21 gpx rss and gpx cleanups 2006-12-08 17:25:23 +00:00
Steve Coast
dd1f94e341 trace bits and a georss class 2006-12-08 15:31:04 +00:00
Steve Coast
93dab8a127 lots of rails gpx stuff 2006-12-01 20:38:29 +00:00
Steve Coast
92418b7954 gpx insert now works 2006-12-01 17:56:13 +00:00
Steve Coast
fac305e87b various gpx bits 2006-12-01 15:59:13 +00:00