Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WMS Tester allows you to test various aspects of a WMS including specifying the extent, scale, size of images, etc. But it can be used in its simplest form in the following ways:

  • Testing an internal WMS: Return the layers in the WMS, the scale at which the layer is drawn and the time taken to draw layer (in milliseconds) and the scale at which the layer is drawn

    Code Block
    themeRDark
    c:\weave\jre\bin\java -jar c:\weave\wmstest.jar -u http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs
    connected to http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs in 2,521ms
    drew "topp:secondary_schools" as image/jpeg at 1:70,894 in 411ms
    drew "topp:school_primary" as image/jpeg at 1:112,940 in 415ms
    drew "topp:buildings" as image/jpeg at 1:119,980 in 417ms
    drew "topp:busstops" as image/jpeg at 1:127,470 in 704ms
    drew "topp:contour10" as image/jpeg at 1:154,230 in 930ms
    drew "topp:contour05" as image/jpeg at 1:152,730 in 1,366ms
    drew "topp:contour02" as image/jpeg at 1:152,720 in 2,765ms
    drew "topp:contour01" as image/jpeg at 1:152,900 in 5,156ms
    drew "topp:drainage" as image/jpeg at 1:127,120 in 764ms
    drew "topp:sewer_pipe" as image/jpeg at 1:136,970 in 711ms
    drew "topp:water_pipe" as image/jpeg at 1:187,430 in 1,710ms
    drew "topp:busroutes" as image/jpeg at 1:130,490 in 431ms
    drew "topp:road" as image/jpeg at 1:17,678 in 359ms
    drew "topp:mainroad" as image/jpeg at 1:140,600 in 452ms
    drew "topp:hydro" as image/jpeg at 1:148,400 in 444ms
    drew "topp:mainhydro" as image/jpeg at 1:146,910 in 459ms
    drew "topp:easement" as image/jpeg at 1:7,071 in 361ms
    drew "topp:property_dissolved" as image/jpeg at 1:7,071 in 367ms
    drew "topp:property" as image/jpeg at 1:7,071 in 363ms
    drew "topp:ward" as image/jpeg at 1:147,260 in 431ms
    drew "topp:suburb" as image/jpeg at 1:149,110 in 461ms
    drew "topp:mccbound" as image/jpeg at 1:147,300 in 426ms
  • Testing an external a WMS with background processing to simulate multiple users hitting the WMS server at the same time.

    Code Block
    themeRDark
    c:\weave\jre\bin\java -jar c:\weave\wmstest.jar -u http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs -b
    connected to http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs in 2,825ms
    drew "topp:secondary_schools" as image/jpeg at 1:72,316 in 13,051ms
    drew "topp:ward" as image/jpeg at 1:149,830 in 13,432ms
    drew "topp:busroutes" as image/jpeg at 1:132,220 in 13,689ms
    drew "topp:easement" as image/jpeg at 1:10,000 in 13,856ms
    drew "topp:property" as image/jpeg at 1:10,000 in 14,133ms
    drew "topp:hydro" as image/jpeg at 1:151,100 in 14,472ms
    drew "topp:school_primary" as image/jpeg at 1:114,310 in 14,643ms
    drew "topp:mainhydro" as image/jpeg at 1:149,790 in 14,664ms
    drew "topp:buildings" as image/jpeg at 1:121,840 in 14,698ms
    drew "topp:property_dissolved" as image/jpeg at 1:10,000 in 14,809ms
    drew "topp:mccbound" as image/jpeg at 1:149,860 in 14,860ms
    drew "topp:mainroad" as image/jpeg at 1:142,520 in 14,949ms
    drew "topp:road" as image/jpeg at 1:25,000 in 14,962ms
    drew "topp:suburb" as image/jpeg at 1:151,750 in 15,435ms
    drew "topp:busstops" as image/jpeg at 1:128,880 in 17,027ms
    drew "topp:sewer_pipe" as image/jpeg at 1:139,040 in 17,370ms
    drew "topp:contour10" as image/jpeg at 1:156,830 in 17,761ms
    drew "topp:drainage" as image/jpeg at 1:129,140 in 17,818ms
    drew "topp:contour05" as image/jpeg at 1:155,440 in 18,993ms
    drew "topp:water_pipe" as image/jpeg at 1:190,730 in 20,413ms
    drew "topp:contour02" as image/jpeg at 1:155,440 in 22,174ms
    drew "topp:contour01" as image/jpeg at 1:155,440 in 24,777ms
    Code Block
    themeRDark
    c:\weave\jre\bin\java -jar c:\weave\wmstest.jar -u http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs -b 2
    connected to http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs in 2,885ms
    drew "topp:school_primary" as image/jpeg at 1:114,310 in 755ms
    drew "topp:secondary_schools" as image/jpeg at 1:72,316 in 757ms
    drew "topp:buildings" as image/jpeg at 1:121,840 in 781ms
    drew "topp:busstops" as image/jpeg at 1:128,880 in 1,393ms
    drew "topp:contour10" as image/jpeg at 1:156,830 in 1,629ms
    drew "topp:contour05" as image/jpeg at 1:155,440 in 2,310ms
    drew "topp:contour02" as image/jpeg at 1:155,440 in 5,141ms
    drew "topp:drainage" as image/jpeg at 1:129,140 in 1,440ms
    drew "topp:sewer_pipe" as image/jpeg at 1:139,040 in 1,340ms
    drew "topp:contour01" as image/jpeg at 1:155,440 in 8,851ms
    drew "topp:busroutes" as image/jpeg at 1:132,220 in 850ms
    drew "topp:water_pipe" as image/jpeg at 1:190,730 in 3,369ms
    drew "topp:road" as image/jpeg at 1:25,000 in 769ms
    drew "topp:mainroad" as image/jpeg at 1:142,520 in 696ms
    drew "topp:hydro" as image/jpeg at 1:151,100 in 730ms
    drew "topp:mainhydro" as image/jpeg at 1:149,790 in 787ms
    drew "topp:easement" as image/jpeg at 1:10,000 in 719ms
    drew "topp:property_dissolved" as image/jpeg at 1:10,000 in 764ms
    drew "topp:property" as image/jpeg at 1:10,000 in 749ms
    drew "topp:ward" as image/jpeg at 1:149,830 in 675ms
    drew "topp:suburb" as image/jpeg at 1:151,750 in 736ms
    drew "topp:mccbound" as image/jpeg at 1:149,860 in 629ms
  • Getting map images from external a WMS: Creates a file (images.zip) in the current folder containing map images generated based on parameters submitted

    Code Block
    themeRDark
    c:\weave\jre\bin\java -jar c:\weave\wmstest.jar -u http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs -d
    connected to http://qgis/cgi-bin/qgis_mapserv.fcgi?map=/mnt/storage/weave/qgis/project.qgs in 2,914ms
    drew "topp:secondary_schools" as image/jpeg at 1:72,316 in 406ms
    drew "topp:school_primary" as image/jpeg at 1:114,310 in 425ms
    drew "topp:buildings" as image/jpeg at 1:121,840 in 426ms
    drew "topp:busstops" as image/jpeg at 1:128,880 in 730ms
    drew "topp:contour10" as image/jpeg at 1:156,830 in 981ms
    drew "topp:contour05" as image/jpeg at 1:155,440 in 1,471ms
    drew "topp:contour02" as image/jpeg at 1:155,440 in 3,085ms
    drew "topp:contour01" as image/jpeg at 1:155,440 in 5,450ms
    drew "topp:drainage" as image/jpeg at 1:129,140 in 823ms
    drew "topp:sewer_pipe" as image/jpeg at 1:139,040 in 789ms
    drew "topp:water_pipe" as image/jpeg at 1:190,730 in 1,876ms
    drew "topp:busroutes" as image/jpeg at 1:132,220 in 462ms
    drew "topp:road" as image/jpeg at 1:25,000 in 443ms
    drew "topp:mainroad" as image/jpeg at 1:142,520 in 444ms
    drew "topp:hydro" as image/jpeg at 1:151,100 in 450ms
    drew "topp:mainhydro" as image/jpeg at 1:149,790 in 460ms
    drew "topp:easement" as image/jpeg at 1:10,000 in 437ms
    drew "topp:property_dissolved" as image/jpeg at 1:10,000 in 460ms
    drew "topp:property" as image/jpeg at 1:10,000 in 466ms
    drew "topp:ward" as image/jpeg at 1:149,830 in 439ms
    drew "topp:suburb" as image/jpeg at 1:151,750 in 476ms
    drew "topp:mccbound" as image/jpeg at 1:149,860 in 433ms