Skip to content

Commit 3786718

Browse files
committed
merge
1 parent 0fd83e5 commit 3786718

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/KML.jl

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Base.getindex(f::Folder, i) = f.Features === nothing ? throw(BoundsError(f, i))
104104
function __init__()
105105
# Register error hints for KMZ support
106106
Base.Experimental.register_error_hint(IO._read_kmz_file_from_path_error_hinter, ErrorException)
107-
107+
108108
# Only check for conflicts when not precompiling
109109
if !Base.generating_output()
110110
check_geometry_conflicts()
@@ -115,16 +115,16 @@ function check_geometry_conflicts()
115115
geometry_types = [:Point, :LineString, :LinearRing, :Polygon, :MultiGeometry]
116116
blocked_exports = Symbol[]
117117
conflicts_with = Set{Symbol}()
118-
118+
119119
for geom_type in geometry_types
120120
if isdefined(Main, geom_type)
121121
main_type = getfield(Main, geom_type)
122122
kml_type = getfield(KML, geom_type)
123-
123+
124124
# Check if Main's type is NOT KML's type
125125
if main_type !== kml_type && !isa(main_type, Module)
126126
push!(blocked_exports, geom_type)
127-
127+
128128
# Try to identify source package
129129
try
130130
# For types, use parentmodule directly
@@ -148,13 +148,13 @@ function check_geometry_conflicts()
148148
end
149149
end
150150
end
151-
151+
152152
if !isempty(blocked_exports)
153153
conflict_source = isempty(conflicts_with) ? "" : " (from $(join(collect(conflicts_with), ", ")))"
154-
154+
155155
@warn """
156156
KML.jl exports were blocked by existing definitions$conflict_source: $(join(blocked_exports, ", "))
157-
157+
158158
To use KML's geometry types:
159159
• Import KML first:
160160
using KML
@@ -166,15 +166,11 @@ function check_geometry_conflicts()
166166
end
167167
end
168168

169-
<<<<<<< parsing_perf_enhancement
170-
end # module KML
171-
=======
172-
# Add this type-level implementation for GeoInterface v1.x
169+
# Add this type-level implementation for GeoInterface v1.x
173170
GeoInterface.isgeometry(::Type{<:Geometry}) = true
174171

175-
# Add the missing ncoord implementations for GeoInterface v1.x
172+
# Add the missing ncoord implementations for GeoInterface v1.x
176173
GeoInterface.ncoord(::GeoInterface.LineStringTrait, ls::LineString) = 2
177174
GeoInterface.ncoord(::GeoInterface.LinearRingTrait, lr::LinearRing) = 2
178175

179176
end #module
180-
>>>>>>> main

0 commit comments

Comments
 (0)