Personal tools
You are here: Home Development Tests Testing Overview
Document Actions

Testing Overview

by Sean Gillies last modified 2005-11-20 22:40

Brief description of testing layers and example of output.

Location

The test data is maintained in CVS under mapserver/tests and is also distributed with each MapServer release beginning with 4.2.

Data

Point, line, and polygon shapefiles are included. Each has a single feature with one attribute, named "FNAME". Features are contained within:

    EXTENT -0.5 50.977222 0.5 51.977222
    PROJECTION
      "init=epsg:4326"
    END

There is also an inline layer in test.map:

  LAYER
    NAME "INLINE"
    TYPE POINT
    PROJECTION
      "init=epsg:4326"
    END
    STATUS DEFAULT
    FEATURE
      POINTS -0.2 51.5 END
    END
    CLASS
      NAME "0"
      STYLE
        COLOR 0 0 0
        SYMBOL 1
        SIZE 3
      END
    END
  END

These four layers are used in the MapServer unit testing framework.

The default map image produced using shpimg:

  [sean@lenny tests]$ shpimg -m test.map -o test.png

should look like

map image


Powered by Plone