Skip to content

Commit

Permalink
bugfix for converting AbstractMultiLineString to MultiLineString
Browse files Browse the repository at this point in the history
  • Loading branch information
cchderrick authored and yeesian committed Oct 31, 2018
1 parent 02bb014 commit 1ab41f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geotypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ MultiLineString(line::AbstractLineString) = MultiLineString(Vector{Position}[coo
MultiLineString(lines::Vector{Vector{T}}) where {T <: AbstractPosition} = MultiLineString(coordinates(lines))
MultiLineString(lines::Vector{Vector{T}}) where {T <: AbstractPoint} = MultiLineString(coordinates(lines))
MultiLineString(lines::Vector{T}) where {T <: AbstractLineString} = MultiLineString(Vector{Position}[map(coordinates,lines)])
MultiLineString(lines::AbstractMultiLineString) = MultiLineString(coordinates(line))
MultiLineString(lines::AbstractMultiLineString) = MultiLineString(coordinates(lines))
MultiLineString(poly::AbstractPolygon) = MultiLineString(coordinates(poly))

mutable struct Polygon <: AbstractPolygon
Expand Down

0 comments on commit 1ab41f2

Please sign in to comment.