Skip to content

Commit

Permalink
Forward GeoInterface.centroid
Browse files Browse the repository at this point in the history
Noticed that this was missing, so decided to correct it.
  • Loading branch information
asinghvi17 committed Jan 26, 2023
1 parent 8c4cc1f commit 1ab5bfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/geointerface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ let pointtypes = (wkbPoint, wkbPoint25D, wkbPointM, wkbPointZM),
end
end

function GeoInterface.centroid(::GeometryTraits, geom::AbstractGeometry)
return centroid(geom)
end

function GeoInterface.asbinary(::GeometryTraits, geom::AbstractGeometry)
return toWKB(geom)
end
Expand Down

0 comments on commit 1ab5bfa

Please sign in to comment.