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

Factor out primitives and types to GeometryOpsCore.jl #220

Merged
merged 10 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/Manifest.toml
/GeometryOpsCore/Manifest.toml
/docs/build/
/docs/src/source/
.vscode/
Expand Down
9 changes: 9 additions & 0 deletions GeometryOpsCore/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name = "GeometryOpsCore"
uuid = "05efe853-fabf-41c8-927e-7063c8b9f013"
authors = ["Anshul Singhvi <[email protected]> and contributors"]
version = "0.1.0"

[deps]
DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
8 changes: 8 additions & 0 deletions GeometryOpsCore/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# GeometryOpsCore

This is a "core" package for [GeometryOps.jl](https://github.com/JuliaGeo/GeometryOps.jl), that defines some basic primitive functions and types for GeometryOps.

Generally, you would depend on this to use either the GeometryOps types (like `Linear`, `Spherical`, etc) or the primitive functions like `apply`, `applyreduce`, `flatten`, etc.
All of these are also accessible from GeometryOps, so it's preferable that you use GeometryOps directly.

Tests are in the main GeometryOps tests, we don't have separate tests for GeometryOpsCore since it's in a monorepo structure.
28 changes: 28 additions & 0 deletions GeometryOpsCore/src/GeometryOpsCore.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module GeometryOpsCore

using Base.Threads: nthreads, @threads, @spawn

import GeoInterface
import GeoInterface as GI
import GeoInterface: Extents

# Import all names from GeoInterface and Extents, so users can do `GO.extent` or `GO.trait`.
for name in names(GeoInterface)
@eval using GeoInterface: $name
end
for name in names(Extents)
@eval using GeoInterface.Extents: $name
end

using Tables
using DataAPI

include("keyword_docs.jl")
include("types.jl")

include("apply.jl")
include("applyreduce.jl")
include("other_primitives.jl")
include("geometry_utils.jl")

end
Loading
Loading