forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CONFIG | ||
ENV | ||
MS_MAP_PATTERN "." | ||
MS_EMPTY "http://localhost/6907_01.html" | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Test 1: mode=itemquery - matching record | ||
# RUN_PARMS: 6907_01_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ANOK&qitem=cty_abbr' > [RESULT] | ||
# | ||
# Test 2: mode=itemquery - no matching record | ||
# RUN_PARMS: 6907_01_test002.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ABCD&qitem=cty_abbr' > [RESULT] | ||
# | ||
# Test 3: mode=itemquery - no matching record, MS_EMPTY in config | ||
# RUN_PARMS: 6907_01_test003.txt [MAPSERV] -conf 6907_01.conf QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ABCD&qitem=cty_abbr' > [RESULT] | ||
MAP | ||
NAME 'query' | ||
EXTENT 125000 4785000 789000 5489000 | ||
UNITS METERS | ||
|
||
WEB | ||
QUERYFORMAT 'tmpl' | ||
END | ||
|
||
OUTPUTFORMAT | ||
NAME 'tmpl' | ||
DRIVER 'TEMPLATE' | ||
MIMETYPE 'text/html' | ||
FORMATOPTION "FILE=template/6907.tmpl" | ||
END | ||
|
||
LAYER | ||
NAME 'bdry_counpy2' | ||
VALIDATION | ||
qstring '^[A-Z]{4}$' | ||
END | ||
INCLUDE 'include/bdry_counpy2_shapefile.map' | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Test 1: mode=itemquery - matching record | ||
# RUN_PARMS: 6907_02_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ANOK&qitem=cty_abbr' > [RESULT] | ||
# | ||
# Test 2: mode=itemquery - no matching record | ||
# RUN_PARMS: 6907_02_test002.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ABCD&qitem=cty_abbr' > [RESULT] | ||
MAP | ||
NAME 'query' | ||
EXTENT 125000 4785000 789000 5489000 | ||
UNITS METERS | ||
|
||
WEB | ||
EMPTY 'http://localhost/6907_02.html' | ||
QUERYFORMAT 'tmpl' | ||
END | ||
|
||
OUTPUTFORMAT | ||
NAME 'tmpl' | ||
DRIVER 'TEMPLATE' | ||
MIMETYPE 'text/html' | ||
FORMATOPTION "FILE=template/6907.tmpl" | ||
END | ||
|
||
LAYER | ||
NAME 'bdry_counpy2' | ||
VALIDATION | ||
qstring '^[A-Z]{4}$' | ||
END | ||
INCLUDE 'include/bdry_counpy2_shapefile.map' | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Content-Type: text/html | ||
|
||
Anoka:ANOK | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Content-Type: text/html | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Status: 302 Found | ||
Uri: http://localhost/6907_01.html | ||
Location: http://localhost/6907_01.html | ||
Content-Type: text/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Content-Type: text/html | ||
|
||
Anoka:ANOK | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Status: 302 Found | ||
Uri: http://localhost/6907_02.html | ||
Location: http://localhost/6907_02.html | ||
Content-Type: text/html | ||
|