Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/geointerface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,13 @@ end

GI.crs(::GeoJSONT) = GeoFormatTypes.EPSG(4326)

@static if :crstrait in names(GI)
# All GeoJSON geometries are geographic-by-default
# If you don't want this behaviour in e.g. GeometryOps,
# then you can set the manifold directly to Planar (or a different ellipsoid).
# An extension on GeometryOpsCore should add the definition of `best_manifold(::GeoJSONType)`
# to be WGS84.
GI.crstrait(::GeoJSONT) = GI.GeographicTrait()
end

GeoInterfaceRecipes.@enable_geo_plots GeoJSON.AbstractGeometry
Loading