Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also dispatch GI.isgeometry on Type. #307

Merged
merged 2 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3"
keywords = ["GDAL", "IO"]
license = "MIT"
desc = "A high level API for GDAL - Geospatial Data Abstraction Library"
version = "0.9.0"
version = "0.9.1"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand Down
2 changes: 1 addition & 1 deletion src/geointerface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let pointtypes = (wkbPoint, wkbPoint25D, wkbPointM, wkbPointZM),
end
GeoInterface.geometry(feat::AbstractFeature) = getgeom(feat, 0)

GeoInterface.isgeometry(geom::AbstractGeometry) = true
GeoInterface.isgeometry(::Type{<:AbstractGeometry}) = true
@enable_geo_plots AbstractGeometry

function GeoInterface.geomtrait(geom::AbstractGeometry)
Expand Down
1 change: 1 addition & 0 deletions test/test_geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import GeoFormatTypes as GFT
AG.createpoint(100, 70) do point
@test GI.testgeometry(point)
end
@test GI.isgeometry(AG.IGeometry)
end

@testset "Create a Point" begin
Expand Down