]> git.openstreetmap.org Git - rails.git/log
rails.git
17 years agoRound latitude and longitude values in links to a sensible number of
Tom Hughes [Tue, 23 Oct 2007 09:19:29 +0000 (09:19 +0000)]
Round latitude and longitude values in links to a sensible number of
decimal places for the zoom level whilst still preserving accuracy
sufficient to position the map within a few pixels.

The relationship between zoom level, decimal places, and the accuracy
with which the map can then be positioned in pixels is as follows:

  Zoom  Decimals  Accuracy (pixels)

   1       0            1.42
   2       0            2.84
   3       1            0.57
   4       1            1.14
   5       1            2.28
   6       2            0.46
   7       2            0.91
   8       2            1.82
   9       3            0.36
   10      3            0.73
   11      3            1.46
   12      4            0.29
   13      4            0.58
   14      4            1.17
   15      5            0.23
   16      5            0.47
   17      5            0.93
   18      6            0.19

So the worse case is at zoom 2 where accuracy is still within 3 pixels.

Based on a patch by rjmunro.

17 years agoPatch from crschmidt to add an obvious permalink to the bottom right
Tom Hughes [Tue, 23 Oct 2007 08:45:23 +0000 (08:45 +0000)]
Patch from crschmidt to add an obvious permalink to the bottom right
corner of the slippy map. Tested on FF2, IE7, Opera and Safari.

Closes #566.

17 years agorevised keymapnik11/12, new versions of keymapnik6-10
Steve Chilton [Sun, 21 Oct 2007 19:03:32 +0000 (19:03 +0000)]
revised keymapnik11/12, new versions of keymapnik6-10

17 years agoRender an empty text string instead of nothing (which actually generate a
Tom Hughes [Wed, 17 Oct 2007 23:22:51 +0000 (23:22 +0000)]
Render an empty text string instead of nothing (which actually generate a
single space character) for 410 and 412 responses as there is a bug in
lighttpd (http://trac.lighttpd.net/trac/ticket/1055) that prevents it
passing on the response body for these codes, leading to the client blocking
waiting for the data until it times out. Closes #537.

17 years agoFix geolocation to actually work...
Tom Hughes [Fri, 12 Oct 2007 16:34:38 +0000 (16:34 +0000)]
Fix geolocation to actually work...

17 years agoDon't try and print the distance to a friend that has not set a
Tom Hughes [Fri, 12 Oct 2007 13:03:08 +0000 (13:03 +0000)]
Don't try and print the distance to a friend that has not set a
home location. Closes #560.

17 years agoActually showing the closest neighbours instead of a fixed number of people within...
Dan Karran [Thu, 11 Oct 2007 18:47:30 +0000 (18:47 +0000)]
Actually showing the closest neighbours instead of a fixed number of people within the search radius

17 years agoFactor out common code for models which deal with geographic points
Tom Hughes [Wed, 10 Oct 2007 23:00:25 +0000 (23:00 +0000)]
Factor out common code for models which deal with geographic points
into a base class.

17 years agoReduce number of nearby people listed to the closest 5 by default, and show friends...
Dan Karran [Wed, 10 Oct 2007 19:22:16 +0000 (19:22 +0000)]
Reduce number of nearby people listed to the closest 5 by default, and show friends ahead of nearby people.

17 years agoGet URL selection right...
Tom Hughes [Wed, 10 Oct 2007 15:00:13 +0000 (15:00 +0000)]
Get URL selection right...

17 years agoGive OpenLayers three different hosts (all really pointing at tile) to
Tom Hughes [Wed, 10 Oct 2007 14:45:44 +0000 (14:45 +0000)]
Give OpenLayers three different hosts (all really pointing at tile) to
get mapnik tiles from so it loads tiles more quickly.

17 years agoAdd an API call to find the map tiles which have changed in a given period.
Tom Hughes [Tue, 9 Oct 2007 23:41:26 +0000 (23:41 +0000)]
Add an API call to find the map tiles which have changed in a given period.

17 years agoUpdate OpenLayers to the 2.5 release.
Tom Hughes [Tue, 9 Oct 2007 23:08:14 +0000 (23:08 +0000)]
Update OpenLayers to the 2.5 release.

17 years agoAdd a maptile_for_point() function for MySQL to work out which slippy
Tom Hughes [Tue, 9 Oct 2007 22:59:32 +0000 (22:59 +0000)]
Add a maptile_for_point() function for MySQL to work out which slippy
map tile a given point lies in.

17 years agoPotlatch 0.4a, fix duplicate POI bug
Richard Fairhurst [Tue, 9 Oct 2007 09:15:50 +0000 (09:15 +0000)]
Potlatch 0.4a, fix duplicate POI bug

17 years agoReinstate the deadlock_retry plugin.
Tom Hughes [Tue, 9 Oct 2007 07:37:16 +0000 (07:37 +0000)]
Reinstate the deadlock_retry plugin.

17 years agoSplit out sidebar code from the search code so it can be reused for the
Tom Hughes [Mon, 8 Oct 2007 23:32:58 +0000 (23:32 +0000)]
Split out sidebar code from the search code so it can be reused for the
map key more cleanly.

17 years agoImproving friend capabilities so you can now add and remove friends as you wish....
Dan Karran [Mon, 8 Oct 2007 22:21:15 +0000 (22:21 +0000)]
Improving friend capabilities so you can now add and remove friends as you wish. Friends will be notified when you add them. You can view a list of friends on your profile page (which has been reorganised a little).

17 years agoexperimental pop-out map key
Richard Fairhurst [Mon, 8 Oct 2007 22:10:26 +0000 (22:10 +0000)]
experimental pop-out map key

17 years agoPass a list of visible nodes when generating XML for a way. Closes #553.
Tom Hughes [Mon, 8 Oct 2007 16:54:34 +0000 (16:54 +0000)]
Pass a list of visible nodes when generating XML for a way. Closes #553.

17 years agoForce C99 mode.
Tom Hughes [Mon, 8 Oct 2007 07:54:54 +0000 (07:54 +0000)]
Force C99 mode.

17 years agoPotlatch 0.4 (hopefully)
Richard Fairhurst [Sun, 7 Oct 2007 20:26:00 +0000 (20:26 +0000)]
Potlatch 0.4 (hopefully)

17 years agoUse a consistent name for the variable holding the relation count.
Tom Hughes [Sun, 7 Oct 2007 14:16:14 +0000 (14:16 +0000)]
Use a consistent name for the variable holding the relation count.

17 years agoCope with empty areas better.
Tom Hughes [Sun, 7 Oct 2007 12:44:27 +0000 (12:44 +0000)]
Cope with empty areas better.

17 years agoMake lighttpd reject 0.4 API requests without talking to rails.
Tom Hughes [Sun, 7 Oct 2007 11:47:24 +0000 (11:47 +0000)]
Make lighttpd reject 0.4 API requests without talking to rails.

17 years agoOS X-compatible makefile supplied by agnat
Richard Fairhurst [Sun, 7 Oct 2007 11:15:09 +0000 (11:15 +0000)]
OS X-compatible makefile supplied by agnat

17 years agoMerge rails_port_0.5
Gabriel Ebner [Sun, 7 Oct 2007 10:51:20 +0000 (10:51 +0000)]
Merge rails_port_0.5

17 years agoadd relations to stats
Frederik Ramm [Fri, 5 Oct 2007 01:10:23 +0000 (01:10 +0000)]
add relations to stats

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Thu, 4 Oct 2007 14:52:09 +0000 (14:52 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoCorrect instructions for creating the database to ensure that the
Tom Hughes [Thu, 4 Oct 2007 10:26:30 +0000 (10:26 +0000)]
Correct instructions for creating the database to ensure that the
default character set is specified correctly.

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Sun, 30 Sep 2007 19:13:57 +0000 (19:13 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoFix typo in HTML version of account confirmation message.
Tom Hughes [Sun, 30 Sep 2007 08:50:53 +0000 (08:50 +0000)]
Fix typo in HTML version of account confirmation message.

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Sat, 29 Sep 2007 17:44:17 +0000 (17:44 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoRescale GPS points correctly when downgrading from v5 to v4.
Tom Hughes [Fri, 28 Sep 2007 23:33:32 +0000 (23:33 +0000)]
Rescale GPS points correctly when downgrading from v5 to v4.

17 years agoMake the name of the lon/lng virtual attribute on trace points consistent.
Tom Hughes [Fri, 28 Sep 2007 23:19:19 +0000 (23:19 +0000)]
Make the name of the lon/lng virtual attribute on trace points consistent.

17 years agoFall back to a pure ruby update implementation if the tile_for_point
Tom Hughes [Fri, 28 Sep 2007 23:18:13 +0000 (23:18 +0000)]
Fall back to a pure ruby update implementation if the tile_for_point
function is not present in MySQL.

17 years agofix for preconditions
Frederik Ramm [Fri, 28 Sep 2007 20:47:01 +0000 (20:47 +0000)]
fix for preconditions

17 years agoFall back to adding tile numbers the hard way if the MySQL function is
Tom Hughes [Fri, 28 Sep 2007 18:32:11 +0000 (18:32 +0000)]
Fall back to adding tile numbers the hard way if the MySQL function is
not available.

17 years agoDocument installation of database functions on MacOS X.
Tom Hughes [Fri, 28 Sep 2007 14:57:31 +0000 (14:57 +0000)]
Document installation of database functions on MacOS X.

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Thu, 27 Sep 2007 09:05:17 +0000 (09:05 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoProvide both HTML and plain text versions of account confirmation and
Tom Hughes [Wed, 26 Sep 2007 23:01:11 +0000 (23:01 +0000)]
Provide both HTML and plain text versions of account confirmation and
password reset emails to try and avoid problems with link truncation.

17 years agobugfix searching relations
Frederik Ramm [Wed, 26 Sep 2007 15:53:09 +0000 (15:53 +0000)]
bugfix searching relations

17 years agonew calls
Frederik Ramm [Wed, 26 Sep 2007 15:48:00 +0000 (15:48 +0000)]
new calls

17 years agosupport searching relations
Frederik Ramm [Wed, 26 Sep 2007 15:06:50 +0000 (15:06 +0000)]
support searching relations

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Wed, 26 Sep 2007 14:15:21 +0000 (14:15 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoadded tagging of two-node ways created from tagged or unwayed segments. untested.
Frederik Ramm [Wed, 26 Sep 2007 09:54:49 +0000 (09:54 +0000)]
added tagging of two-node ways created from tagged or unwayed segments. untested.

17 years agoImprove consistency of trace upload forms and error handling.
Tom Hughes [Tue, 25 Sep 2007 23:18:32 +0000 (23:18 +0000)]
Improve consistency of trace upload forms and error handling.

Fixes #543 and #544.

17 years agorails_port_0.5: Merge rails_port.
Gabriel Ebner [Tue, 25 Sep 2007 21:16:44 +0000 (21:16 +0000)]
rails_port_0.5: Merge rails_port.

17 years agoProcess traces in order.
Tom Hughes [Mon, 24 Sep 2007 22:59:34 +0000 (22:59 +0000)]
Process traces in order.

17 years agorails_port_0.5: Add the index before loading the data as suggested by Tom Hughes.
Gabriel Ebner [Mon, 24 Sep 2007 13:31:11 +0000 (13:31 +0000)]
rails_port_0.5: Add the index before loading the data as suggested by Tom Hughes.

17 years agoremoved LOCAL from LOAD DATA INFILE
Frederik Ramm [Mon, 24 Sep 2007 09:32:16 +0000 (09:32 +0000)]
removed LOCAL from LOAD DATA INFILE

17 years agoadded with=4 to list of uninteresting tags, also source=PGS* (was: source=PGS exactly)
Frederik Ramm [Mon, 24 Sep 2007 09:11:33 +0000 (09:11 +0000)]
added with=4 to list of uninteresting tags, also source=PGS* (was: source=PGS exactly)

17 years agorails_port_0.5: Merge rails_port r4664.
Gabriel Ebner [Sun, 23 Sep 2007 20:37:16 +0000 (20:37 +0000)]
rails_port_0.5: Merge rails_port r4664.

17 years agoAllow trace descriptions and tags to be edited.
Tom Hughes [Sun, 23 Sep 2007 17:05:31 +0000 (17:05 +0000)]
Allow trace descriptions and tags to be edited.

17 years agoAvoid warning.
Tom Hughes [Sun, 23 Sep 2007 16:54:48 +0000 (16:54 +0000)]
Avoid warning.

17 years agoAdd migration for quadtiling of node tables.
Tom Hughes [Sun, 23 Sep 2007 13:42:56 +0000 (13:42 +0000)]
Add migration for quadtiling of node tables.

17 years agorails_port_0.5: Merge rails_port r4643
Gabriel Ebner [Sat, 22 Sep 2007 19:55:33 +0000 (19:55 +0000)]
rails_port_0.5: Merge rails_port r4643

17 years agoUse tile based query when creating a way from unwayed segments.
Tom Hughes [Fri, 21 Sep 2007 16:25:18 +0000 (16:25 +0000)]
Use tile based query when creating a way from unwayed segments.

17 years agoScale lat and lon values for unwayed segments.
Tom Hughes [Fri, 21 Sep 2007 16:09:24 +0000 (16:09 +0000)]
Scale lat and lon values for unwayed segments.

17 years agoUse tile based queries for unwayed segments.
Tom Hughes [Fri, 21 Sep 2007 16:04:36 +0000 (16:04 +0000)]
Use tile based queries for unwayed segments.

17 years agoUse quadtiling for the node tables.
Tom Hughes [Fri, 21 Sep 2007 13:43:43 +0000 (13:43 +0000)]
Use quadtiling for the node tables.

17 years agoImprove alert messages when database is offline.
Tom Hughes [Fri, 21 Sep 2007 09:49:28 +0000 (09:49 +0000)]
Improve alert messages when database is offline.

17 years agoLearn to spell.
Tom Hughes [Fri, 21 Sep 2007 08:14:01 +0000 (08:14 +0000)]
Learn to spell.

17 years agoCheck API status correctly.
Tom Hughes [Fri, 21 Sep 2007 08:13:17 +0000 (08:13 +0000)]
Check API status correctly.

17 years agoAllow the API to be taken offline completely as well as being put into
Tom Hughes [Thu, 20 Sep 2007 23:51:11 +0000 (23:51 +0000)]
Allow the API to be taken offline completely as well as being put into
readonly mode,

17 years agorails_port_0.5/007_remove_segments_helper: Only convert segments that don't have...
Gabriel Ebner [Thu, 20 Sep 2007 15:14:25 +0000 (15:14 +0000)]
rails_port_0.5/007_remove_segments_helper: Only convert segments that don't have the same tags as their way.

17 years agoMerge rails_port as of r4613 & fix tests.
Gabriel Ebner [Thu, 20 Sep 2007 14:37:29 +0000 (14:37 +0000)]
Merge rails_port as of r4613 & fix tests.

17 years agoInclude a reply link in email notifications of messages.
Tom Hughes [Wed, 19 Sep 2007 10:37:32 +0000 (10:37 +0000)]
Include a reply link in email notifications of messages.

17 years agoCope with change in number of decimals for GPS point positions.
Tom Hughes [Wed, 19 Sep 2007 09:18:59 +0000 (09:18 +0000)]
Cope with change in number of decimals for GPS point positions.

17 years agoChange the gps_points table to store latitude and longitude values to
Tom Hughes [Tue, 18 Sep 2007 23:29:47 +0000 (23:29 +0000)]
Change the gps_points table to store latitude and longitude values to
seven decimal places to given a worse case precision of about 1cm.

17 years agoMake the tile ID column unsigned as intended.
Tom Hughes [Tue, 18 Sep 2007 23:06:40 +0000 (23:06 +0000)]
Make the tile ID column unsigned as intended.

17 years agoLimit the size that a rails process can grow to.
Tom Hughes [Sun, 16 Sep 2007 23:14:40 +0000 (23:14 +0000)]
Limit the size that a rails process can grow to.

17 years agoInclude message body in notification emails for convenience.
Dan Karran [Sun, 16 Sep 2007 14:52:50 +0000 (14:52 +0000)]
Include message body in notification emails for convenience.

17 years agov0.3, includes Douglas-Peucker for GPS tracks
Richard Fairhurst [Fri, 14 Sep 2007 17:41:35 +0000 (17:41 +0000)]
v0.3, includes Douglas-Peucker for GPS tracks

17 years agoAllow column names in area conditions to be qualified, and do so for
Tom Hughes [Fri, 14 Sep 2007 11:16:25 +0000 (11:16 +0000)]
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.

17 years agofixed "full" and "relationships_for_object" modes
Frederik Ramm [Thu, 13 Sep 2007 11:08:15 +0000 (11:08 +0000)]
fixed "full" and "relationships_for_object" modes

17 years agoadded tests for way and relation controllers
Frederik Ramm [Thu, 13 Sep 2007 11:06:33 +0000 (11:06 +0000)]
added tests for way and relation controllers

17 years agofixed ways_for_node call
Frederik Ramm [Thu, 13 Sep 2007 00:05:13 +0000 (00:05 +0000)]
fixed ways_for_node call

17 years agoAdd a migration to upgrade gps_points for quad tile support.
Tom Hughes [Wed, 12 Sep 2007 17:59:48 +0000 (17:59 +0000)]
Add a migration to upgrade gps_points for quad tile support.

17 years agoMake the MySQL tile_for_point function take arguments in the same order
Tom Hughes [Wed, 12 Sep 2007 17:46:03 +0000 (17:46 +0000)]
Make the MySQL tile_for_point function take arguments in the same order
as the ruby version.

17 years agoFill in the tile ID before saving a trace point. Also add appropriate
Tom Hughes [Wed, 12 Sep 2007 14:33:37 +0000 (14:33 +0000)]
Fill in the tile ID before saving a trace point. Also add appropriate
validation to the tracepoint model.

17 years agorails_port_0.5/006_remove_segments_helper: Ignore more tags when deciding which segme...
Gabriel Ebner [Wed, 12 Sep 2007 14:08:42 +0000 (14:08 +0000)]
rails_port_0.5/006_remove_segments_helper: Ignore more tags when deciding which segments to convert.

17 years agoDropping duplicate GPS points is very expensive and rarely finds
Tom Hughes [Wed, 12 Sep 2007 13:49:58 +0000 (13:49 +0000)]
Dropping duplicate GPS points is very expensive and rarely finds
anything much to drop, so don't bother.

17 years agoUse QuadTiling in GPS point queries.
Tom Hughes [Wed, 12 Sep 2007 12:14:45 +0000 (12:14 +0000)]
Use QuadTiling in GPS point queries.

17 years agoPotlatch v0.2a: display GPS traces, some bugfixes
Richard Fairhurst [Wed, 12 Sep 2007 10:07:26 +0000 (10:07 +0000)]
Potlatch v0.2a: display GPS traces, some bugfixes

17 years agoQuadTile infrastructure.
Tom Hughes [Tue, 11 Sep 2007 23:55:25 +0000 (23:55 +0000)]
QuadTile infrastructure.

17 years agoSend an email notification out when a new message is waiting on the site for you.
Dan Karran [Wed, 5 Sep 2007 22:27:22 +0000 (22:27 +0000)]
Send an email notification out when a new message is waiting on the site for you.

17 years agoUse BETWEEN for the node selection in the map API call as MySQL seems to
Tom Hughes [Wed, 5 Sep 2007 17:20:09 +0000 (17:20 +0000)]
Use BETWEEN for the node selection in the map API call as MySQL seems to
process it more efficiently.

17 years agoHiding new diary entry map by default to save some space, allowing people to expand...
Dan Karran [Wed, 5 Sep 2007 17:18:18 +0000 (17:18 +0000)]
Hiding new diary entry map by default to save some space, allowing people to expand it if desired.

17 years agoDon't bother deleting points which don't exist before importing a
Tom Hughes [Tue, 4 Sep 2007 16:22:03 +0000 (16:22 +0000)]
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.

17 years agoa few message prettyness things
Steve Coast [Tue, 4 Sep 2007 14:20:42 +0000 (14:20 +0000)]
a few message prettyness things

17 years agoRevert SteveC's edit as blank title are now banned.
Tom Hughes [Tue, 4 Sep 2007 14:08:17 +0000 (14:08 +0000)]
Revert SteveC's edit as blank title are now banned.

17 years agoAdd extra validation to messages and diary entries.
Tom Hughes [Tue, 4 Sep 2007 14:05:13 +0000 (14:05 +0000)]
Add extra validation to messages and diary entries.

17 years agolink to 'no subject' if message title/subject is blank
Steve Coast [Tue, 4 Sep 2007 13:43:31 +0000 (13:43 +0000)]
link to 'no subject' if message title/subject is blank

17 years agoAdding geo microformat to trace viewing pages.
Dan Karran [Mon, 3 Sep 2007 22:40:04 +0000 (22:40 +0000)]
Adding geo microformat to trace viewing pages.

17 years agoAllow people to add coordinates to diary entries, add them to the RSS feeds and diary...
Dan Karran [Mon, 3 Sep 2007 22:37:42 +0000 (22:37 +0000)]
Allow people to add coordinates to diary entries, add them to the RSS feeds and diary display pages using geo microformat.

17 years agoAdding 'New diary post' link to main Users' diaries page to help logged-in users...
Dan Karran [Mon, 3 Sep 2007 20:46:34 +0000 (20:46 +0000)]
Adding 'New diary post' link to main Users' diaries page to help logged-in users find how to post.

17 years agolatest Yahoo Maps API seems to be more reliable
Richard Fairhurst [Sun, 2 Sep 2007 17:51:03 +0000 (17:51 +0000)]
latest Yahoo Maps API seems to be more reliable

17 years agotypo
Richard Fairhurst [Sun, 2 Sep 2007 13:55:51 +0000 (13:55 +0000)]
typo

17 years agofix dragging, add some new pois (already!)
Richard Fairhurst [Sun, 2 Sep 2007 13:42:47 +0000 (13:42 +0000)]
fix dragging, add some new pois (already!)