Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,9 @@
isfeaturecollection(fc::Type{<:FeatureCollection}) = true
trait(fc::FeatureCollection) = FeatureCollectionTrait()

nfeature(::FeatureCollectionTrait, fc::FeatureCollection) =
nfeature(t::FeatureCollectionTrait, fc::FeatureCollection) =

Check warning on line 655 in src/wrappers.jl

View check run for this annotation

Codecov / codecov/patch

src/wrappers.jl#L655

Added line #L655 was not covered by tests
_parent_is_fc(fc) ? nfeature(t, parent(fc)) : length(parent(fc))
getfeature(::FeatureCollectionTrait, fc::FeatureCollection) =
getfeature(t::FeatureCollectionTrait, fc::FeatureCollection) =

Check warning on line 657 in src/wrappers.jl

View check run for this annotation

Codecov / codecov/patch

src/wrappers.jl#L657

Added line #L657 was not covered by tests
_parent_is_fc(fc) ? getfeature(t, parent(fc)) : parent(fc)
getfeature(t::FeatureCollectionTrait, fc::FeatureCollection, i::Integer) =
_parent_is_fc(fc) ? getfeature(t, parent(fc), i) : parent(fc)[i]
Expand All @@ -665,4 +665,4 @@

_parent_is_fc(x) = isfeaturecollection(parent(x))

end # module
end # module
Loading