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

Add GeoInterfaceMakie as a weak dependency #404

Merged
merged 13 commits into from
Dec 27, 2023
12 changes: 12 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ GDAL = "add2ef01-049f-52c4-9ee2-e494f65e021a"
GeoFormatTypes = "68eda718-8dee-11e9-39e7-89f7f65f511f"
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f"
GeoInterfaceRecipes = "0329782f-3d07-4b52-b9f6-d3137cf03c7a"
GeoInterfaceMakie = "0edc0954-3250-4c18-859d-ec71c1660c08"
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[weakdeps]
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"

[extensions]
ArchGDALGeoInterfaceMakie = "Makie"

[compat]
CEnum = "0.4, 0.5"
ColorTypes = "0.10, 0.11"
Expand All @@ -27,6 +34,11 @@ GDAL = "1.5.1"
GeoFormatTypes = "0.4.2"
GeoInterface = "1"
GeoInterfaceRecipes = "1.0"
GeoInterfaceMakie = "0.1"
ImageCore = "0.8, 0.9, 0.10"
Makie = "0.20"
Tables = "1"
julia = "1.6"

["extras"]
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
7 changes: 7 additions & 0 deletions ext/ArchGDALGeoInterfaceMakie.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module ArchGDALGeoInterfaceMakie
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module ArchGDALGeoInterfaceMakie
module ArchGDALMakieExt

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is the extension actually triggers on Makie not GeoInterfaceMakie

using GeoInterfaceMakie: GeoInterfaceMakie
using ArchGDAL: ArchGDAL

GeoInterfaceMakie.@enable ArchGDAL.IGeometry
GeoInterfaceMakie.@enable ArchGDAL.Geometry
end