[mapserver-users] How to use msQueryByPoint with RASTER
darenas
darenas2001 at yahoo.es
Wed Jul 1 05:44:30 PDT 2009
Hi Steve,
I tested GetFeatureInfo directly with the folowing sentence:
http://localhost/cgi-bin/prueba_grid?REQUEST=GetFeatureInfo&VERSION=1.1.0&SERVICE=WMS&QUERY_LAYERS=mapa_apicola&FEATURE_COUNT=1&X=521&Y=426&SRS=EPSG:25830&BBOX=462204.1344,4460380.45879,463515.19339,4461472.57092&WIDTH=1000&HEIGHT=833&LAYERS=mapa_apicola&STYLES=default&FORMAT=image/jpeg
and the response is the same: GetFeatureInfo results: Search returned no
results.
TIFF file has an attribute table. I made a shot:
http://n2.nabble.com/file/n3188765/tiff.jpg
That´s the layer code; maybe could be useful to guess the problem:
LAYER # Comienzo del objeto LAYER
NAME "mapa_apicola" # Nombre corto para la capa
TYPE RASTER #
[point/line/polygon/circle/annotation/raster/query] especifica como los
datos podrán ser dibujados
STATUS ON # [on/off/default] Establece el estado
de la capa
#PROCESSING "SCALE_1=1,255"
#PROCESSING "SCALE_2=1,255"
#PROCESSING "SCALE_3=1,255"
#PROCESSING "SCALE=AUTO" # Pasa un directorio de proceso que se
utilizará con esta capa
PROCESSING "DITHER=YES" # Pasa un directorio de proceso que se
utilizará con esta capa
#OFFSITE 0 0 0
DEBUG OFF
DUMP TRUE # [true/false] Permite que Mapserver genere la
descarga en formato GML
DATA "D:\TIFF\mapa_apicola.tif"
TEMPLATE "D:\ms4w\maps\etc\template.html"
METADATA
"WMS_SRS" "EPSG:3034 EPSG:3035 EPSG:4230 EPSG:4258 EPSG:4267 EPSG:4269
EPSG:4324 EPSG:4326 EPSG:25828 EPSG:25829 EPSG:25830 EPSG:25831 EPSG:23028
EPSG:23029 EPSG:23030 EPSG:23031 EPSG:32628 EPSG:32629 EPSG:32630
EPSG:32631"
"WMS_TITLE" "Mapa Apícola"
"WMS_ABSTRACT" "Mapa Apícola"
"WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
"wms_keywordlist" "WMS, servidor de mapas en red"
"wms_extent" "60000 3980769 650000 4304000"
#"wms_metadataurl_href"
"http://idena.navarra.es/busquedas/xml/c_toponimia.xml" #URL donde se
recogen más metadatos sobre la capa
#"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
"gml_featureid" "OID"
"gml_include_items" "VALUE,COUNT"
END #METADATA
PROJECTION
"init=epsg:23030" #Proyección UTM European
Datum 50 Huso 30 N
#"init=epsg:25830" #Proyección UTM
ETRS89 Huso 30 N
END
CLASS
NAME '1.- Zona restringida '
EXPRESSION ('[pixel]' = '0')
STYLE
COLOR 51 51 204
#OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '2.- Zona óptima '
EXPRESSION ('[pixel]' = '1')
STYLE
COLOR 61 108 60
#OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '3.- Zona marginal '
EXPRESSION ('[pixel]' = '2')
STYLE
COLOR 240 159 12
#OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
CLASS
NAME '4.- Zona extramarginal '
EXPRESSION ('[pixel]' = '3')
STYLE
COLOR 218 193 44
#OUTLINECOLOR 110 110 110
END #STYLE
END #CLASS
END #Fin del objeto LAYER
#================================#
END
Thanks a lot again
Steve Lime wrote:
>
> Does the query work outside WMS, that is, with straight calls to the
> MapServer CGI? One thing to check right away is that the layer
> is queryable by making sure a value for the layer TEMPLATE is set,
> anything (e.g. TEMPLATE 'dummy') will suffice.
>
> Steve
>
>>>> darenas <darenas2001 at yahoo.es> 06/30/09 3:06 AM >>>
>
> Hi everyone!
>
> I´m creating a WMS service with a TIFF file. But I have problems in the
> moment to do querybypoints action on the raster so the error is the
> following:
>
> msQueryByPoint(): Search returned no results. No matching record(s)
> found
>
> I´m using the folowing parameters in mapfile as always with its
> attributes,
> but doens´t work:
>
> "gml_featureid" "OID"
> "gml_include_items" "VALUE,COUNT"
>
> any ideas?
>
> Thanks a million
>
>
>
>
>
> --
> View this message in context:
> http://n2.nabble.com/How-to-use-msQueryByPoint-with-RASTER-tp3180021p3180021.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://n2.nabble.com/How-to-use-msQueryByPoint-with-RASTER-tp3180021p3188765.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list