Made ngeom to be stable, was a Union{Int64, Int32} before. coordinates(multipolygon) can now be correctly inferred.
It's a bit ugly to define thing(AbstractPoint, NonPoint), but it's required for the ambiguity checks. Might be good to understand why this is required.
Similarly, redefining coordinates here for both all geometries and multigeometries makes it inferrable. Julia really doesn't seem to like type inference through recursion.
Should partially fix #160.
Made ngeom to be stable, was a Union{Int64, Int32} before.
coordinates(multipolygon)
can now be correctly inferred.It's a bit ugly to define thing(AbstractPoint, NonPoint), but it's required for the ambiguity checks. Might be good to understand why this is required.
Similarly, redefining
coordinates
here for both all geometries and multigeometries makes it inferrable. Julia really doesn't seem to like type inference through recursion.