Skip to content

Commit 6177640

Browse files
committed
Fix method error with geodesic
1 parent 3841ec8 commit 6177640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/GeometryOpsProjExt/segmentize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end
1111
# but it constructs a Proj geodesic line every time.
1212
# Maybe this should be better...
1313
function _segmentize(method::Geodesic, geom, ::Union{GI.LineStringTrait, GI.LinearRingTrait}; max_distance)
14-
proj_geodesic = Proj.geod_geodesic(method.equatorial_radius, method.flattening)
14+
proj_geodesic = Proj.geod_geodesic(method.semimajor_axis #= same thing as equatorial radius =#, 1/method.inv_flattening)
1515
first_coord = GI.getpoint(geom, 1)
1616
x1, y1 = GI.x(first_coord), GI.y(first_coord)
1717
new_coords = NTuple{2, Float64}[]

0 commit comments

Comments
 (0)