From d940bf305a7c0953d8d2fa715d77451e91378678 Mon Sep 17 00:00:00 2001 From: rafaqz Date: Sat, 8 Oct 2022 18:24:13 +0200 Subject: [PATCH] cleanup --- src/ogr/geometry.jl | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/ogr/geometry.jl b/src/ogr/geometry.jl index c84b45e6..82af564c 100644 --- a/src/ogr/geometry.jl +++ b/src/ogr/geometry.jl @@ -1376,23 +1376,7 @@ function getgeom(geom::AbstractGeometry{wkbLineStringZM}, i::Integer) p = getpoint(geom, i) return createpoint(p[1], p[2], p[3]; m=getm(geom, i)) end -# -# function getgeom( -# geom::Union{ -# ArchGDAL.IGeometry{ArchGDAL.wkbLineString}, -# ArchGDAL.Geometry{ArchGDAL.wkbLineString}, -# }, # TODO All curves -# i::Integer, -# ) -# if geom.ptr == C_NULL -# return IGeometry{wkbUnknown}() -# end -# if is3d(geom) -# createpoint(getpoint(geom, i)[1:3]) -# else -# createpoint(getpoint(geom, i)[1:2]) -# end -# end + function unsafe_getgeom(geom::AbstractGeometry, i::Integer)::Geometry # NOTE(yeesian): GDAL.ogr_g_getgeometryref(geom, i) returns an handle to a # geometry within the container. The returned geometry remains owned by the