Skip to content

Commit 7133eb1

Browse files
committed
hotfix geointerface for placemark
1 parent 5dd4faa commit 7133eb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KML.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ Base.@kwdef mutable struct Placemark <: Feature
341341
@feature
342342
@option Geometry::Geometry
343343
end
344-
GeoInterface.isfeature(o::Placemark) = true
344+
GeoInterface.isfeature(o::Type{Placemark}) = true
345+
GeoInterface.trait(o::Placemark) = GeoInterface.FeatureTrait()
345346
GeoInterface.properties(o::Placemark) = NamedTuple(Dict(f => getfield(o,f) for f in setdiff(fieldnames(Placemark), [:Geometry])))
346347
GeoInterface.geometry(o::Placemark) = o.Geometry
347348

0 commit comments

Comments
 (0)