Skip to content

Commit

Permalink
Test result updates
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 17, 2020
1 parent f4cc5e9 commit 1425ac2
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
17 changes: 0 additions & 17 deletions msautotest/mssql/expected/wfs_mssql_maxcount_order.json

This file was deleted.

26 changes: 17 additions & 9 deletions msautotest/mssql/expected/wfs_mssql_maxfeatures.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" version="2.0.0" xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode" locator="mapserv">
<ows:ExceptionText>msWFSGetFeature(): WFS server error. ms_error-&gt;code not found
msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL statement: SELECT [0], [1], [2], [3], [geom], [id] FROM (SELECT convert(nvarchar(max), [ogr_fid]) '0',convert(nvarchar(max), [name]) '1',convert(nvarchar(max), [name_ar]) '2',convert(nvarchar(max), [name_hi]) '3',[ogr_geometry] 'geom',convert(varchar(36), [ogr_fid]) 'id', row_number() over ( ORDER BY ogr_fid ASC USING SRID=3857ORDER BY ogr_fid) 'rownum' FROM (select * from cities) as foo WHERE ogr_geometry.STIntersects(geometry::STGeomFromText('POLYGON((-20026376.39001 -20048966.10001,20026376.39001 -20048966.10001,20026376.39001 20048966.10001,-20026376.39001 20048966.10001,-20026376.39001 -20048966.10001))',3857)) = 1 ) tbl where [rownum] &lt; 11
-[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'SRID'.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
{
"type": "FeatureCollection",
"numberMatched": 6994,
"name": "cities",
"features": [
{ "type": "Feature", "properties": { "ogr_fid": 1, "name": "崇州市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11540741.500531593337655, 3584222.176282715518028 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 2, "name": "江油市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11658983.416123732924461, 3734167.308027575723827 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 3, "name": "都江堰市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11535108.467130685225129, 3632351.464808412827551 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 4, "name": "汉中市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11914449.602725410833955, 3905795.921342806424946 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 5, "name": "达州市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11967742.628956081345677, 3658495.346212032716721 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 6, "name": "彭州市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11568532.166505239903927, 3647573.495146059896797 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 7, "name": "万源市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 12025983.606177415698767, 3772333.751561704557389 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 8, "name": "绵竹市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11599265.83038479834795, 3677164.76934290677309 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 9, "name": "绵阳市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11660728.683100385591388, 3692494.727239217143506 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 10, "name": "邛崃市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11517720.217953415587544, 3556944.647455960512161 ] } }
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "FeatureCollection",
"numberMatched": 6994,
"name": "cities",
"name": "cities_with_order",
"features": [
{ "type": "Feature", "properties": { "ogr_fid": 1, "name": "崇州市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11540741.500531593337655, 3584222.176282715518028 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 2, "name": "江油市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11658983.416123732924461, 3734167.308027575723827 ] } },
Expand Down
9 changes: 9 additions & 0 deletions msautotest/mssql/expected/wfs_mssql_maxfeatures_qs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "FeatureCollection",
"numberMatched": 6994,
"name": "cities",
"features": [
{ "type": "Feature", "properties": { "ogr_fid": 1, "name": "崇州市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11540741.500531593337655, 3584222.176282715518028 ] } },
{ "type": "Feature", "properties": { "ogr_fid": 2, "name": "江油市", "name_ar": "", "name_hi": "" }, "geometry": { "type": "Point", "coordinates": [ 11658983.416123732924461, 3734167.308027575723827 ] } }
]
}
4 changes: 2 additions & 2 deletions msautotest/mssql/wfs_mssql.map
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# REQUIRES: INPUT=OGR SUPPORTS=WFS
#
# RUN_PARMS: wfs_mssql_maxfeatures.json [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=cities&OUTPUTFORMAT=geojson" > [RESULT]
# RUN_PARMS: wfs_mssql_maxcount.json [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=cities&OUTPUTFORMAT=geojson&MAXFEATURES=2" > [RESULT]
# RUN_PARMS: wfs_mssql_maxcount_order.json [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=cities_with_order&OUTPUTFORMAT=geojson&MAXFEATURES=2" > [RESULT]
# RUN_PARMS: wfs_mssql_maxfeatures_order.json [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=cities_with_order&OUTPUTFORMAT=geojson" > [RESULT]
# RUN_PARMS: wfs_mssql_maxfeatures_qs.json [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=cities&OUTPUTFORMAT=geojson&MAXFEATURES=2" > [RESULT]

MAP
NAME 'wfs_mssql'
Expand Down

0 comments on commit 1425ac2

Please sign in to comment.