further refinement to revert
authorRichard Fairhurst <richard@systemed.net>
Fri, 30 Nov 2007 20:52:38 +0000 (20:52 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 30 Nov 2007 20:52:38 +0000 (20:52 +0000)
app/controllers/amf_controller.rb

index fcee6db3eed0e4a98d6ce574d4bc89368a73547f..6aa64f6a76813952d974d319d1e69b2a247e9750 100644 (file)
@@ -707,7 +707,7 @@ def readwayquery_old(id,version,historic)
          unless row.nil? then
            nx=row['longitude'].to_f
            ny=row['latitude'].to_f
-           if (row['currentway']) then rows[i]['id']=-1 end
+           if (row['currentway'] && (nx!=rows[i]['longitude'].to_f or ny!=rows[i]['latitude'].to_f or row['tags']!=rows[i]['tags'])) then rows[i]['id']=-1 end
                rows[i]['longitude']=nx
                rows[i]['latitude' ]=ny
                rows[i]['tags'     ]=row['tags']