[ms4w-users] problem while changing MS4W version

Sistema de Información y Planificación Ambiental sipa at spa.gba.gov.ar
Thu Oct 6 12:05:25 EDT 2005


Hi there
I have a .MAP file which worked flawlessly in MS4W 1.03 over win XP. When I
tried to upgrade MS4w version to 1.2.2 I receive an Internal Server Error
500. I tested the map file with shp2img and it didn´t work as well, but it
did in 1.0.3.
Editing the phpmapscript code to find out what happened, I realized that the
error comes up when I move from php_mapscript_42.dll to php_mapscript_44.dll
or greater.
What´s wrong?
Thanks in advance.

Here´s my .MAP file

MAP
  NAME "MDP"
  STATUS ON
  EXTENT 5701000 5781000 5720000 5799000 
  SIZE 480 480 
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGECOLOR 100 150 200
  UNITS METERS
  IMAGETYPE JPEG
  #----OBJETO WEB-----------------------------------------------------------

  WEB
    IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    MAXSCALE 150000
    MINSCALE 2000
  END
  #----OBJETO REFERENCIA----------------------------------------------------
REFERENCE
    STATUS ON
    IMAGE "./ref_MDP.gif"
    SIZE 210 154 
    EXTENT 5696700 5778188 5727375 5800646 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 3
    MAXBOXSIZE 0
    MARKER 0
    MARKERSIZE 2
  END
  #----OBJETO QUERYMAP------------------------------------------------------

  QUERYMAP
    STATUS OFF
    SIZE -1 -1 
    COLOR 255 255 0
    STYLE HILITE
  END
  LEGEND
    STATUS ON
    OUTLINECOLOR 0 0 133
    IMAGECOLOR 240 240 240
    TRANSPARENT ON
    INTERLACE ON
    POSITION LL
    KEYSIZE 20 20 
    KEYSPACING 5 5 
    TEMPLATE "../../../../../../..//maplab-2.2/htdocs/mapbrowser"
    LABEL
      TYPE TRUETYPE
      FONT "Arial"
      SIZE 8
      POSITION CC
      OFFSET 0 0 
      ANGLE 0.000000
      #LINEA 50
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 91
      OUTLINECOLOR 255 255 255
      SHADOWCOLOR 230 230 0
      SHADOWSIZE 2 2 
      ANTIALIAS TRUE
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  #----OBJETO ESCALA -------------------------------------------------------

  SCALEBAR
    STATUS ON
    COLOR 0 0 0
    OUTLINECOLOR 0 0 0
    #IMAGECOLOR -1 -1 -1
    TRANSPARENT ON
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 200 4 
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      FONT "Arial"
      SIZE MEDIUM
      MINSIZE 6
      MAXSIZE 256
      POSITION CC
      OFFSET 0 0 
      ANGLE 0.000000
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 91
      OUTLINECOLOR 255 255 255
      SHADOWSIZE 2 2 
      ANTIALIAS TRUE
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  #----FORMATO DE SALIDA----------------------------------------------------

  OUTPUTFORMAT
    NAME "JPEG"
    MIMETYPE "image/jpeg"
    DRIVER "GD/JPEG"
    EXTENSION "jpg"
    IMAGEMODE RGB
    TRANSPARENT OFF
    FORMATOPTION  "QUALITY=90"
  END
  OUTPUTFORMAT
    NAME "PNG24"
    MIMETYPE "image/png"
    DRIVER "GD/PNG24"
    EXTENSION "png"
    IMAGEMODE RGB
    TRANSPARENT OFF
  END
  

  
  
  
  
  
  
  #----LAYER IMAGEN---------------------------------------------------------
  LAYER
    NAME "Imagen Satelital"
    STATUS OFF
    DATA "mdpgk2.TIF"
    TYPE RASTER
    UNITS METERS
    SIZEUNITS PIXELS
  END
  ##----LAYER PARTIDOS------------------------------------------------------
  LAYER
    NAME "partido"
    STATUS DEFAULT
    DATA "partido"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    REQUIRES "[Imagen Satelital] != 1"
    #MINSCALE 25000
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      # ----------------------partidos provincia en gris
      #NAME "Partido"
      STYLE
        SYMBOL 0
        COLOR 255 255 199
        OUTLINECOLOR 0 158 255
        ANTIALIAS TRUE
      END
    END
  END
  #------TERMINA LAYER
  #----LAYER PARTIDOS en gris ----------------------------------------------
  LAYER
    NAME "Fondo"
    GROUP "Base"
    STATUS on
    DATA "partido"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    #MAXSCALE 25000
    REQUIRES "[Imagen Satelital] != 1"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      # ----------------------partidos provincia en gris
      #NAME "Partido"
      STYLE
        SYMBOL 0
        COLOR 200 200 200
        ANTIALIAS TRUE
      END
    END
  END
  #------TERMINA LAYER
  #----LAYER CALLES---------------------------------------------------------

  LAYER
    #-------COMIENZA LAYER
    NAME "Calles"
    GROUP "Base"
    STATUS ON
    #DATA 
    TILEINDEX "ejes_tileindex"
    TILEITEM "LOCATION"
    TYPE LINE
    CLASSITEM "color"
    UNITS METERS
    SIZEUNITS PIXELS
    MINSCALE 25000
    #REQUIRES "[Imagen Satelital] != 1"
    LABELITEM "nombre"
    LABELMAXSCALE 50000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      #NAME "comunes"
      EXPRESSION "0"
      #TEMPLATE "ttt_query.html"
      STYLE
        SYMBOL 0
        COLOR 103 106 107
        OUTLINECOLOR 32 28 28
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
        ANTIALIAS FALSE
      END
    END
    CLASS
      #NAME "avenidas"
      EXPRESSION "1"
      LABEL
        TYPE TRUETYPE
        FONT "Arial_Narrow"
        SIZE 8
        POSITION UL
        OFFSET 0 0 
        ANGLE AUTO
        COLOR 230 0 0
        OUTLINECOLOR 230 230 230
        SHADOWSIZE 2 2 
        ANTIALIAS TRUE
      END
      STYLE
        SYMBOL 7
        COLOR 200 50 0
        SIZE 3
      END
    END
  END
  #
#-#-------------------------------------------  
  LAYER
    NAME "Manzanas"
    GROUP "Base"
    STATUS ON
    #DATA "./data/manzanas"
    TILEINDEX "mz_tileindex"
    TILEITEM "LOCATION"
    TYPE POLYGON
    CLASSITEM "verde"
    UNITS METERS
    SIZEUNITS PIXELS
    MAXSCALE 25000
    REQUIRES "[Imagen Satelital] != 1"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      #NAME "comunes"
      EXPRESSION "0"
      STYLE
        SYMBOL 0
        COLOR 255 255 199
        OUTLINECOLOR 100 100 100
        SIZE 3
        ANTIALIAS TRUE
      END
    END
    CLASS
      #NAME "VERDES"
      EXPRESSION "1"
      STYLE
        SYMBOL 0
        COLOR 0 170 0
        OUTLINECOLOR 100 100 100
        SIZE 3
        ANTIALIAS TRUE
      END
    END
    CLASS
      #NAME "AGUA"
      EXPRESSION "3"
      STYLE
        SYMBOL 0
        COLOR 0 0 240
        OUTLINECOLOR 100 100 100
        SIZE 3
        ANTIALIAS TRUE
      END
    END
  END
  
  
  ##--------------------------------------------
  LAYER
    NAME "Nombres Calles"
    GROUP "Base"
    STATUS ON
    #DATA "./data/ejes_dissolve1"
    TILEINDEX "ejes_tileindex"
    TILEITEM "LOCATION"
    TYPE ANNOTATION
    CLASSITEM "color"
    UNITS METERS
    SIZEUNITS PIXELS
    MAXSCALE 25000
    LABELITEM "nombre"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      #NAME "Avenidas"
      EXPRESSION "1"
      #LABELMAXSCALE "50000"
      LABEL
        TYPE TRUETYPE
        FONT "Arial_Narrow"
        SIZE 9
        POSITION CL
        OFFSET 0 0 
        ANGLE AUTO
        COLOR 230 0 0
        OUTLINECOLOR 230 230 230
        SHADOWSIZE 2 2 
        ANTIALIAS TRUE
        MINDISTANCE 150
        MINFEATURESIZE 50
        PARTIALS FALSE
      END
    END
    CLASS
      NAME "Calles"
      EXPRESSION "0"
      #LABELMAXSCALE "25000"
      LABEL
        TYPE TRUETYPE
        FONT "Arial_Narrow"
        SIZE 7
        POSITION CL
        OFFSET 0 0 
        ANGLE AUTO
        COLOR 0 0 0
        OUTLINECOLOR 230 230 230
        SHADOWSIZE 2 2 
        ANTIALIAS TRUE
        MINDISTANCE 150
        MINFEATURESIZE 50
        PARTIALS FALSE
      END
    END
  END
  #------TERMINA LAYER
  ##------comienza LAYER-----------------------------------------
  LAYER
    NAME "Nombres Barrios"
    GROUP "Base"
    STATUS ON
    DATA "./data/barrios"
    TYPE ANNOTATION
    UNITS METERS
    SIZEUNITS PIXELS
    MINSCALE 50000
    LABELITEM "nombre"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      LABEL
        TYPE TRUETYPE
        FONT "Arial"
        SIZE 11
        POSITION AUTO
        OFFSET 0 0 
        COLOR 100 100 100
        OUTLINECOLOR 240 240 240
        SHADOWSIZE 2 2 
        WRAP "&&"
        ANTIALIAS TRUE
      END
    END
  END
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Referencias"
    GROUP "Base"
    STATUS ON
    DATA "./data/referencias"
    TYPE ANNOTATION
    UNITS METERS
    SIZEUNITS PIXELS
    MAXSCALE 75000
    #MINSCALE 50000
    LABELITEM "nombre"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "fff"
      LABEL
        TYPE TRUETYPE
        FONT "Arial"
        SIZE 8
        POSITION CR
        OFFSET 0 0 
        COLOR 255 255 255
        WRAP "&&"
        ANTIALIAS TRUE
      END
    END
  END
  #------TERMINA LAYER
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Hoteles"
    GROUP "Info Gral."
    STATUS ON
    DATA "./data/hoteles"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    #MAXSCALE 75000
    #MINSCALE 50000
    LABELITEM "nombre"
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "fff"
      STYLE
        SYMBOL 7
        COLOR 0 0 255
        SIZE 11
      END
      STYLE
        SYMBOL 15
        COLOR 255 255 255
        #OUTLINECOLOR 100 100 100
        SIZE 7
        ANTIALIAS TRUE
      END
    END
  END
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Comisarias"
    GROUP "Info Gral."
    STATUS ON
    DATA "comisarias"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "ddd"
      STYLE
        SYMBOL 4
        COLOR 0 0 255
        SIZE 10
      END
      STYLE
        SYMBOL 2
        COLOR 255 255 255
        SIZE 10
      END
    END
  END
  #------TERMINA LAYER
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Hitos"
    GROUP "Info Gral."
    STATUS ON
    DATA "turismo"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "ddd"
      STYLE
        SYMBOL 4
        COLOR 255 0 0
        SIZE 10
      END
      STYLE
        SYMBOL 3
        COLOR 255 255 255
        SIZE 8
      END
    END
  END
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Farmacias"
    GROUP "Info Gral."
    STATUS ON
    DATA "farmacias"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "ddd"
      STYLE
        SYMBOL 7
        COLOR 0 163 0
        SIZE 12
      END
      STYLE
        SYMBOL 14
        COLOR 255 255 255
        SIZE 8
      END
    END
  END
  #------comienza LAYER-----------------------------------------
  LAYER
    NAME "Restaurantes"
    GROUP "Info Gral."
    STATUS ON
    DATA "restaurantes"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "ddd"
      STYLE
        SYMBOL 4
        COLOR 191 66 135
        SIZE 11
      END
      STYLE
        SYMBOL 1
        COLOR 255 255 255
        SIZE 8
      END
    END
  END
#--- fin mapa ------------  
END




More information about the ms4w-users mailing list