Commit graph

759 commits

Author SHA1 Message Date
Tom Hughes
9ff462e96c Remove pointless return statement. 2008-02-03 15:55:19 +00:00
Tom Hughes
d0d396f9b6 Fix indentation. 2008-02-03 15:38:53 +00:00
Tom Hughes
962573431e Move in_world? to GeoRecord model and correct comment. 2008-02-03 15:38:44 +00:00
Tom Hughes
8516ad87b3 Add missing sanitise_boundaries method that the API controller was
trying to call.
2008-02-03 15:38:02 +00:00
Tom Hughes
d04c6d6ccd Optimise the Potlatch whichways and getway calls a bit. 2008-02-03 12:56:25 +00:00
Tom Hughes
bf41ed31d8 The OSM layers use the 900913 projection, not 41001. 2008-02-01 19:54:20 +00:00
Richard Fairhurst
da76d64e93 Potlatch 0.7 2008-02-01 17:19:11 +00:00
Tom Hughes
59e2349b5a Make ways_for_node work with the multipart primary key stuff. 2008-01-28 08:54:45 +00:00
Tom Hughes
b8f87e0466 Fix typo. 2008-01-28 08:44:03 +00:00
Nick Black
051e44c63a fixed bug in add version rake task 2008-01-25 17:02:43 +00:00
Xin Zheng
2e2956d126 patched controller section of #648 2008-01-25 16:32:24 +00:00
Steve Coast
a855d20ba4 Most of a method to delete a way and all its nodes - but I'm waiting on splitting node tags out to their own table before finishing it. 2008-01-25 15:24:04 +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
Nick Black
2ce8177333 fixed null value bug in rake task 2008-01-25 14:26:39 +00:00
Xin Zheng
e7087af6bc minor changes 2008-01-25 13:57:42 +00:00
Xin Zheng
6b23aa550e added experimental xml template which is not yet used due to performance issues 2008-01-24 18:21:59 +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
9328e84ba1 Some node documentation 2008-01-24 13:04:04 +00:00
Steve Coast
db33aa6ff6 begin rdoc documentation 2008-01-24 12:53:21 +00:00
Nick Black
5692b8f341 commented out migration which deletes the ways column nodes 2008-01-24 11:24:32 +00:00
Nick Black
1613799be4 fixes syntax error 2008-01-24 11:09:06 +00:00
Xin Zheng
a59b23a18d added module 2008-01-24 11:07:46 +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
602b7b6d3f - Add missing null constraints.
- Drop pointless index on current_node_tags and order primary key correctly.
- Make version column of node history table auto increment.
2008-01-23 19:25:37 +00:00
Nick Black
6f6e827702 added task to add version numbers to nodes table 2008-01-23 18:39:29 +00:00
Nick Black
de93fe7707 created a temporary old nodes table to add version 2008-01-23 17:47:14 +00:00
Nick Black
84f3271091 removed unneeded migrations 015 and 014 2008-01-23 17:36:01 +00:00
Nick Black
4edd6d6fe9 migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm 2008-01-23 17:31:51 +00:00
Nick Black
8d2a4ee67a added migration to add a primary key on nodes id and version - should be run after rake db:node_version 2008-01-23 17:10:16 +00:00
Xin Zheng
6de965520b added application.yml, refactored map method 2008-01-23 16:43:30 +00:00
Tom Hughes
ea132b001d Rename initialiser to fix typo. 2008-01-23 14:07:14 +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
Nick Black
c93c841ed2 updated rake task to grab 1000 records at a time 2008-01-23 12:49:34 +00:00
Nick Black
e6fab03800 rake task to populate node_tags and current_node_tags tables with values from the nodes and current_nodes tables. migration 011 and 012 must be applied before this task. 2008-01-23 11:44:34 +00:00
Nick Black
c5f33db61e adds two migrations to create old_node_tags and node_tags table and indexes. Does not change existing table structure or populate tables with any data 2008-01-23 11:41:56 +00:00
Tom Hughes
6319d81c07 You need at least version 0.9.1 of the composite keys gem. 2008-01-23 09:54:21 +00:00
Tom Hughes
bee38e63a3 Make things work with multipart keys. 2008-01-23 09:53:35 +00:00
Richard Fairhurst
bdf1b8823a few bits of tidying 2008-01-23 01:49:22 +00:00
Tom Hughes
c57bc002ac Send UK postcode searches to the namefinder as well as npemaps. 2008-01-23 00:49:21 +00:00
Xin Zheng
986144a49c added some tests 2008-01-22 18:46:41 +00:00
Tom Hughes
4d06426c2a Revert to rails 2.0.1 again 2008-01-22 18:00:30 +00:00
Tom Hughes
46f729cd84 Put the daemons generator plugin back. 2008-01-22 17:58:04 +00:00
Xin Zheng
e9f2e31a5d un-commented sqlsessionstore 2008-01-22 17:23:25 +00:00
Xin Zheng
3d221843be added rspec on rails as external 2008-01-22 17:22:49 +00:00
Tom Hughes
33afd6fa7e Rename requires.rb to composite_primary_keys.rb so we have one file for
each system we are initialising.
2008-01-22 17:16:08 +00:00
Xin Zheng
70c005313c removed require ruby-debug line 2008-01-22 16:56:13 +00:00
Xin Zheng
613325a0d0 added rspec folder/files 2008-01-22 16:55:14 +00:00
Xin Zheng
5cc239f329 changing back to rails 2.0.1 2008-01-22 16:51:07 +00:00
Xin Zheng
726836f31e extracted require statement from environment.rb to intializers/requires.rb 2008-01-22 16:50:14 +00:00
Steve Coast
1c6ac719e6 replace whichways with rails-friendly code 2008-01-22 16:44:17 +00:00