|
52 | 52 | @test GeoFormatTypes.val(EPSG(4326, 3855)) == (4326, 3855) |
53 | 53 | end |
54 | 54 |
|
| 55 | +@testset "Equality" begin |
| 56 | + @test ProjString("+proj=test") == ProjString("+proj=test") |
| 57 | + @test ProjJSON(Dict("type" => "GeographicCRS")) == ProjJSON(Dict("type" => "GeographicCRS")) |
| 58 | + @test ProjJSON("type: GeographicCRS") == ProjJSON("type: GeographicCRS") |
| 59 | + @test EPSG(4326) == EPSG(4326) |
| 60 | + @test EPSG(4326) != EPSG(3855) |
| 61 | + @test EPSG(4326) != EPSG(4326, 3855) |
| 62 | + @test EPSG(4326) != EPSG(3855, 4326) |
| 63 | + @test EPSG(4326, 3855) == EPSG(4326, 3855) |
| 64 | + @test WellKnownText("test") == WellKnownText("test") |
| 65 | + @test WellKnownBinary([1, 2, 3, 4]) == WellKnownBinary([1, 2, 3, 4]) |
| 66 | + @test WellKnownText2("test") == WellKnownText2("test") |
| 67 | + @test ESRIWellKnownText("test") == ESRIWellKnownText("test") |
| 68 | + @test WellKnownText(Extended(), "test") == WellKnownText(Extended(), "test") |
| 69 | + @test WellKnownBinary(Extended(), [1, 2, 3, 4]) == WellKnownBinary(Extended(), [1, 2, 3, 4]) |
| 70 | + @test WellKnownText2(CRS(), "test") == WellKnownText2(CRS(), "test") |
| 71 | + @test ESRIWellKnownText(Geom(), "test") == ESRIWellKnownText(Geom(), "test") |
| 72 | + @test GML("test") == GML("test") |
| 73 | + @test GML(Geom(), "test") == GML(Geom(), "test") |
| 74 | + @test GML(CRS(), "test") == GML(CRS(), "test") |
| 75 | + @test KML("test") == KML("test") |
| 76 | + @test GeoJSON("test") == GeoJSON("test") |
| 77 | +end |
| 78 | + |
55 | 79 | # `convert` placeholder methods |
56 | 80 | Base.convert(target::Type{<:GeoFormat}, mode::Union{Geom,Type{Geom}}, source::GeoFormat; kwargs...) = |
57 | 81 | (:geom, kwargs...) |
|
0 commit comments