Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add JSON format in WMS parameters
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 42413ce commit f6bfc98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/server/services/wms/qgswmsparameters.cpp
Expand Up @@ -758,6 +758,8 @@ namespace QgsWms
f = Format::TEXT;
else if ( fStr.startsWith( QLatin1String( "application/vnd.ogc.gml" ), Qt::CaseInsensitive ) )
f = Format::GML;
else if ( fStr.startsWith( QLatin1String( "application/json" ), Qt::CaseInsensitive ) )
f = Format::JSON;
else
f = Format::NONE;

Expand Down
3 changes: 2 additions & 1 deletion src/server/services/wms/qgswmsparameters.h
Expand Up @@ -309,7 +309,8 @@ namespace QgsWms
TEXT,
XML,
HTML,
GML
GML,
JSON
};

/**
Expand Down

0 comments on commit f6bfc98

Please sign in to comment.