problem with line layers

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Jul 26 10:31:17 PDT 2005


It's the STATUS values. The CGI program turns all layers that are not "STATUS DEFAULT"
off and then requires you to explicitly request layers. MapScript-based applications
will usually respect the STATUS value set in the mapfile.

The solution? Either use STATUS DEFAULT or explicitly request those layers you want in
your call to the CGI application (i.e. &layer=calles&layer=puntos).

Steve 

>>> Sergio Lopez <sergiodlopez at YAHOO.COM> 07/26/05 12:26 PM >>>
Hi all:
I have a problem with line layers. I use the following map file, and I
call it using http://localhost/cgi-bin/mapas/lp.map&mode=map, but the line
layers are not shown, just the background. But if I use this map file with
mapedit or gmap everithing´s ok. what am I doing wrong?

MAP
  NAME "lplineas"
  STATUS ON
  EXTENT 5656000 6090000 5707000 6149000
  SIZE 300 300
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE JPEG
  IMAGECOLOR 100 150 200
  UNITS METERS
  #----OBJETO WEB----------------------------------------------------------
-----------
  WEB
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
  END
  #----FORMATO DE SALIDA---------------------------------------------------
------------------
  OUTPUTFORMAT
    NAME "JPG"
    MIMETYPE "image/jpeg"
    DRIVER "GD/JPEG"
    EXTENSION "jpg"
    IMAGEMODE RGB
    TRANSPARENT OFF
    FORMATOPTION    "QUALITY=80"
  END
  #----LAYER CALLES--------------------------------------------------------
-------------
  LAYER
    #-------COMIENZA LAYER
    NAME "Calles"
    #GROUP "vias"
    STATUS ON
    DATA "./data/ejes"
    TYPE POLYGON
    #MINSCALE 25000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "calle"
      #TEMPLATE "ttt_query.html"
      STYLE
        SYMBOL 13
        COLOR 103 106 107
        SIZE 3
        MINSIZE 3
        MAXSIZE 25
        #MINSIZE 1
        #MAXSIZE 100
        ANTIALIAS TRUE
      END
    END
  END
  LAYER
    NAME "puntos"
    STATUS ON
    DATA "./data/cajeros"
    TYPE POINT
    UNITS METERS
    CLASS
      NAME "fff"
      STYLE
        SYMBOL 7
        COLOR 172 0 0
        SIZE 1
        MINSIZE 3
        MAXSIZE 25
      END
    END
  END
#---------TERMINA LAYER
END



More information about the MapServer-users mailing list