diff --git a/Project.toml b/Project.toml index 6e251a4e..1a8c2d8c 100644 --- a/Project.toml +++ b/Project.toml @@ -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" @@ -23,7 +23,7 @@ CEnum = "0.4" ColorTypes = "0.10, 0.11" DiskArrays = "0.3" Extents = "0.1" -GDAL = "1.3" +GDAL = "~1.3" GeoFormatTypes = "0.3, 0.4" GeoInterface = "1" GeoInterfaceRecipes = "1.0" diff --git a/src/geointerface.jl b/src/geointerface.jl index 3ba4b361..950e1a89 100644 --- a/src/geointerface.jl +++ b/src/geointerface.jl @@ -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) diff --git a/test/test_geometry.jl b/test/test_geometry.jl index 2b2a14cd..8676190e 100644 --- a/test/test_geometry.jl +++ b/test/test_geometry.jl @@ -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