-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update version to 0.1.0 * add dependency: geotypes * update changelog and readme
- Loading branch information
1 parent
defff8f
commit 3b84eed
Showing
9 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
## 0.1.0 | ||
- Several bug fixes, including for LineString, FeatureCollection and Polygon equality | ||
- Increase test coverage | ||
- Relying on the GeoJson objects from geotypes instead of turf | ||
|
||
Huge thank to [@jsiedentop](https://github.com/jsiedentop) for helping! | ||
|
||
## 0.0.3 | ||
- This is solely a quality release, without new functionality. | ||
|
||
## 0.0.2 | ||
Huge thank to [@jsiedentop](https://github.com/jsiedentop) for helping! | ||
|
||
## 0.0.2 | ||
- Several bugfixes, including fix of reversed and shifted polygon. | ||
|
||
## 0.0.1 | ||
Huge thank to [@armantorkzaban](https://github.com/armantorkzaban), [@lukas-h](https://github.com/lukas-h) for helping! | ||
|
||
## 0.0.1 | ||
- Initial version. | ||
|
||
Huge thank to [@armantorkzaban](https://github.com/armantorkzaban), [@lukas-h](https://github.com/lukas-h) for helping! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# turf_equality | ||
|
||
Comparison of two GeoJSON objects, based on the [turf pub-package](https://pub.dev/packages/turf). | ||
Comparison of two GeoJSON objects, based on the [geotypes](https://pub.dev/packages/geotypes) library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'dart:math'; | ||
|
||
/// Round number to precision | ||
num round(num value, [num precision = 0]) { | ||
if (!(precision >= 0)) { | ||
throw Exception("precision must be a positive number"); | ||
} | ||
num multiplier = pow(10, precision); | ||
num result = (value * multiplier); | ||
return result.round() / multiplier; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
name: turf_equality | ||
description: Comparison of two GeoJSON objects, based on the turf pub-package | ||
version: 0.0.3 | ||
version: 0.1.0 | ||
repository: https://github.com/dartclub/turf_equality | ||
|
||
environment: | ||
sdk: ">=2.17.3 <4.0.0" | ||
|
||
dependencies: | ||
turf: ^0.0.8 | ||
|
||
geotypes: ^0.0.2 | ||
dev_dependencies: | ||
lints: ^3.0.0 | ||
test: ^1.19.3 | ||
json_serializable: ^6.1.1 | ||
build_runner: ^2.1.5 | ||
analyzer: ^6.4.0 | ||
benchmark: ^0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters