Skip to content

Commit

Permalink
Small typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion authored and rafaqz committed Jun 20, 2022
1 parent a5a76fc commit 608717d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ GeoInterface.coordnames(::PointTrait, geom::NamedTuple{Keys,NTuple{N,T}}) where

# Default features using NamedTuple and AbstractArray

const NamedTupleFeature = NamedTuple{(:geometry,:properties)}
const NamedTupleFeature = NamedTuple{(:geometry, :properties)}

GeoInterface.isfeature(::Type{<:NamedTupleFeature}) = true
GeoInterface.trait(::NamedTupleFeature) = FeatureTrait()
Expand All @@ -41,3 +41,4 @@ GeoInterface.isfeaturecollection(::Type{<:ArrayFeatureCollection}) = true
GeoInterface.trait(::ArrayFeatureCollection) = FeatureCollectionTrait()
GeoInterface.nfeature(::FeatureCollectionTrait, fc::ArrayFeatureCollection) = Base.length(fc)
GeoInterface.getfeature(::FeatureCollectionTrait, fc::ArrayFeatureCollection, i::Integer) = fc[i]
GeoInterface.geometrycolumns(fc::ArrayFeatureCollection) = (:geometry,)
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ isfeaturecollection(x::T) where {T} = isfeaturecollection(T)
isfeaturecollection(::Type{T}) where {T} = false

"""
GeoInterface.geometrycolumns(featurecollection) => (:geom,)
GeoInterface.geometrycolumns(featurecollection) => (:geometry,)
Retrieve the geometrycolumn(s) of `featurecollection`; the fields (or columns in a table)
which contain geometries that support GeoInterface.
Expand Down
2 changes: 1 addition & 1 deletion test/test_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ using Test

GeoInterface.isfeature(::Type{<:MyFeature}) = true
GeoInterface.trait(feature::MyFeature) = FeatureTrait()
GeoInterface.geometry(f::MyFeature) = f.geometry
GeoInterface.geometry(f::MyFeature) = f.geometry
GeoInterface.properties(f::MyFeature) = f.properties
GeoInterface.extent(f::MyFeature) = nothing

Expand Down

0 comments on commit 608717d

Please sign in to comment.