Closed mathieu17g closed 2 years ago
I often have dataset with only one layer, shouldn't we set 0 as the default value of AG.getlayer(::AbstractDataset, ::Integer) to simplify the call to this function when dealing with one layer datasets ?
AG.getlayer(::AbstractDataset, ::Integer)
Sounds good to me! I would throw an error on AG.getlayer(ds) if there is more than one layer present, as I suggested here: https://github.com/evetion/GeoDataFrames.jl/issues/15.
AG.getlayer(ds)
Ok, I’ll make a PR
I often have dataset with only one layer, shouldn't we set 0 as the default value of
AG.getlayer(::AbstractDataset, ::Integer)
to simplify the call to this function when dealing with one layer datasets ?