Thomas Wood
9bb9de0fbe
Require auth on calls to /trace/create, and pass through to form if called without params. Adjust validations on traces to prevent dual error messages on description (validates_presence_of catches the empty string removed from length validation)
...
More changes to come for api_create
References #1510
2009-01-23 01:19:45 +00:00
Shaun McDonald
a5e5cbc739
Adding a lower and upper length on various web site varchar fields. Fixes one test.
2008-10-15 16:20:43 +00:00
Tom Hughes
6d7e69d4d3
Make the location of the GPX traces configurable.
2008-08-07 11:31:42 +00:00
Tom Hughes
8dbaf76e7c
Ignore any files in an __MACOSX folder in a zip file, as these are
...
metadata files added by the MAC OS X zip tool.
2008-07-31 08:06:09 +00:00
Tom Hughes
fb5f6bb4a2
Rework GPX import daemon to use libxml2 for speed.
2008-07-30 08:37:05 +00:00
Tom Hughes
7d9bf3634c
Work around the fact that exists? no longer works for models with
...
no primary key.
2008-06-07 22:40:39 +00:00
Tom Hughes
112ee9266c
Make sure the recorded first point for a trace really is the first
...
point and not the last. Closes #709 .
2008-04-27 12:27:46 +00:00
Tom Hughes
c0d2ad40c3
Work round ruby's half assed Tempfile class which, because for some
...
reason it is implemented by delegating to File (by inheriting from
DelegateClass(File)) rather than by inheriting from it, does not
actually look like a File, and hence does not look like an IO (in
that it does not respond to kind_of? IO calls).
In ruby 1.8.5 this doesn't matter as REXML checks that the source
it has been given responds to the methods it wants (using respond_to?
which is handled properly by DelegateClass) but in 1.8.4 which we
are running on rails2 REXML uses kind_of? to see if the source is
one it can use.
2008-03-06 12:43: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
6595f97c53
Make the name of the lon/lng virtual attribute on trace points consistent.
2007-09-28 23:19:19 +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
4954f65061
Don't bother deleting points which don't exist before importing a
...
trace - this avoids locking the table in the common case where there
are no points to delete.
2007-09-04 16:22:03 +00:00
Tom Hughes
9861ca8001
Move tag validation to the right place.
2007-08-19 09:16:33 +00:00
Tom Hughes
7dbb746fde
Throw an exception if saving the imported trace fails.
2007-08-19 09:11:59 +00:00
Tom Hughes
44051f30d8
Make the gpx/id/data API call work, and make gpx/create a POST method
...
so arguments can be handled more robustly.
2007-08-16 23:04:18 +00:00
Tom Hughes
9e0226113c
Don't bother setting user_id for each tracepoint - it is redundant as
...
the same information can be found by joining to gpx_files. It is also
never used, so the column is going to be removed.
2007-07-20 07:51:46 +00:00
Tom Hughes
30f740178f
Use a full path to find the file command.
2007-07-18 08:37:46 +00:00
Tom Hughes
16358a1d39
Improve MIME type determination for trace files.
2007-07-17 14:45:04 +00:00
Tom Hughes
bce2c88336
Provide a more sensible suggested filename when downloading traces.
2007-07-17 14:34:22 +00:00
Tom Hughes
dcad29dad0
Split the rest action into sparate read, update and delete actions thus
...
allowing authorization to be done on a per-action basis without worring
about the method. This should make the user API work.
Also do a lot of cleanup of the controllers.
2007-06-27 17:27:10 +00:00
Tom Hughes
d781f42016
Avoid reading traces and trace images into memory when sending them to
...
the client, and make sure the MIME type is correct for trace files.
2007-06-21 23:19:25 +00:00
Tom Hughes
8284352436
Support tar archives of traces, with optional gzip or bzip2 compression.
2007-06-21 10:50:18 +00:00
Tom Hughes
6464d84c62
Add support for bzip2 compressed trace files.
2007-06-18 12:31:47 +00:00
Tom Hughes
7ecc1c4f21
Fix rm call to actually work...
2007-06-15 11:28:58 +00:00
Tom Hughes
bd5793f7a6
Improve reporting of errors in GPX uploads, and allow private traces
...
to be uploaded once again.
2007-06-12 08:52:19 +00:00
Tom Hughes
81021a1081
Only validate the presence of a description on create as we have old
...
records in the database with no description.
2007-06-10 09:08:22 +00:00
Tom Hughes
a7d41f09eb
Refactor GPX import code to make reimporting old traces easier.
2007-06-09 23:34:50 +00:00
Steve Coast
c72f6a4182
fix based from TomH-Home
2007-06-07 00:38:09 +00:00
Richard Fairhurst
6efdcaa993
Latest Potlatch, plus TomH's GPX fix
2007-06-06 09:59:59 +00:00
Steve Coast
a0e8c35c1b
various things from TomH
2007-05-29 23:25:41 +00:00
Steve Coast
e25cbb009a
various gpx bits
2007-05-10 22:14:11 +00:00
Steve Coast
49a1b4ef29
gpx api fixes
2007-04-07 17:55:37 +00:00
Steve Coast
01cfcbd845
GPX api done
2007-04-07 17:48:34 +00:00
Steve Coast
4434bac3b4
gpx import now fully works
2007-04-07 14:06:26 +00:00
Dan Moore
2709027882
API 0.4: User rename, view trace links, tag filter summary / see all link, traces testing
2007-03-29 22:14:39 +00:00
Dan Moore
d07277efba
API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing
...
* traces - added some routes, replicated data access / pagination, but presentation and pending file control not complete
* edit - setup so that applet can be loaded + token authorisation enabled
* API - tests out ok against applet, but had to change segment-node associations
* misc - gems version required upgraded to 1.2.3 (latest stable rails version), changed some find_first to find(:first... calls
2007-03-23 23:13:19 +00:00
Steve Coast
6559db51df
various gpx rails things
2006-12-06 17:55:22 +00:00
Steve Coast
a7e3b58b41
add tags to gpx files
2006-12-06 17:10:59 +00:00
Steve Coast
ece8999dcd
various gpx bits
2006-12-01 14:10:02 +00:00
Steve Coast
8ef8761fa5
trace stuff in rails port
2006-11-30 17:25:31 +00:00
Steve Coast
fb1467a944
GPX trace rails stuff
2006-11-27 19:52:18 +00:00
Steve Coast
b4c0bfd8fa
more basic framework
2006-07-28 21:53:30 +00:00