Skip to content

Commit

Permalink
remove getgeom for wkbLineString
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Aug 17, 2022
1 parent bee5cb4 commit 792fd22
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ogr/geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 792fd22

Please sign in to comment.