Opened 22 years ago

Closed 22 years ago

#248 closed defect (fixed)

OFFSITE parameter ends processing of mapfile in 3.7 (ok in 3.6.3)

Reported by: keon@… Owned by: jdoyon@…
Priority: high Milestone:
Component: Documentation - MapServer Version: 4.0
Severity: normal Keywords:
Cc:

Description

When I try to use OFFSITE in a raster layer (DRG tile index), my PHP 
application crashes with the following error:

  Warning: MapServer Error in getInteger(): (MAXSCALE):(118)
  in /opt/httpd/htdocs/gis/crypto/crypto.php on line 35

  Fatal error: Failed to open map file /www/gis/mapfiles/crypto.map
  in /opt/httpd/htdocs/gis/crypto/crypto.php on line 35

MAXSCALE is throwing an error because it's the next parameter in the layer 
definition.  If I place OFFSITE right before MINSCALE it would indicate an 
error with MINSCALE, and so on.

This is with today's 3.7 cvs version.  I tried it in 3.6.3 and it works fine.

Change History (4)

comment:1 by dmorissette, 22 years ago

Cc: morissette@… added
Component: MapScript-PHPMapServer Documentation
Owner: changed from morissette@… to jdoyon@…
OFFSITE now takes 3 arguments defining the RGB color value: 
   OFFSITE <r> <g> <b>

(It used to be a single argument, the color index)

Mapfile reference needs updating about this.  Reassigned to JF Doyon who is the 
maintainer of this document.

comment:2 by keon@…, 22 years ago

Thanks, that works.  I will also add this to the migration guide.

comment:3 by jdoyon@…, 22 years ago

Status: newassigned

comment:4 by jdoyon@…, 22 years ago

Resolution: fixed
Status: assignedclosed
Edited the 3.7 docs to reflect the change in the OFFSITE setting ... closing.
Note: See TracTickets for help on using tickets.