msDrawMap(): Image handling error

Paul Alarcon paul_pag00 at HOTMAIL.COM
Mon Jan 28 12:48:08 EST 2008


Hello everyone I´m using a html template to make search in mapserver, the problem is that I change the table from one of the shapes and now I have this error"msDrawMap(): Image handling error. Failed to draw layer named 'Escuelas'."   when I make a query a dont tell me nothing more, i used other table for "Escuelas"  and it work but with this one dont work 
I used this one for display information and it works. but for query i have that error 
Here is the map file
Help me please 
MAP

  NAME test      #MapFile testing possible bug on itemquery

  STATUS ON

  SIZE 800 600

  EXTENT   836705.704288 9999113.003817 1143436.012879 10051849.051893

  STATUS ON

  #SHAPEPATH "/home/mapdata/Pichincha/pruebas/POLITICO 2002/"  

  IMAGECOLOR 255 255 255

  IMAGETYPE PNG

  FONTSET "/srv/www/htdocs/ka-map/fontset.txt"
#################################################


  WEB
     HEADER "/srv/www/htdocs/headersuc.html"
       FOOTER "/srv/www/htdocs/footersuc.html"

    IMAGEPATH "/srv/www/htdocs/temp/"				

    IMAGEURL "/temp/"

     TEMPLATE "somthing.html"
    EMPTY "/emptysuc.html"
    LOG "/srv/www/htdocs/temp/sucumbios"				
  END   # End of Web Interface

#################################################
# Reference map######################
REFERENCE
      STATUS ON
      IMAGE "/srv/www/htdocs/php_test/provincias/sucumbios/sucumbios_base.gif"
      SIZE 200 198
      EXTENT 835105.70 9949113.00 1145436.01 10071849.05
      COLOR -1 -1 -1
      OUTLINECOLOR 255 0 100
      MINBOXSIZE 3
      MAXBOXSIZE 0
      MARKER 0
      MARKERSIZE 0
END
########################################
#Legend
LEGEND
     STATUS on
     #IMAGECOLOR 65 171 49
     POSITION LL
     LABEL
           TYPE truetype
           FONT "blbi____"
           COLOR 0 0 0
           SIZE 10
           ANTIALIAS true
     END
END
# Symbol para lineas gruesas
SYMBOL
      NAME "BigLine"
      TYPE ELLIPSE
      POINTS 1 1 END
END
#####################################
# Symbol para puntos
#
SYMBOL
     NAME "Circle"
     FILLED true
     TYPE ellipse
     POINTS 1 1 END
END
#####################################
#Symbol cuadrado base 
SYMBOL
NAME "Cuadro"
TYPE VECTOR
POINTS
0 0
0 1
1 1 
1 0
0 0
END
FILLED TRUE
END
########################################
#SYMBOL circulo
SYMBOL
NAME "punkt"
TYPE ELLIPSE
POINTS
1 1
END 
FILLED TRUE
END
###########################################

querymap

   status on
   SIZE 700 500

   style SELECTED

   END

#############################################


LAYER

    NAME cantones

    STATUS DEFAULT

    TYPE POLYGON
    CONNECTIONTYPE postgis
    CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password="      
    DATA "the_geom from cantones"
    LABELCACHE   on
    TOLERANCE 0
    METADATA
          qstring_validation_pattern '.'
    END
    LABELITEM   "non_canton"


     

    CLASS 
       TEMPLATE "/srv/www/htdocs/querytemplate2.html"               

       NAME "Canton"

       OUTLINECOLOR 0 0 0   

       COLOR 187 212 201

    END



END  #end layer

#############################################################
LAYER

    NAME parroquias

    STATUS DEFAULT

    TYPE polygon
    CONNECTIONTYPE postgis
    CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password="      
     DATA "the_geom from parroquias"
     STATUS default
     METADATA
          qstring_validation_pattern '.'
    END
    LABELITEM   "parroquia"

    #DATA 'parroquial'
     TOLERANCE 0


        

    CLASS 
      

       NAME "Parroquia"
       TEMPLATE "/srv/www/htdocs/querytemplate3.html"

       OUTLINECOLOR 100 0 0   

       COLOR -1 -1 -1

    END



END  #end layer

#################

LAYER

    NAME PROVINCIAS

    STATUS DEFAULT

    TYPE line
    #METADATA
    #      qstring_validation_pattern '.'
    #END
    #LABELITEM   "PARROQUIA"

    #DATA 'provincial'
    CONNECTIONTYPE postgis
    CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password="      
     DATA "the_geom from provincial"   

    CLASS 

       NAME "Provincia"

       #OUTLINECOLOR 100 0 0   

       COLOR 0 0 5
      STYLE
             SYMBOL "BigLine"
             SIZE 4
             #COLOR 50 212 51  
             OUTLINECOLOR 12 0 0
             
        END

    END



END  #end layer
#####################################
LAYER
       NAME "Escuelas"
       CONNECTIONTYPE postgis
       CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password="      
      DATA "the_geom from gis_plantel"
       STATUS default
       TYPE point
       #LABELITEM "plan_nombre"
       LABELCACHE  on
       TOLERANCE 0 
       HEADER "/srv/www/htdocs/head_plan.html"
       FOOTER "/srv/www/htdocs/foot_plan.html"
       CLASSITEM "pla_nivel"
       METADATA
          qstring_validation_pattern '.'
        END
       DEBUG on
       GROUP "PLANTELES"
               CLASS 
                 NAME "PREPRIMARIO"
                  TEMPLATE "/srv/www/htdocs/querytemplate.html"
                 EXPRESSION "PREPRIMARIO"
                     STYLE
                   
                     END
               STYLE
                SYMBOL "punkt"
                SIZE 6
                COLOR  204 204 0
                OUTLINECOLOR 0 0 0
               END
               LABEL
                TYPE truetype
                FONT "DejaVuSerif"
                SIZE 8
	        COLOR 0 0 0
                #OUTLINECOLOR 0 0 0
                #BACKGROUNDCOLOR 255 255 255
                MINDISTANCE 20
                POSITION uc            
                ANGLE 0.00
	        ANTIALIAS false
                BUFFER 20
               END #label
              END  #clase   
          CLASS 
           NAME "PRIMARIO"
            TEMPLATE "/srv/www/htdocs/querytemplate.html"
           EXPRESSION "PRIMARIO"
           STYLE
             
           END
           STYLE
             SYMBOL "punkt"
             SIZE 6
             COLOR  142 94 94
             OUTLINECOLOR 0 0 0
           END
         LABEL
            TYPE truetype
            FONT "DejaVuSerif"
            SIZE 8
	    COLOR 0 0 0
            #OUTLINECOLOR 0 0 0
            #BACKGROUNDCOLOR 255 255 255
            MINDISTANCE 20
            POSITION uc            
            ANGLE 0.00
	    ANTIALIAS false
            BUFFER 20
         END #label
      END # Clase
      CLASS 
        NAME "MEDIO"
         TEMPLATE "/srv/www/htdocs/querytemplate.html"
        EXPRESSION /^MEDIO/
        STYLE
             
        END
        STYLE
             SYMBOL "punkt"
             SIZE 6
             COLOR  0 204 255
             OUTLINECOLOR 0 0 0
        END
        LABEL
            TYPE truetype
            FONT "DejaVuSerif"
            SIZE 8
	    COLOR 0 0 0
            #OUTLINECOLOR 0 0 0
            #BACKGROUNDCOLOR 255 255 255
            MINDISTANCE 20
            POSITION uc            
            ANGLE 0.00
	    ANTIALIAS false
            BUFFER 20
        END
      END       
        CLASS 
        NAME "S/Dato"
         TEMPLATE "/srv/www/htdocs/querytemplate.html"
        EXPRESSION " "
        STYLE
             SYMBOL "Circle"
             SIZE 10
             COLOR  255 0 0
             OUTLINECOLOR 0 0 0
        END
        LABEL
            TYPE truetype
            FONT "DejaVuSerif"
            SIZE 8
	    COLOR 0 0 0
            #OUTLINECOLOR 0 0 0
            #BACKGROUNDCOLOR 255 255 255
            MINDISTANCE 50
            POSITION uc            
            ANGLE 0.00
	    ANTIALIAS false
            BUFFER 20
        END
      END
#############################################################################

END #LAYER
LAYER
  NAME "gridlayer"
  TYPE LINE
  STATUS DEFAULT
  CLASS
    COLOR 0 0 0
    LABEL 
      COLOR 0 0 0
      SIZE SMALL
      OUTLINECOLOR 255 255 255 
    END
  END
  GRID  
    LABELFORMAT "DDMM"
    MININTERVAL 50000
   END 
END # Layer
END

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


More information about the mapserver-users mailing list