Skip to content

Commit

Permalink
msautotest: replace OGR/BNA with OGR/CSV, as OGR/BNA will be removed …
Browse files Browse the repository at this point in the history
…in GDAL 3.3
  • Loading branch information
rouault committed Mar 9, 2021
1 parent 9a938b9 commit 1ed7dfa
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 19 deletions.
Binary file removed msautotest/wxs/expected/wfsogr10_bnazip.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion msautotest/wxs/expected/wfsogr10_caps.xml
Expand Up @@ -60,7 +60,7 @@ Content-Type: text/xml; charset=UTF-8
<CSVSTREAM/>
<OGRGML/>
<OGRGPX/>
<OGRBNAZIP/>
<OGRCSVZIP/>
<SHAPEZIP/>
<MIDMIF/>
<MultiMIDMIF/>
Expand Down
Binary file added msautotest/wxs/expected/wfsogr10_csvzip.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions msautotest/wxs/expected/wfsogr11_caps.xml
Expand Up @@ -91,7 +91,7 @@ Content-Type: text/xml; charset=UTF-8
<ows:Value>text/csv; streamed</ows:Value>
<ows:Value>text/xml; subtype=gml/2.1.2; driver=ogr</ows:Value>
<ows:Value>application/gpx+xml; streamed</ows:Value>
<ows:Value>application/zip; driver=ogr/bna</ows:Value>
<ows:Value>application/zip; driver=ogr/csv</ows:Value>
<ows:Value>application/shapefile</ows:Value>
<ows:Value>MIDMIF</ows:Value>
<ows:Value>MultiMIDMIF</ows:Value>
Expand All @@ -113,7 +113,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand Down Expand Up @@ -153,7 +153,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand All @@ -174,7 +174,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand Down
8 changes: 4 additions & 4 deletions msautotest/wxs/expected/wfsogr11_caps.xml.alternative
Expand Up @@ -91,7 +91,7 @@ Content-Type: text/xml; charset=UTF-8
<ows:Value>text/csv; streamed</ows:Value>
<ows:Value>text/xml; subtype=gml/2.1.2; driver=ogr</ows:Value>
<ows:Value>application/gpx+xml; streamed</ows:Value>
<ows:Value>application/zip; driver=ogr/bna</ows:Value>
<ows:Value>application/zip; driver=ogr/csv</ows:Value>
<ows:Value>application/shapefile</ows:Value>
<ows:Value>MIDMIF</ows:Value>
<ows:Value>MultiMIDMIF</ows:Value>
Expand All @@ -113,7 +113,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand Down Expand Up @@ -153,7 +153,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand All @@ -174,7 +174,7 @@ Content-Type: text/xml; charset=UTF-8
<Format>text/csv; streamed</Format>
<Format>text/xml; subtype=gml/2.1.2; driver=ogr</Format>
<Format>application/gpx+xml; streamed</Format>
<Format>application/zip; driver=ogr/bna</Format>
<Format>application/zip; driver=ogr/csv</Format>
<Format>application/shapefile</Format>
<Format>MIDMIF</Format>
<Format>MultiMIDMIF</Format>
Expand Down
Binary file modified msautotest/wxs/expected/wfsogr_addfiles_onelayer.zip
Binary file not shown.
21 changes: 11 additions & 10 deletions msautotest/wxs/wfs_ogr.map
Expand Up @@ -23,8 +23,8 @@
# Generate dump streamed directly to GPX (test #4776)
# RUN_PARMS: wfsogr10_gpx.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=OGRGPX" > [RESULT_DEVERSION]
#
# Generate dump to BNA in ZIP (test #4933)
# RUN_PARMS: wfsogr10_bnazip.zip [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=OGRBNAZIP" > [RESULT_DEVERSION]
# Generate dump to CSV in ZIP (test #4933)
# RUN_PARMS: wfsogr10_csvzip.zip [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=OGRCSVZIP" > [RESULT_DEVERSION]
#
# Generate dump to SHAPEZIP
# RUN_PARMS: wfsogr10_shapezip.zip [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=SHAPEZIP" > [RESULT]
Expand Down Expand Up @@ -91,7 +91,7 @@
#
# Test wfs_additional_files_in_output
# RUN_PARMS: wfsogr_addfiles_onelayer.txt [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road_with_addfiles&featureid=road_with_addfiles.1521&OUTPUTFORMAT=OGRGML" > [RESULT_DEVERSION]
# RUN_PARMS: wfsogr_addfiles_onelayer.zip [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road_with_addfiles&featureid=road_with_addfiles.1521&OUTPUTFORMAT=OGRBNAZIP" > [RESULT_DEVERSION]
# RUN_PARMS: wfsogr_addfiles_onelayer.zip [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road_with_addfiles&featureid=road_with_addfiles.1521&OUTPUTFORMAT=OGRCSVZIP" > [RESULT_DEVERSION]
# RUN_PARMS: wfsogr_addfiles_twolayers.txt [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road_with_addfiles,road2_with_addfiles&featureid=road_with_addfiles.1521,road2_with_addfiles.1521&OUTPUTFORMAT=OGRGML" > [RESULT_DEVERSION]

MAP
Expand Down Expand Up @@ -151,12 +151,13 @@ OUTPUTFORMAT
END

OUTPUTFORMAT
NAME "OGRBNAZIP"
DRIVER "OGR/BNA"
MIMETYPE "application/zip; driver=ogr/bna"
NAME "OGRCSVZIP"
DRIVER "OGR/CSV"
MIMETYPE "application/zip; driver=ogr/csv"
FORMATOPTION "LCO:GEOMETRY=AS_WKT"
FORMATOPTION "STORAGE=memory"
FORMATOPTION "FORM=zip"
FORMATOPTION "FILENAME=result.bna.zip"
FORMATOPTION "FILENAME=result.csv.zip"
END


Expand Down Expand Up @@ -245,7 +246,7 @@ LAYER
"ows_title" "road"
"ows_description" "road"
"wfs_featureid" "ROAD_ID"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrbnazip,ogrgmlstream,shapezip,midmif,multimidmif"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrcsvzip,ogrgmlstream,shapezip,midmif,multimidmif"
"gml_include_items" "all"
"gml_exclude_items" "ROAD_"
"gml_types" "auto"
Expand Down Expand Up @@ -292,7 +293,7 @@ LAYER
"ows_title" "road_with_addfiles"
"ows_description" "road_with_addfiles"
"wfs_featureid" "ROAD_ID"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrbnazip,ogrgmlstream,shapezip,midmif,multimidmif"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrcsvzip,ogrgmlstream,shapezip,midmif,multimidmif"
"wfs_additional_files_in_output" "wfs_ogr_common_addfile.txt,wfs_ogr_common_addfile.txt,addfiles/,addfiles,road_with_addfiles.txt"
"gml_include_items" "all"
"gml_exclude_items" "ROAD_"
Expand All @@ -316,7 +317,7 @@ LAYER
"ows_title" "road2_with_addfiles"
"ows_description" "road2_with_addfiles"
"wfs_featureid" "ROAD_ID"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrbnazip,ogrgmlstream,shapezip,midmif,multimidmif"
"wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgpx,ogrcsvzip,ogrgmlstream,shapezip,midmif,multimidmif"
"wfs_additional_files_in_output" "road2_with_addfiles.txt,nonexistingfile"
"gml_include_items" "all"
"gml_exclude_items" "ROAD_"
Expand Down

0 comments on commit 1ed7dfa

Please sign in to comment.