[Cartoweb-users] Problem with raster layer

Cristhiano Vasconcellos cristhianobv at yahoo.com.br
Wed Jan 17 08:49:02 EST 2007


Could someone help me!
   
  Mapserver is not rendering the raster layer, the others are OK. I´ve tried several ways to resolve this, but nothing.
  
In the raster layer the file sint_123.png is associated with sint_123.wld (georreference).
   
  ##################
  The sint_123.wld is like this:
  30
0.0000000000
0.0000000000
-30
-54.126061
-29.600353
   
  ##################
  The mapfile is like this:
   
  MAP
  NAME "ufsm"
  EXTENT -57.643316 -33.751583 -49.691142 -27.080114
  SIZE 640 480    
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  STATUS ON
  UNITS dd            #modificado era kilometers
  FONTSET "fonts.txt"
  SYMBOLSET "symbols.txt"
  SHAPEPATH "/home/shapes_sanidade/"
    PROJECTION
    "proj=latlong"
  END
    OUTPUTFORMAT
    NAME png
    DRIVER "GD/PNG"
    MIMETYPE "image/png"
    IMAGEMODE PC256
    EXTENSION "png"
    FORMATOPTION "INTERLACE=OFF"
    TRANSPARENT OFF  #ESTAVA ON 01012007
  END
 
  OUTPUTFORMAT
    NAME jpeg
    DRIVER "GD/JPEG"
    MIMETYPE "image/jpeg"
    IMAGEMODE RGB
    EXTENSION "jpg"
    FORMATOPTION "INTERLACE=OFF"
    FORMATOPTION "QUALITY=80"
  END
 
  #keymap mapinha de referencia para clicar e posicionar no mapa principal
  #comentei para tirá-lo
REFERENCE
  IMAGE images/img_referencia1.png
  EXTENT -57.643316 -33.751583 -49.691142 -27.0080114
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0  #200 200 200
  SIZE 140 105
END
  
WEB
   MAXSCALE 10000000
   MINSCALE 25000
END
  #  LEGEND
#    KEYSIZE 20 15
#  END
   
  #layers *******************************
  LAYER
 NAME "municipios"
 DATA "43mu2500gc"
 STATUS  default
 TYPE polygon
 LABELCACHE on
 LABELITEM "NOME" #indica qual campo no shape originará os rótulos no mapa
 CLASSITEM "NOME" #indica qual campo no shapefile sera pesquisado
 MAXFEATURES 2000 #número máximo de objetos a serem desenhados
        MAXSCALE 10000000
  # Acrescentei os Metadados para que a ferramenta de query funcionasse
# Hilight para realçar os resultados de uma query
          METADATA
            "exported_values" "recenter_name_string,id_attribute_string"
            "recenter_name_string" "NOME" 
            "id_attribute_string" "NOME|string" #atributo identificador da query e seu tipo
            "query_returned_attributes" ""  #atributos que serão puxados na query - se "" puxa todos
            "hilight_createlayer" "true" # cria dinamicamente um layer de highlight
            "hilight_color" "249 248 165" # cor do highlight
     "hilight_transparency" "70" 
     "mask_transparency" "70" # configurações da máscara na query
     "mask_color" "193 249 165"
 END      
        TEMPLATE "ttt" #exigido para a ferramenta de query funcionar
        CLASS
  NAME "municipios"
  STYLE
   SIZE 1
   COLOR 255 255 255
   OUTLINECOLOR 100 100 100 
  END
  LABEL
   MINFEATURESIZE 30 
   COLOR 0 0 0 
   SIZE small
  END
 END
END
  
#####################################################
     RASTER LAYER - THIS IS NOT RENDERING
#####################################################
   LAYER
         NAME "arroio_arenal"
  MAXSCALE 10000000 
  MINSCALE 25000
         DATA "sint_123.png"
         METADATA
           "force_imagetype" "jpeg"
         END
  TYPE RASTER
         STATUS ON
   END
          
  
#####################################
# LAYERS DE ACESSO AO POSTGRESQL     #
#####################################
  LAYER
        NAME "est1"
        STATUS default
        CONNECTIONTYPE POSTGIS
        CONNECTION "dbname=animals user=john password=teste590 host=localhost port=5432"
        DATA "the_geom from estabelecimento"
 FILTER "cd_tipo_est = 1"
        TYPE point
        MINSCALE 10000
 MAXSCALE 5000000
 LABELCACHE on #desenha o label so depois que todas as camadas forem desenhadas
        LABELITEM 'sim_est'
 METADATA
      "exported_values" "id_attribute_string"
#      "recenter_name_string" "sim_est"
      "id_attribute_string" "sim_est|string" #atributo identificador da query e seu tipo
      "query_returned_attributes" "" #atributos que serão puxados na query - se "" puxa todos
      "hilight_createlayer" "true" # cria dinamicamente um layer de highlight
      "hilight_color" "249 248 165" # cor do highlight
      "hilight_transparency" "70"
       END # fim do metadata
       TEMPLATE "ttt" # exigido para a query funcionar
        CLASS
                NAME "Matadouro Frig. de Aves" #este nome aparece na legenda
                STYLE
                   SYMBOL "Circle"
     SIZE 25
     COLOR 255 0 0  
                END #style
                LABEL
    COLOR 0 0 0
                  SIZE tiny
               END #label
        END # class Urban Areas
END # layer 
  END # mapfile
   
   
  Thanks a lot!

 __________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070117/79e17d37/attachment-0001.html


More information about the Cartoweb-users mailing list