From 4d2df2a4e9ac87dbd52219281247ce9506f6342c Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Tue, 7 May 2024 06:20:09 -0400 Subject: [PATCH] fix toStrings --- .../com/onthegomap/planetiler/reader/SimpleFeature.java | 8 +++++--- .../com/onthegomap/planetiler/reader/SourceFeature.java | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SimpleFeature.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SimpleFeature.java index d147b2c676..995886933f 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SimpleFeature.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SimpleFeature.java @@ -226,8 +226,10 @@ public int hashCode() { @Override public String toString() { - return "Feature[source=" + getSource() + ", source layer=" + getSourceLayer() + - "id=" + id() + ", geometry type=" + latLonGeometry().getGeometryType() + ", " + - "tags=" + tags + ']'; + return "Feature[source=" + getSource() + + ", source layer=" + getSourceLayer() + + ", id=" + id() + + ", geometry type=" + latLonGeometry().getGeometryType() + + ", tags=" + tags + ']'; } } diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeature.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeature.java index bff96599f9..478bedae9c 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeature.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeature.java @@ -325,4 +325,12 @@ public boolean hasRelationInfo() { return relationInfos != null && !relationInfos.isEmpty(); } + @Override + public String toString() { + return "Feature[source=" + getSource() + + ", source layer=" + getSourceLayer() + + ", id=" + id() + + ", tags=" + tags + ']'; + } + }