Opened 20 years ago

Closed 20 years ago

#651 closed defect (fixed)

$map->save() does not save a Layer's PROCESSING field.

Reported by: rgould@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.0
Severity: normal Keywords:
Cc:

Description

I'm not sure if this is the right component or not. Also using mapserver 4.0.1
When I perform a $map->save($tempfile) and then later do a $map =
ms_newMabObj($tempfile);, it dies when attempting to read in a layer that had a
PROCESSING field set.

Here is the original mapfile layer:
  LAYER
    NAME "Hillshade"
    GROUP "Other"
    TYPE RASTER
    DATA "hillshade/f500m.tif"
    STATUS DEFAULT
    OFFSITE 255 255 255
    PROCESSING "COLOR_MATCH_THRESHOLD=20"
    METADATA
        wms_title "Hillshade of BC"
    END
    PROJECTION
        "init=epsg:42102"
    END
  END

Here is the layer that $map->save() gives:
  LAYER
    DATA "hillshade/f500m.tif"
    GROUP "Other"
      METADATA
        "wms_title"     "Hillshade of BC"
      END
    NAME "Hillshade"
      OFFSITE 255 255 255
    PROCESSING
    END
    PROJECTION
      "init=epsg:42102"
    END
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER
    UNITS METERS
  END

Change History (3)

comment:1 by dmorissette, 20 years ago

Resolution: invalid
Status: newclosed
This is already fixed in 4.0.2 and 4.2.

comment:2 by dmorissette, 20 years ago

Resolution: invalid
Status: closedreopened

comment:3 by dmorissette, 20 years ago

Resolution: fixed
Status: reopenedclosed
I guess I should mark this FIXED and not INVALID since there was never a formal
bug for this before.
Note: See TracTickets for help on using tickets.