[Mapserver-users] Reference map to show bounding coordinates extent not map extent works in 3.5 but ont 3.6

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Thu Jul 1 01:07:34 EDT 2004


Hi,

A while ago this list, especially Steve Lime, helped me solve the problem of
showing a reference map indicating the raw bounding coordinates and not the
map extent coordinates.  This works beautifully on mapserv3.5 but now that I
have to go to mapserv3.6 it doesn't seem to work.  

Can anyone help me with this please?  Any help is much appreciated.  Thanks.

A typical call to mapserv3.5 uses the following URL:

http://www-b.ga.gov.au/bin/mapserv35?map=%2Fpublic%2Fhttp%2Fwww%2Fdocs%2Fasdd
%2Fref.map&mode=map&layer=box&map_box_feature=new&map_box_feature_points=109.
%20-12.%20159.%20-12.%20159.%20-43.%20109.%20-43.%20109.%20-12

If I replace mapserv35 with mapserv36 in the above URL I get a "Premature end
of script headers: /public/http/www/cgi-bin/mapserv36" in the web server
error file.  The URL is:

http://www-b.ga.gov.au/bin/mapserv36?map=%2Fpublic%2Fhttp%2Fwww%2Fdocs%2Fasdd
%2Fref.map&mode=map&layer=box&map_box_feature=new&map_box_feature_points=109.
%20-12.%20159.%20-12.%20159.%20-43.%20109.%20-43.%20109.%20-12.

My map file looks like this:

MAP
  NAME "REF"
  SIZE 200 132
  UNITS dd
  EXTENT  44.000000 -90.000000 180.000000 0.000000
  STATUS OFF

  REFERENCE
    SIZE 200 132
    EXTENT  44.000000 -90.000000 180.000000 0.000000
    IMAGE aus200x132.png
    STATUS OFF
  END

  LAYER
    NAME background
    TYPE RASTER
    DATA aus200x132.png
    STATUS DEFAULT
    TRANSFORM OFF
  END

  LAYER
    NAME box
    STATUS OFF
#    TRANSPARENCY 40
#    TYPE LINE
    TYPE line
    CLASS
      COLOR 255 0 0
      OUTLINECOLOR 0 0 0
      OVERLAYSYMBOL 'circle'
      OVERLAYSIZE 8
    END
  END

  LAYER
    NAME pnt
    STATUS OFF
    TYPE POINT
    CLASS
      SYMBOL "star"
      COLOR 255 0 0
      OUTLINECOLOR 0 0 0
      SIZE 15
    END
  END

  SYMBOL
    NAME 'star'
    TYPE VECTOR
    FILLED TRUE
    POINTS
      0 .375
      .35 .375
      .5 0
      .65 .375
      1 .375
      .75 .625
      .875 1
      .5 .75
      .125 1
      .25 .625
    END
  END

  SYMBOL
    NAME 'circle'
    TYPE ELLIPSE
    FILLED FALSE
    POINTS
      1 1
    END
  END
END




More information about the mapserver-users mailing list