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

Include real coordinates in debug geojson mode #1966

Merged
merged 2 commits into from
Feb 11, 2016
Merged

Conversation

karenzshea
Copy link
Contributor

#1956

For building with the DEBUG_GEOMETRY=ON, previously the output geojson only has OSM node ids in the coordinates field, this uses the osrm.nodes file to lookup real lon/lat coordinates and write them.

@danpat @TheMarex

@danpat
Copy link
Member

danpat commented Feb 11, 2016

@karenzshea Can you squash these commits and update the commit message to be the same as the message for this PR? Other than that, looks good to go!

{
nodes_input_stream.read((char *)&current_node, sizeof(extractor::QueryNode));
node_lookup_map[current_node.node_id] = util::FixedPointCoordinate(current_node.lat, current_node.lon);
} nodes_input_stream.close();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run clang-format (similat to gofmt for example) that re-formats against our .clang-format specs.

@@ -4,6 +4,8 @@
#include "contractor/contractor_config.hpp"
#include "extractor/query_node.hpp"
#include "osrm/coordinate.hpp"
#include <ios>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this library?

@TheMarex TheMarex merged commit a647cb9 into develop Feb 11, 2016
@TheMarex TheMarex deleted the readymade-debug branch February 11, 2016 23:42
@MoKob
Copy link

MoKob commented Feb 12, 2016

why did we just merge more undefined behaviour into the codebase?

@TheMarex
Copy link
Member

This is code that is only used for debug purposes. It's not even compiled in production.

@mikelnrd
Copy link

Hi

I've just posted an issue related to this (issue #2024) and am hoping that flagging it here is ok. This thread seems to contain the people who have touched the debug geoJSON mode code so I thought flagging it here would make sense (but I've written a separate comment so as not to clog up this pull request).

@TheMarex , @danpat, @daniel-j-h in particular... I'm getting a blank geoJSON file out when running osrm-prepare with the option --debug-geometry. The option is there and --debug-turns is working fine for me with osrm-extract. I'd would really appreciate any help if you have time to check out issue #2024. Thanks!

Mike

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.

6 participants