Skip to content

Commit ba4977f

Browse files
committed
pub(geobase): stable release 1.3.0
1 parent d903c66 commit ba4977f

File tree

9 files changed

+20
-14
lines changed

9 files changed

+20
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 2024-07-26
22

3-
* ✨ The [stable version 1.3.0](https://github.com/navibyte/geospatial/milestone/5) with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)
3+
* ✨ The [stable version 1.3.0](https://github.com/navibyte/geospatial/milestone/5) with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)!
44
* All docs: [geospatial.navibyte.dev](https://geospatial.navibyte.dev/).
55
* Published packages at pub.dev:
66
* [geobase version 1.3.0](https://pub.dev/packages/geobase/versions/1.3.0)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ schemes, vector data models and formats, and geospatial Web APIs.
1111

1212
[![Dart](https://img.shields.io/badge/dart-%230175C2.svg?style=for-the-badge&logo=dart&logoColor=white)](https://dart.dev/) [![Flutter](https://img.shields.io/badge/Flutter-%2302569B.svg?style=for-the-badge&logo=Flutter&logoColor=white)](https://flutter.dev/)
1313

14+
✨ New (2024-07-26): The stable version 1.3.0 with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)!
15+
1416
✨ New (2024-05-26): The new documentation website ([geospatial.navibyte.dev](https://geospatial.navibyte.dev/)) for [geobase](https://geospatial.navibyte.dev/v1/geobase/)
1517
and [geodata](https://geospatial.navibyte.dev/v1/geodata/)
1618
package documentation published along with the stable version 1.2.0.
@@ -316,7 +318,7 @@ Code | Description
316318
## :newspaper_roll: News
317319

318320
2024-07-26
319-
* ✨ The [stable version 1.3.0](https://github.com/navibyte/geospatial/milestone/5) with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)
321+
* ✨ The [stable version 1.3.0](https://github.com/navibyte/geospatial/milestone/5) with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)!
320322
* All docs: [geospatial.navibyte.dev](https://geospatial.navibyte.dev/).
321323
* Published packages at pub.dev:
322324
* [geobase version 1.3.0](https://pub.dev/packages/geobase/versions/1.3.0)

dart/geobase/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## 1.3.0
22

3-
[geobase release 1.3.0](https://github.com/navibyte/geospatial/milestone/5)
3+
✨ New (2024-07-26): The stable version 1.3.0 with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)!
44

5-
✨ New (2024-07-26): The stable version 1.3.0 with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)
5+
[geobase release 1.3.0](https://github.com/navibyte/geospatial/milestone/5)
66

77
🧩 Features:
88
* [Add visual center point calculations for polygons #237](https://github.com/navibyte/geospatial/issues/237)

dart/geobase/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and [WKB](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geomet
1010

1111
## Features
1212

13-
✨ New (2024-07-26): The stable version 1.3.0 with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)
13+
✨ New (2024-07-26): The stable version 1.3.0 with centroid, polylabel, point-in-polygon and other cartesian 2D calculations enhanced - [read more](https://geospatial.navibyte.dev/v1/geobase/geometry-calculations/)!
1414

1515
✨ New (2024-05-26): The new documentation website ([geospatial.navibyte.dev](https://geospatial.navibyte.dev/)) for the [geobase](https://geospatial.navibyte.dev/v1/geobase/)
1616
package documentation published along with the stable version 1.2.0.
@@ -304,7 +304,7 @@ Add the dependency in your `pubspec.yaml`:
304304

305305
```yaml
306306
dependencies:
307-
geobase: ^1.3.0-dev.1
307+
geobase: ^1.3.0
308308
```
309309
310310
Import it:

dart/geobase/example/geobase_example.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,17 +782,17 @@ void _geometricCartesianPolygonFromGeometryManipulation() {
782782
print('Last position: ${exteriorRing.lastOrNull}'); // 35.0,10.0
783783
print('X coordinate at position 1: ${exteriorRing.x(1)}'); // 45.0
784784
print('Y coordinate at position 3: ${exteriorRing.y(3)}'); // 20.0
785-
785+
786786
// Looping positions by accessing coordinate values (best to use this option
787787
// when a position series is constructed from a double coordinate value array)
788-
for(int i = 0, len = exteriorRing.positionCount; i < len; i++) {
789-
print('X: ${exteriorRing.x(i)} Y: ${exteriorRing.y(i)} (at $i)');
788+
for (int i = 0, len = exteriorRing.positionCount; i < len; i++) {
789+
print('X: ${exteriorRing.x(i)} Y: ${exteriorRing.y(i)} (at $i)');
790790
}
791791

792792
// Looping positions by accessing `Position` objects (best to use this option
793793
// when a position series is constructed from `Position` instances)
794-
for(final pos in exteriorRing.positions) {
795-
print('X: ${pos.x} Y: ${pos.y}');
794+
for (final pos in exteriorRing.positions) {
795+
print('X: ${pos.x} Y: ${pos.y}');
796796
}
797797
}
798798

dart/geobase/lib/src/geometric/cartesian/areal/cartesian_areal_extension.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ extension CartesianArealExtension on Iterable<PositionSeries> {
188188
/// [destination] calculated in a cartesian 2D plane.
189189
///
190190
/// Returns `double.infinity` if a distance could not be calculated.
191-
///
191+
///
192192
/// Examples:
193-
///
193+
///
194194
/// ```dart
195195
/// // Polygon data (with an exterior ring and one interior ring as a hole) as an
196196
/// // `Iterable<PositionSeries>`. Each ring is represented by an instance of

dart/geobase/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: geobase
22
description: Geospatial data, spherical geodesy, projections, tiling schemes, and vector formats (GeoJSON, WKT, WKB).
3-
version: 1.3.0-dev.1
3+
version: 1.3.0
44
repository: https://github.com/navibyte/geospatial
55
homepage: https://geospatial.navibyte.dev/
66

dart/geobase/test/coordinates/position_series_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,18 +1086,21 @@ void main() {
10861086
dist,
10871087
);
10881088
}
1089+
10891090
void testLinear(PositionSeries series, Position pos, double dist) {
10901091
expect(
10911092
series.distanceTo2D(pos, dimensionality: Dimensionality.linear),
10921093
dist,
10931094
);
10941095
}
1096+
10951097
void testPunctual(PositionSeries series, Position pos, double dist) {
10961098
expect(
10971099
series.distanceTo2D(pos, dimensionality: Dimensionality.punctual),
10981100
dist,
10991101
);
11001102
}
1103+
11011104
final s1 = [0.0, 0.0, 1.0, 1.0, 3.0, 1.0].positions();
11021105
testAreal(s1, [2.0, 0.0].xy, 0.6324555320336759);
11031106
testAreal(s1, [1.5, 0.0].xy, 0.4743416490252569);

dart/geobase/test/coordinates/position_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ void main() {
483483
void testDist(Position start, Position end, double dist) {
484484
expect(pos.distanceToLineSegment2D(start, end), dist);
485485
}
486+
486487
testDist([2.0, 2.0].xy, [2.0, 2.0].xy, 0.0);
487488
testDist([1.9, 2.0].xy, [2.1, 2.0].xy, 0.0);
488489
testDist([1.9, 3.0].xy, [2.1, 3.0].xy, 1.0);

0 commit comments

Comments
 (0)