Skip to content

Commit

Permalink
Merge pull request #259 from Netherlands3D/fix/adding-wfs-layers-with…
Browse files Browse the repository at this point in the history
…out-outputformat-fails

In my previous fix to support WFS services with the outputFormat JSON…
  • Loading branch information
mvriel authored Sep 20, 2024
2 parents 4a009a8 + e449886 commit 06a45cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private UriBuilder CreateLayerUri(string featureType, string sourceUrl)
uriBuilder.SetQueryParameter("request", "GetFeature");
uriBuilder.SetQueryParameter("version", wfsVersion);
uriBuilder.SetQueryParameter("typeNames", featureType);
if (parameters.Get("outputFormat").ToLower() is not ("json" or "geojson"))
if (parameters.Get("outputFormat")?.ToLower() is not ("json" or "geojson"))
{
uriBuilder.SetQueryParameter("outputFormat", "geojson");
}
Expand Down

0 comments on commit 06a45cc

Please sign in to comment.