diff --git a/src/ogr/geometry.jl b/src/ogr/geometry.jl index 25bfc18e..c1d55f1d 100644 --- a/src/ogr/geometry.jl +++ b/src/ogr/geometry.jl @@ -1229,16 +1229,6 @@ function getgeom(geom::AbstractGeometry, i::Integer)::IGeometry result == C_NULL && return IGeometry{wkbUnknown}() return IGeometry(GDAL.ogr_g_clone(result)) end -function getgeom( - geom::Union{ - IGeometry{wkbLineString}, - Geometry{wkbLineString}, - }, # TODO All curves - i::Integer, -)::IGeometry - geom.ptr == C_NULL && return IGeometry{wkbUnknown}() - return createpoint(getpoint(geom, i)[1:getcoorddim(geom)]) -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 @@ -1538,7 +1528,7 @@ other libraries or applications. ### Parameters * `flag`: `true` if non-linear geometries might be returned (default value). - `false` to ask for non-linear geometries to be approximated as linear + `false` to ask for non-linear geonetries to be approximated as linear geometries. ### Returns