raster representation problems

cfb carla.fernandezb at GMAIL.COM
Tue Jan 22 03:06:09 EST 2008


Hi there, 

I've some problems with the representation of a raster image (.img). I've
clasiffied it by its pixels, but when I zoom it I get white areas with no
data (and if I make the GetFeatureInfo I get: "msQueryByPoint(): Search
returned no results. No matching record(s) found" in the ms_error file. 

I've been trying with several processing directives, but it doesn't change
anything. The image is ok, and I don't know where is the problem... 

Here it is the layer object of my .map 

LAYER 
 NAME 'precipitacion_anual' 
 DATA 'D:\datos_prueba\precimed.img'   
 #STATUS on 
 GROUP "MEDIO TERRESTRE" 
 TYPE RASTER 
 TRANSPARENCY ALPHA 
  
  #PROCESSING "CLOSE_CONNECTION=DEFER" 
  PROCESSING "DITHER=YES"     
  #PROCESSING "SCALE_1=1,255" 
  #PROCESSING "SCALE_2=2,255" 
  #PROCESSING "SCALE_3=3,255" 
  #OFFSITE 255 255 255 
  #PROCESSING "SCALE=AUTO" 
  #PROCESSING "DITHER=YES" 
  TOLERANCE 3 
  TOLERANCEUNITS pixels 
  DUMP TRUE 
  OFFSITE 255 255 255 
  DEBUG ON 
  
  TEMPLATE "D:\ms4w\maps\etc\template.html" 
  MINSCALE 8000 
   #MAXSCALE 1300000 
  
METADATA 
 "WMS_SRS"         "EPSG:23029 EPSG:23030 EPSG:4230 EPSG:4324 EPSG:4326
EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:4258 EPSG:3035 EPSG:3034" 
 "WMS_TITLE"         "Precipitación media anual (mm). Periodo 1961-1980    
" 
 "WMS_ABSTRACT"      "Total medio anual de precipitación para el periodo
1961-1980, representado por el fondo de colores de la superficie emergida." 
 "WMS_FEATURE_INFO_MIME_TYPE"  "text/html" 
 "wms_keywordlist"   "WMS, servidor de mapas en red, Andalucía, Medio
Ambiente, mapas, clima, climatología, hidrología, precipitación atmosférica,
temperatura" 
 "wms_extent"           "101003 3816667 628642 4288082" 
#"wms_metadataurl_type"        "TC211"  #Norma de Metadatos el valor:
"TC211" equivale a ISO 19115 
#"wms_metadataurl_format"      "xml"    # 
#"wms_dataurl_href"            "...."       # Dirección URL de los datos
asociados 
#"wms_dataurl_format"          "xml"        # Formato de los datos 
 "WMS_FEATURE_INFO_MIME_TYPE"  "text/html" 
 "wms_dataurl_format"          "image/png" 
 "wms_metadataurl_format"      "text/html" 
 #"gml_featureid"               "FID" 
 #"gml_include_items"           "CODIGO,DESCRIPCIO" 
END #METADATA 
  
 PROJECTION 
   "init=epsg:23030"           #Proyección UTM European Datum 50 Huso 30 N 
   "init=epsg:23029"           #Proyección UTM European Datum 50 Huso 29 N 
   "init=epsg:4230"         #Coordenadas Geográficas ED50 
   "init=epsg:4324"         #Coordenadas Geográficas WGS 72BE TRANSIT
BROADCAST EPHEMERIS 
   "init=epsg:4326"     #Coordenadas Geográficas WGS 84 
   "init=epsg:32629"           #Proyección UTM WGS 84 Huso 29 N 
   "init=epsg:32630"           #Proyección UTM WGS 84 Huso 30 N 
   "init=epsg:4267"           #Coordenadas Geográficas North American Datum
1927 (NAD 27) 
   "init=epsg:4269"           #Coordenadas Geográficas North American Datum
1983 (NAD 83) 
   "init=epsg:4258"           #Coordenadas Elipsoidales ETRS89 IDEE 
   "init=epsg:3035"           #ETRS89/ETRS-LAEA Para representación y
análisis estadístico pan-Europeos IDEE 
   "init=epsg:3034"           #ETRS89/ETRS-LCC Para la cartografía
pan-Europeo a escalas menores o iguales a 1:500.000 IDEE 
 END 
  
#CLASES A PARTIR DE LA COMPOSICIÓN RGB DE LA PALETA 
 CLASSITEM "[pixel]" 

  CLASS 
    NAME "<100      " 
    EXPRESSION ([pixel] < 100) 
    STYLE 
      COLOR 230 153 0 
    END 
  END 
  
  CLASS 
    NAME "100-200    " 
    EXPRESSION ([pixel] >= 100 AND [pixel]  < 200) 
    STYLE 
      COLOR 227 161 39 
    END 
  END 
  
  CLASS 
    NAME "200-300    " 
    EXPRESSION ([pixel] >= 200 AND [pixel]  < 300) 
    STYLE 
      COLOR 224 173 63 
    END 
  END 
  
  CLASS 
    NAME "300-400    " 
    EXPRESSION ([pixel] >= 300 AND [pixel]  < 400) 
    STYLE 
      COLOR 219 184 86 
    END 
  END 
  
  CLASS 
    NAME "400-500    " 
    EXPRESSION ([pixel] >= 400 AND [pixel]  < 500) 
    STYLE 
      COLOR 214 193 109 
    END 
  END 

  CLASS 
    NAME "500-600     " 
    EXPRESSION ([pixel] >= 500 AND [pixel]  < 600) 
    STYLE 
      COLOR 207 204 132 
    END 
  END 

  CLASS 
    NAME "600-700    " 
    EXPRESSION ([pixel] >= 600 AND [pixel]  < 700) 
    STYLE 
      COLOR 198 214 156 
    END 
  END   

  CLASS 
    NAME "700-800    " 
    EXPRESSION ([pixel] >= 700 AND [pixel]  < 800) 
    STYLE 
      COLOR 189 204 163 
    END 
  END 

  CLASS 
    NAME "800-900    " 
    EXPRESSION ([pixel] >= 800 AND [pixel]  < 900) 
    STYLE 
      COLOR 179 194 169 
    END 
  END 

  CLASS 
    NAME "900-1000    " 
    EXPRESSION ([pixel] >= 900 AND [pixel]  < 1000) 
    STYLE 
      COLOR 169 184 174 
    END 
  END 

  CLASS 
    NAME "1000-1100    " 
    EXPRESSION ([pixel] >= 1000 AND [pixel]  < 1100) 
    STYLE 
      COLOR 161 176 181 
    END 
  END 

  CLASS 
    NAME "1100-1200    " 
    EXPRESSION ([pixel] >= 1100 AND [pixel]  < 1200) 
    STYLE 
      COLOR 151 166 186 
    END 
  END   

  CLASS 
    NAME "1200-1300    " 
    EXPRESSION ([pixel] >= 1200 AND [pixel]  < 1300) 
    STYLE 
      COLOR 140 156 191 
    END 
  END   

  CLASS 
    NAME "1300-1400    " 
    EXPRESSION ([pixel] >= 1300 AND [pixel]  < 1400) 
    STYLE 
      COLOR 130 147 196 
    END 
  END   

  CLASS 
    NAME "1400-1500    " 
    EXPRESSION ([pixel] >= 1400 AND [pixel]  < 1500) 
    STYLE 
      COLOR 117 138 207 
    END 
  END   

  CLASS 
    NAME "1500-1600    " 
    EXPRESSION ([pixel] >= 1500 AND [pixel]  < 1600) 
    STYLE 
      COLOR 105 131 207 
    END 
  END 

  CLASS 
    NAME "1600-1700    " 
    EXPRESSION ([pixel] >= 1600 AND [pixel]  < 1700) 
    STYLE 
      COLOR 93 123 212 
    END 
  END     

  CLASS 
    NAME "1700-1800    " 
    EXPRESSION ([pixel] >= 1700 AND [pixel]  < 1800) 
    STYLE 
      COLOR 78 115 217 
    END 
  END     

  CLASS 
    NAME "1800-1900    " 
    EXPRESSION ([pixel] >= 1800 AND [pixel]  < 1900) 
    STYLE 
      COLOR 61 106 219 
    END 
  END     

  CLASS 
    NAME "1900-2000    " 
    EXPRESSION ([pixel] >= 1900 AND [pixel]  < 2000) 
    STYLE 
      COLOR 43 100 224 
    END 
  END     

  CLASS 
    NAME "2000-2100    " 
    EXPRESSION ([pixel] >= 2000 AND [pixel]  <= 2100) 
    STYLE 
      COLOR 0 92 230 
    END 
  END 
END #LAYER

-- 
View this message in context: http://www.nabble.com/raster-representation-problems-tp15014226p15014226.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list