Strange problem in a tileindex of shape files
luca marletta
lucamarle at GMAIL.COM
Tue Jun 14 13:38:30 PDT 2005
Sometimes technology is very odd! could someone give me a hint to
discover my error?
I did a tileindex (using ogrtindex) of several shp files with the same
fields in dbf.
All works well, here the map:
LAYER
NAME "incendi2002"
STATUS ON
TILEINDEX "/var/www/pmapper/comalo/incendi/incendi2002.shp"
TILEITEM "Location"
TYPE POLYGON
TRANSPARENCY 60
METADATA
"DESCRIPTION" "Incendi 2002|Incendi 2002|Incendi 2002"
"RESULT_FIELDS"
"COMUNE,STZ_FOREST,INCEND2002,M_LGN_DIST,SUP_TOT_HA,SUP_BOS_HA,SUP_NOBOS"
"RESULT_HEADERS" "Comune,Stazione forestale,N° incendi,???,Superfice
(ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione
forestale,N° incendi,???,Superfice (ha),Sup boscosa (ha),Sup non
boscosa (ha)|Comune,Stazione forestale,N° incendi,???,Superfice
(ha),Sup boscosa (ha),Sup non boscosa (ha)"
END
LABELITEM "COMUNE"
CLASS
NAME "1 incendio nel 2002|1 incendio nel 2002|1 incendio nel 2002"
EXPRESSION ([INCEND2002] = 1)
COLOR 255 225 225
LABEL
COLOR 0 0 255
TYPE TRUETYPE
FONT arial
SIZE 10
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END
CLASS
NAME "2 incendi nel 2002|2 incendi nel 2002|2 incendi nel 2002"
EXPRESSION ([INCEND2002] = 2)
COLOR 255 175 175
LABEL
COLOR 0 0 255
TYPE TRUETYPE
FONT arial
SIZE 10
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END
CLASS
NAME "3 incendi nel 2002|3 incendi nel 2002|3 incendi nel 2002"
EXPRESSION ([INCEND2002] = 3)
COLOR 255 145 145
LABEL
COLOR 0 0 255
TYPE TRUETYPE
FONT arial
SIZE 10
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END
CLASS
NAME "4 incendi nel 2002|4 incendi nel 2002|4 incendi nel 2002"
EXPRESSION ([INCEND2002] > 3)
COLOR 255 85 81
LABEL
COLOR 0 0 255
TYPE TRUETYPE
FONT arial
SIZE 10
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END
END
The strange fact is that when I did the layer in the map, it was
minimal and all worked well also for the query (single and multiple).
When later I developed the map to the shown code the query doesn't
work anymore, or better, it doesn't find any layer there.
I tried to get back step by step to the previous situation but I'm no
more able to obtain a query from this layer.
Could you help me please?
thanks a lot
luca
--
luca marletta icq: 70590647
More information about the MapServer-users
mailing list