Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Oct 8, 2022
1 parent d1dffa5 commit d940bf3
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/ogr/geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d940bf3

Please sign in to comment.