Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiedentop committed Feb 17, 2024
1 parent 22c412c commit bf976ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/src/booleans/boolean_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ Position _getMidpoint(Position position1, Position position2) {
);
}

bool isPolygonInPolygon(Polygon polygon1, Polygon poligon2) =>
_isPolygonInGeoJsonPolygon(polygon1, poligon2);
bool isPolygonInPolygon(Polygon polygon1, Polygon polygon2) =>
_isPolygonInGeoJsonPolygon(polygon1, polygon2);

bool isPolygonInMultiPolygon(Polygon polygon1, MultiPolygon poligon2) =>
_isPolygonInGeoJsonPolygon(polygon1, poligon2);
bool isPolygonInMultiPolygon(Polygon polygon1, MultiPolygon polygon2) =>
_isPolygonInGeoJsonPolygon(polygon1, polygon2);

bool _isPolygonInGeoJsonPolygon(
Polygon polygon1,
Expand Down
6 changes: 3 additions & 3 deletions test/booleans/within_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main() {
);
});

test('within - point in multipoligon with hole', () {
test('within - point in multipolygon with hole', () {
loadGeoJson(
'./test/examples/booleans/point_in_polygon/in/multipoly-with-hole.geojson',
(path, geoJson) {
Expand Down Expand Up @@ -131,12 +131,12 @@ Feature<Polygon> polygon(List<List<List<int>>> coordinates) {
);
}

extension PointsExtention on List<List<int>> {
extension PointsExtension on List<List<int>> {
List<Position> toPositions() =>
map((position) => Position.of(position)).toList(growable: false);
}

extension PolygonPointsExtentions on List<List<List<int>>> {
extension PolygonPointsExtensions on List<List<List<int>>> {
List<List<Position>> toPositions() =>
map((element) => element.toPositions()).toList(growable: false);
}

0 comments on commit bf976ad

Please sign in to comment.