Skip to content

Commit 53936f1

Browse files
committed
fix geodesic again
1 parent a41c257 commit 53936f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/GeometryOpsProjExt/segmentize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This holds the `segmentize` geodesic functionality.
22

3-
import GeometryOps: GeodesicSegments, _fill_linear_kernel!
3+
import GeometryOps: GeodesicSegments, _segmentize, _fill_linear_kernel!
44
import Proj
55

66
function GeometryOps.GeodesicSegments(; max_distance, equatorial_radius::Real=6378137, flattening::Real=1/298.257223563, geodesic::Proj.geod_geodesic = Proj.geod_geodesic(equatorial_radius, flattening))
@@ -10,7 +10,7 @@ end
1010
# This is the same method as in `transformations/segmentize.jl`,
1111
# but it constructs a Proj geodesic line every time.
1212
# Maybe this should be better...
13-
function _segmentize(method::Geodesic, geom, T::Union{GI.LineStringTrait, GI.LinearRingTrait}; max_distance)
13+
function _segmentize(method::Geodesic, geom, ::Union{GI.LineStringTrait, GI.LinearRingTrait}; max_distance)
1414
proj_geodesic = Proj.geod_geodesic(method.equatorial_radius, method.flattening)
1515
first_coord = GI.getpoint(geom, 1)
1616
x1, y1 = GI.x(first_coord), GI.y(first_coord)

0 commit comments

Comments
 (0)