Open evetion opened 2 years ago
how do we know whether createpoint(0,0,0)
should be wkbPoint25D
or wkbPointM
?
My implicit understanding was that createpoint(0,0,0)
would have PointZ semantics, and PointM and Point25D are not supported in this package yet.
@yeesian I agree, regular arguments should be spatial dimensions. M could use a keyword argument.
Does that mean
createpoint(0,0)
-> ArchGDAL.IGeometry{ArchGDAL.wkbPoint}
createpoint(0,0,0)
-> ArchGDAL.IGeometry{ArchGDAL.wkbPoint25D}
(per https://gis.stackexchange.com/a/7869)createpoint(0,0,m=0)
-> ArchGDAL.IGeometry{ArchGDAL. wkbPointM}
createpoint(0,0,0,m=0)
-> ArchGDAL.IGeometry{ArchGDAL.wkbPointZM}
?
Yeah, that would work. Otherwise just use a different function with m last.
Discussed is3d
and ismeasured
in #303, which are now implemented in #290. Methods to actually create/set these coordinates (especially for m
) are still missing.
While going through #290, I noticed some issues with geometry types, especially the non-default ones with Z and/or M dimensions.
getm
. (added in #290)ArchGDAL.IGeometry{ArchGDAL.wkbPoint}
, while the latter should bewkbPoint25D
orwkbPointM
.