From a5cade85e40fde827ae466f33b5032edb675bc6a Mon Sep 17 00:00:00 2001 From: navispatial <88932567+navispatial@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:49:06 +0200 Subject: [PATCH] fix(geobase): fix Ellipsoid toString, equality and hashCode #256 --- dart/geobase/lib/src/common/reference/ellipsoid.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dart/geobase/lib/src/common/reference/ellipsoid.dart b/dart/geobase/lib/src/common/reference/ellipsoid.dart index 7b75a1b5..3a538fa0 100644 --- a/dart/geobase/lib/src/common/reference/ellipsoid.dart +++ b/dart/geobase/lib/src/common/reference/ellipsoid.dart @@ -68,14 +68,19 @@ class Ellipsoid { @override String toString() { - return '$a,$b,$f'; + return '$id;$name;$a;$b;$f'; } @override bool operator ==(Object other) => identical(this, other) || - (other is Ellipsoid && a == other.a && b == other.b && f == other.f); + (other is Ellipsoid && + id == other.id && + name == other.name && + a == other.a && + b == other.b && + f == other.f); @override - int get hashCode => Object.hash(a, b, f); + int get hashCode => Object.hash(id, name, a, b, f); }