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

Update README.md to use GeometryOps #14

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following example models the distribution of _Anopheles nili_, a malaria vec
We'll use several other packages in addition to SpeciesDistributionModels
```julia
using SpeciesDistributionModels, Rasters, RasterDataSources, GBIF2, LibGEOS, ArchGDAL, StatsBase
import GeometryOps as GO
import SpeciesDistributionModels as SDM
```

Expand All @@ -28,7 +29,7 @@ presence_points = unique(occurrences.geometry)

The region of interest will be defined by a convex hull around our presence points, buffered by 5 degrees.
```julia
roi = buffer(convexhull(MultiPoint(LibGEOS.to_geos.(presence_points))), 5)
roi = GO.buffer(GO.convex_hull(presence_points), 5)
```

Now we'll load bioclimatic variables from WorldClim, using `RasterDataSources` and `Rasters`.
Expand Down Expand Up @@ -133,4 +134,4 @@ parent:
24.3333 0.00357797 0.00445221 0.00637058 0.00660174 0.00547219
24.5 0.00610894 0.00443861 0.00616782 0.00583453 0.00602396
24.6667 0.00440761 0.00360355 0.00649026 0.00615647 0.00665752
```
```