Tenho vários temas de imagens SRTM em quadrantes. Então criamos um único tema que carrega esses dados usando TILEs.
MAP
SYMBOLSET ../symbols/simbolos.sym
FONTSET "../symbols/fontes.txt"
LAYER
STATUS ON
NAME "layer_tindex_img_srtm"
TYPE POLYGON
CONNECTIONTYPE postgis
INCLUDE "conexao.map"
DATA "the_geom FROM (select * FROM img_srtm) as foo USING UNIQUE gid USING SRID=4291"
METADATA
"ESCONDIDO" "sim"
END
END
LAYER
NAME imagens_srtm
STATUS ON
TYPE RASTER
TILEINDEX "layer_tindex_img_srtm"
TILEITEM "location"
METADATA
TEMA "Imagens SRTM"
END
END
END
Na tabela img_srtm eu tenho os campos gid, location, the_geom. No campo "location" tenho salvo o caminho dos arquivos .tif de cada imagem.
O tema carrega todas as imagens certinho como desejado. O problema é que não estou conseguindo fazer a ferramenta IDENTIFICA retornar informação nenhuma. (quando carrego cada tile como um tema separado, essas informações aparecem normalmente)
Já tentei alterar o campo METADATA de ambos os layers acima acrescentando os campos ITENS e ITENSDESC. Já tentei deixar o primeiro layer sem o campo ESCONDIDO, no entanto, quando faço isso só consigo recuperar os dados que estão na tabela (gid, location) não consigo recuperar os dados que estão no arquivo .tif que são realmente os que interessam pra mim.
Alguém sabe como eu faço para fazer a ferramenta IDENTIFICA retornar esses dados?
Obrigado,
Victor
Autor: Victor Cezar

55 comentários
FONTSET "../symbols/fontes.txt" LAYER
NAME cbersi
TYPE RASTER
TILEINDEX "c://ms4w/Apache/htdocs/geodados/indicecbers.shp"
TILEITEM "location"
TEMPLATE "none.htm"
STATUS off
MAXSCALE 2500000
METADATA
TEMA "Imagens CBERS2"
CLASSE "SIM"
TEXTO "NAO"
TABELA "NAO"
BUSCA "NAO"
END
TOLERANCE 0.001
OFFSITE 0 0 0
END # LAYER
LAYER
NAME cbersii
TYPE polygon
DATA "c://ms4w/Apache/htdocs/geodados/indicecbers.shp"
STATUS off
TEMPLATE "none.htm"
METADATA
TEMA "Índice imagens CBERS2"
TITULO "Índice imagens CBERS2"
CLASSE "NAO"
TEXTO "NAO"
BUSCA "SIM"
END
CLASS
NAME ' '
COLOR -1 -1 -1
OUTLINECOLOR 50 50 50
END # CLASS
END # LAYER END