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