Open mattwigway opened 1 year ago
I think these are internal. Try
julia> LibGEOS.LineString([[1.1, 2.2], [3.3, 4.4]])
LINESTRING (1.1 2.2, 3.3 4.4)
julia> LibGEOS.Point([1.1, 2.2])
POINT (1.1 2.2)
Might be good to namespace the C API, so there is a better distinction between the public and private methods.
In #149 and v0.8.0, LibGEOS geometry operations now work on wrapped geometries. However, the create... functions still return a bare GEOS pointer:
This makes previously-working code like this stop working with a MethodError:
The PR description for #149 mentions that this error can occur, but implies that removing
.ptr
should solve the problem. However, in the code linked above, there is no use of.ptr
. Switching to use LibGEOS.{Point,LineString} instead of LibGEOS.create{Point,LineString} solves the problem. I'm not sure if this is a bug in LibGEOS.jl or if the create... functions are internal, but as far as I can tell the documentation doesn't say not to use them.