Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rv2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Phyks
rv2
Commits
50567d58
Commit
50567d58
authored
Dec 01, 2014
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elevation_db in a scope
parent
8025f5af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
src/route_create_databases_from_pbf.cc
src/route_create_databases_from_pbf.cc
+15
-11
No files found.
src/route_create_databases_from_pbf.cc
View file @
50567d58
...
...
@@ -223,7 +223,9 @@ int main(int argc, char ** argv)
unsigned
int
iter
=
0
;
while
(
1
)
{
unsigned
int
modified
=
0
;
unsigned
int
modified
;
modified
=
0
;
iter
++
;
for
(
auto
ways_it
=
ways
.
begin
();
ways_it
!=
ways
.
end
();
...
...
@@ -263,9 +265,6 @@ int main(int argc, char ** argv)
char
zreq
[
RV_ZCHAR_LENGTH
];
char
zfilename
[
RV_ZCHAR_LENGTH
];
// elevation_db (read-only)
elevation
elevation_db
(
argv
[
2
]);
// cleaning (without checking status, lmdb will check after and fail if this
// is not goot)
...
...
@@ -288,14 +287,19 @@ int main(int argc, char ** argv)
RV_BLANKLINE
;
fprintf
(
stderr
,
"Computing elevation on nodes
\n
"
);
for
(
auto
nodes_it
=
nodes
.
begin
();
nodes_it
!=
nodes
.
end
();
nodes_it
++
)
{
nodes_it
->
second
.
elevation
=
elevation_db
.
get_elevation
(
nodes_it
->
second
.
lon
,
nodes_it
->
second
.
lat
);
// elevation_db (read-only)
elevation
elevation_db
(
argv
[
2
]);
for
(
auto
nodes_it
=
nodes
.
begin
();
nodes_it
!=
nodes
.
end
();
nodes_it
++
)
{
nodes_it
->
second
.
elevation
=
elevation_db
.
get_elevation
(
nodes_it
->
second
.
lon
,
nodes_it
->
second
.
lat
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment