Skip to content

Commit 228ed90

Browse files
committed
release date
1 parent a4147ff commit 228ed90

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Note: Minor version `0.X.0` update might break the API, It's recommended to pin
88

99
## [unreleased]
1010

11-
## [2.0.0] - TBD
11+
## [2.0.0] - 2025-05-05
1212

1313
* remove custom `__iter__`, `__getitem__` and `__len__` methods from `GeometryCollection` class **breaking change**
1414

docs/src/intro.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ assert feat.properties["name"] == "jeff"
2323

2424
fc = FeatureCollection(type="FeatureCollection", features=[geojson_feature, geojson_feature])
2525
assert fc.type == "FeatureCollection"
26-
assert len(fc) == 2
26+
assert len(fc.features) == 2
2727
assert type(fc.features[0].geometry) == Point
2828
assert fc.features[0].properties["name"] == "jeff"
2929
```
@@ -42,9 +42,8 @@ assert fc.features[0].properties["name"] == "jeff"
4242

4343
##### For GeometryCollection and FeatureCollection
4444

45-
- `__iter__`: iterates over geometries or features
46-
- `__len__`: returns geometries or features count
47-
- `__getitem__(index)`: gets geometry or feature at a given index
45+
- `iter()`: iterates over geometries or features
46+
- `length`: returns geometries or features count
4847

4948
## Advanced usage
5049

0 commit comments

Comments
 (0)