[mapserver-users] P.MAPPER-ERROR

Gonzalo Lionel Rodriguez gonzalo at sepp0.com.ar
Sun May 24 13:34:24 PDT 2009


Hi everyone... o customize my own .map and i have this error in pm_debug.log:

...
[24-May-2009 15:30:03] P.MAPPER debug info
 P.MAPPER-ERROR: Layer/Group 'Pampa' not existing. Check
'/config/config.ini' file definition for section 'defGroups'.
[24-May-2009 15:30:03] P.MAPPER debug info
 P.MAPPER-ERROR: Layer/Group 'MontedeLlanurasyMesetas' not existing.
Check '/config/config.ini' file definition for section 'defGroups'.
[24-May-2009 15:30:03] P.MAPPER debug info
 P.MAPPER-ERROR: Layer/Group 'EstepaPatagónica' not existing. Check
'/config/config.ini' file definition for section 'defGroups'.
...

I dont know whats wrong, any idea?

Here is my config.ini

;==========================================================================
;
; LAYERS/GROUPS DEFINED MANUALLY
;
;==========================================================================

; ALL groups displayed in TOC in this order
; - without definition, the order from map file will be taken.
; - separated with commas
; if INI setting "useCategories = 1" (see below),
; then define the categories in php_config.php
; === RECOMMENDED ===
;--------------------------------------------------------------------------
;allGroups = Argentina, Hidrografia, Rutas, Departamentos, Presas
;allGroups = Imágenesdesatélite, RecursosNaturales, RecursosNaturales,
RecursosHídricos, Límitesadministrativos, Límites administrativos,
RecursosHídricos, RecursosHídricos, InfraestructuraVial,
Límitesadministrativos, RecursosNaturales, Altos, Puna, SelvaYungas,
ChacoSeco, ChacoHúmedo, SelvaParanense, EsterosdelIberá,
CamposyMalezales, DeltaeIslasdelParaná, Espinal, Pampa,
MontedeLlanurasyMesetas, EstepaPatagónica, BosquesPatagónicos,
IslasdelAtlánticoSur, MarArgentino, ParqueChaqueño, SelvaMisionera,
SelvaTucumanoBoliviana, BosqueAndinoPatagónico, Espinal, Monte,
EspejosdeAgua, Ríopermanente, Ríotransitorio, Rutanacional,
Rutaprovincial, Capitalprovincial, Cabeceradepartamental
allGroups = Imágenesdesatélite, RecursosNaturales, RecursosNaturales,
RecursosHídricos, Límitesadministrativos, RecursosHídricos,
RecursosHídricos, InfraestructuraVial, Límitesadministrativos,
RecursosNaturales

; Default Groups (visible at start)
; === RECOMMENDED ===
;----------------------------------
; defGroups = Argentina, Hidrografia, Rutas, Departamentos, Presas
;defGroups = Imágenes, de, satélite, Recursos, Hídricos, Límites,
administrativos, Límites, administrativos, Recursos, Hídricos,
Recursos, Hídricos, Infraestructura, Vial, Límites, administrativos,
Recursos, Naturales
defGroups = Imágenesdesatélite, RecursosNaturales, RecursosNaturales,
RecursosHídricos, Límitesadministrativos, Límites administrativos,
RecursosHídricos, RecursosHídricos, InfraestructuraVial,
Límitesadministrativos, RecursosNaturales, Altos, Puna, SelvaYungas,
ChacoSeco, ChacoHúmedo, SelvaParanense, EsterosdelIberá,
CamposyMalezales, DeltaeIslasdelParaná, Espinal, Pampa,
MontedeLlanurasyMesetas, EstepaPatagónica, BosquesPatagónicos,
IslasdelAtlánticoSur, MarArgentino, ParqueChaqueño, SelvaMisionera,
SelvaTucumanoBoliviana, BosqueAndinoPatagónico, Espinal, Monte,
EspejosdeAgua, Ríopermanente, Ríotransitorio, Rutanacional,
Rutaprovincial, Capitalprovincial, Cabeceradepartamental, Límites,
administrativos, Altos, Puna, SelvaYungas, ChacoSeco, ChacoHúmedo,
SelvaParanense, EsterosdelIberá, CamposyMalezales,
DeltaeIslasdelParaná, Espinal, Pampa, MontedeLlanurasyMesetas,
EstepaPatagónica, BosquesPatagónicos, IslasdelAtlánticoSur,
MarArgentino, ParqueChaqueño, SelvaMisionera, SelvaTucumanoBoliviana,
BosqueAndinoPatagónico, Espinal, Monte, EspejosdeAgua, Ríopermanente,
Ríotransitorio, Rutanacional, Rutaprovincial, Capitalprovincial,
Cabeceradepartamental

; Groups/Layers that shall be mutually disabled
; if one is clicked, the other ones will be disabled
;-------------------------------------------------------------
;mutualDisableList = dem, jpl_wms_global_mosaic, corine


; Groups/Layers list where to use auto_identify(tooltip) function
; === OPTIONAL ===
;-----------------------------------------------------------------
;autoIdentifyGroups = countries, cities


; Automatically refresh map when selection of
; layers/grouops has changed in TOC
;--------------------------------------------
layerAutoRefresh = 1


And a part of my .map

MAP
  NAME "capas geográficas básicas"
  STATUS ON
  EXTENT 1821800 3700000 5728200 7600000
  SIZE 500 500
  SHAPEPATH "/home/orsep/public_html/gis2/capas_geograficas_basicas/data"
  SYMBOLSET "/home/orsep/public_html/gis2/capas_geograficas_basicas/etc/symbols.sym"
  FONTSET   "/home/orsep/public_html/gis2/capas_geograficas_basicas/etc/fonts.txt"
  IMAGETYPE png
  IMAGECOLOR 255 255 255
  UNITS METERS
  WEB
    IMAGEPATH '/home/orsep/public_html/gis2/tmp/'
    IMAGEURL '/gis2/tmp/'
  END
  REFERENCE
    STATUS ON
    IMAGE "images/argentina.jpg"
    SIZE 80 132
    EXTENT 2.75e+06 3.75e+06 5.1e+06 7.65e+06
    COLOR -1 -1 -1
    OUTLINECOLOR 255 153 0
    MINBOXSIZE 3
    MAXBOXSIZE 0
    MARKER 0
    MARKERSIZE 0
  END
  QUERYMAP
    STATUS ON
    SIZE -1 -1
    COLOR 255 222 73
    STYLE SELECTED
  END
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    TRANSPARENT ON
    INTERLACE OFF
    POSITION LL
    KEYSIZE 15 9
    KEYSPACING 5 0
    TEMPLATE "/var/www/medioambiente/maplab/projects/gmf_apps/sian/legend_template.html"
    LABEL
      TYPE TRUETYPE
      FONT "fritqat"
      SIZE 6
      MINSIZE 4
      MAXSIZE 256
      OFFSET 0 0
      ANGLE 0.000000
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      ANTIALIAS TRUE
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 205 205 205
    OUTLINECOLOR 100 100 100
    BACKGROUNDCOLOR 255 170 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 220 4
    STYLE 0
    POSITION LC
    LABEL
      TYPE BITMAP
      SIZE TINY
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT OFF
  END
  LAYER
    NAME "LANDSAT"
    GROUP "Imágenesdesatélite"
    STATUS OFF
    DATA "mosaico_arg_georef.tif"
    # ok
    TYPE RASTER
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      #NAME " "
    END
  # CLASS
  END
  LAYER
    NAME "Ecoregiones"
    GROUP "RecursosNaturales"
    STATUS ON
    DATA "eco_reg_gk3"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    OFFSITE 0 0 0
    TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
    CLASS
      NAME "Altos"
      EXPRESSION ('[Ecorreg]' = 'Altos Andes')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 249 239 236
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "Puna"
      EXPRESSION ('[Ecorreg]' = 'Puna')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 215 217 181
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "M"
      EXPRESSION ('[Ecorreg]' = 'Monte de Sierras y Bolsones')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 185 213 187
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "SelvaYungas"
      EXPRESSION ('[Ecorreg]' = 'Selva de las Yungas')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 237 239 228
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "ChacoSeco"
      EXPRESSION ('[Ecorreg]' = 'Chaco Seco')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 230 226 208
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "ChacoHúmedo"
      EXPRESSION ('[Ecorreg]' = 'Chaco Húmedo')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 248 240 231
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
    CLASS
      NAME "SelvaParanense"
      EXPRESSION ('[Ecorreg]' = 'Selva Paranense')
      TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map"
      STYLE
        SYMBOL 0
        COLOR 191 230 192
        OUTLINECOLOR 255 255 255
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
...




Kind regards



More information about the MapServer-users mailing list