Skip to content

Commit 5aad199

Browse files
committed
add print to debug
1 parent 1a95f7c commit 5aad199

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmogony_builder"
3-
version = "0.12.4"
3+
version = "0.12.5"
44
authors = ["Adrien Matissart <[email protected]>", "Antoine Desbordes <[email protected]>"]
55
license = "Apache-2.0"
66
repository = "https://github.com/osm-without-borders/cosmogony"

cosmogony/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmogony"
3-
version = "0.12.4"
3+
version = "0.12.5"
44
authors = ["Adrien Matissart <[email protected]>", "Antoine Desbordes <[email protected]>"]
55
license = "Apache-2.0"
66
repository = "https://github.com/osm-without-borders/cosmogony"

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ fn type_zones(
164164
fn compute_labels(zones: &mut [Zone], filter_langs: &[String]) {
165165
info!("computing all zones's label");
166166
let nb_zones = zones.len();
167+
println!("{:?}", nb_zones);
167168
for i in 0..nb_zones {
168169
let (mslice, z) = MutableSlice::init(zones, i);
169170
z.compute_labels(&mslice, filter_langs);
@@ -192,12 +193,14 @@ pub fn create_ontology(
192193
type_zones(zones, stats, country_code, &inclusions)?;
193194

194195
build_hierarchy(zones, inclusions);
195-
196+
println!("{:?}", zones);
197+
println!("aaaaaaaa");
196198
if !disable_voronoi {
197199
compute_additional_cities(zones, parsed_pbf, ztree);
198200
}
199-
201+
println!("bbbbbbb");
200202
zones.iter_mut().for_each(|z| z.compute_names());
203+
println!("{:?}", zones);
201204

202205
compute_labels(zones, filter_langs);
203206

src/zone_ext.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ impl ZoneExt for Zone {
8686
.unwrap_or_else(|| "".to_string());
8787

8888
let international_names = get_international_names(tags, name);
89-
9089
Some(Self {
9190
id: index,
9291
osm_id: osm_id_str,
@@ -326,7 +325,6 @@ impl ZoneExt for Zone {
326325
})
327326
.collect();
328327

329-
println!("{:?}", international_labels);
330328
self.international_labels = international_labels;
331329
self.label = label;
332330
}

0 commit comments

Comments
 (0)