diff --git a/src/isin/georegion.jl b/src/isin/georegion.jl index 860393b7..a4f04c11 100644 --- a/src/isin/georegion.jl +++ b/src/isin/georegion.jl @@ -142,7 +142,7 @@ function isinGeoRegion( @info "$(modulelog()) - Performing a check to determine if the $(Child.name) GeoRegion ($(Child.ID)) is inside the $(polyG.name) GeoRegion ($(polyG.ID))" - lon,lat = coordGeoRegion(Child,n=n) + lon,lat = coordinates(Child,n=n) npts = length(lon) isin = 0 diff --git a/src/isin/point.jl b/src/isin/point.jl index 29fae42f..7aa28e1b 100644 --- a/src/isin/point.jl +++ b/src/isin/point.jl @@ -119,6 +119,23 @@ function isinGeoRegion( end +function isinGeoRegion( + Point :: Point2{<:Real}, + GeoReg :: TiltRegion; + tlon :: Real = 0, + tlat :: Real = 0, + throw :: Bool = true +) + + @info "$(modulelog()) - Performing a check to determine if the $(Child.name) GeoRegion ($(Child.ID)) is inside the $(tiltG.name) GeoRegion ($(tiltG.ID))" + + lon,lat = getTiltShape(GeoReg) + tgeo = PolyRegion("","","",lon,lat,save=false,verbose=false) + + isinGeoRegion(Point,tgeo,tlon=tlon,tlat=tlat,throw=throw) + +end + function isinGeoRegion( Point :: Point2{<:Real}, GeoReg :: PolyRegion;