We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ad4b6 commit dbc0332Copy full SHA for dbc0332
src/io.jl
@@ -43,6 +43,10 @@ Write a GeoInterface.jl compatible feature or geometry to a GeoJSON `String`.
43
write(io, obj::GeoJSONT) = JSON3.write(io, obj)
44
write(obj::GeoJSONT) = JSON3.write(obj)
45
46
+# GeoInterface supported objects
47
+write(io, obj) = JSON3.write(io, _lower(obj))
48
+write(obj) = JSON3.write(_lower(obj))
49
+
50
function _lower(obj)
51
if GI.isfeaturecollection(obj)
52
base = (type="FeatureCollection", features=_lower.(GI.getfeature(obj)))
0 commit comments