Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format latitudes and longitudes as %7f in XML output #1507

Merged
merged 2 commits into from Mar 30, 2017

Conversation

gravitystorm
Copy link
Collaborator

This matches the double formatting in XML from cgimap. Fixes #341.

This matches the double formatting in XML from cgimap. Fixes openstreetmap#341.
@tomhughes
Copy link
Member

There are test failures where things are selecting on the XML output:

  1) Failure:
ApiControllerTest#test_map_inclusive [/home/tom/src/osm/rails/test/controllers/api_controller_test.rb:92]:
Expected exactly 1 element matching "node[id='3'][lat='3.0'][lon='3.0'][version='1'][changeset='2'][visible='true'][timestamp='2007-01-01T00:00:00Z']", found 0..
Expected: 1
  Actual: 0


  2) Failure:
ApiControllerTest#test_map [/home/tom/src/osm/rails/test/controllers/api_controller_test.rb:70]:
Expected exactly 1 element matching "node[id='3'][lat='3.0'][lon='3.0'][version='1'][changeset='2'][visible='true'][timestamp='2007-01-01T00:00:00Z']", found 0..
Expected: 1
  Actual: 0


  3) Failure:
WayControllerTest#test_full [/home/tom/src/osm/rails/test/controllers/way_controller_test.rb:77]:
Expected exactly 1 element matching "osm node[id='3'][version='1'][lat='3.0'][lon='3.0']", found 0..
Expected: 1
  Actual: 0

@tomhughes tomhughes merged commit 6afd136 into openstreetmap:master Mar 30, 2017
@gravitystorm gravitystorm deleted the node_precision_2 branch May 25, 2017 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants