Skip to content

Commit

Permalink
Update spatialreference.org URL to fix tests (#407)
Browse files Browse the repository at this point in the history
* Update spatialreference.org URL to fix tests

* Update wktsample

* Add Aqua
  • Loading branch information
visr authored Jan 23, 2024
1 parent 2692a28 commit 1749cc0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Extents = "411431e0-e8b7-467b-b5e0-f676ba4f2910"
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"
GeoInterfaceRecipes = "0329782f-3d07-4b52-b9f6-d3137cf03c7a"
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

Expand All @@ -28,17 +28,18 @@ ArchGDALMakieExt = "Makie"
[compat]
CEnum = "0.4, 0.5"
ColorTypes = "0.10, 0.11"
Dates = "<0.0.1,1"
DiskArrays = "0.3"
Extents = "0.1"
GDAL = "1.5.1"
GeoFormatTypes = "0.4.2"
GeoInterface = "1"
GeoInterfaceRecipes = "1.0"
GeoInterfaceMakie = "0.1"
GeoInterfaceRecipes = "1.0"
ImageCore = "0.8, 0.9, 0.10"
Makie = "0.20"
Tables = "1"
julia = "1.6"

["extras"]
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
[extras]
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
4 changes: 4 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DiskArrays = "3c3547ce-8d99-4f5e-a174-61eb10b00ae3"
Expand All @@ -14,3 +15,6 @@ SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.8"
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Test
using Dates
using GDAL
import ArchGDAL
import Aqua

# ensure all testing files are present
include("remotefiles.jl")
Expand Down Expand Up @@ -37,6 +39,7 @@ include("remotefiles.jl")
include("test_images.jl")
include("test_utils.jl")
include("test_prepared_geometry.jl")
Aqua.test_all(ArchGDAL; ambiguities = false, stale_deps = false, piracies = false)
return nothing
end
end
4 changes: 2 additions & 2 deletions test/test_spatialref.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ import GeoInterface
@testset "URL Import" begin
url4326 = "http://spatialreference.org/ref/epsg/4326/ogcwkt/"
wkt4326 = "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]"
urlsample = "http://spatialreference.org/ref/epsg/2039/esriwkt/"
wktsample = "PROJCS[\"Israel / Israeli TM Grid\",GEOGCS[\"Israel\",DATUM[\"Israel_1993\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6141\"]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",31.7343936111111],PARAMETER[\"central_meridian\",35.2045169444444],PARAMETER[\"scale_factor\",1.0000067],PARAMETER[\"false_easting\",219529.584],PARAMETER[\"false_northing\",626907.39],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH]]"
urlsample = "http://spatialreference.org/ref/epsg/2039/esriwkt.txt"
wktsample = "PROJCS[\"Israel 1993 / Israeli TM Grid\",GEOGCS[\"Israel 1993\",DATUM[\"Israel_1993\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6141\"]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",31.7343936111111],PARAMETER[\"central_meridian\",35.2045169444444],PARAMETER[\"scale_factor\",1.0000067],PARAMETER[\"false_easting\",219529.584],PARAMETER[\"false_northing\",626907.39],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH]]"
AG.importURL(url4326) do spatialref
spatialref2 = AG.importURL(urlsample)
@test AG.toWKT(spatialref2) == wktsample
Expand Down

0 comments on commit 1749cc0

Please sign in to comment.