GeoInterface.jl
GeoInterface.jl copied to clipboard
Remove ambiguity and implement `getgeom`, `ngeom` for `Wrappers.Point`
This was mentioned on Slack, the output is probably a bit better than a method ambiguity error now.
Not sure nothing is the best return value here.
We could also just return the point from getgeom and ngeom could be 1
Or error
Error might be best?
Error is pretty safe as we can always change it later, but returning nothing is permanent
Maybe GI.getgeom(point, 1) should return the point? a bit like how numbers work just returning themselves?
Then GI.ngeom(point) should return 1
Eh that sounds too recursive for my liking...let's just error
Where is this one at?