[mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6)
Michelle Douvil
mrdouville at shaw.ca
Wed Jul 20 09:59:52 PDT 2011
Hi Steve,
Thanks for the information..
I have replaced ...&mode=nquerymap&...with
...&mode=nquery&qformat=png24&..."(among other qformats)
mode= map and WMS GETMAP work..
mode=query and WMS GETFEATUREINFO do not..
.. all with blank response and no errors..it is like the cgi just stops..
*If I set the SDE layer to "STATUS DEFAULT or ON" I get no response at all
to...*
E:\sw_nt>mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor
mat=text/plain&mapxy=1186128 863840"
*If I set the SDE layer to "STATUS OFF" I get A response..*
E:\sw_nt>mapserv
"QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor
mat=text/plain&mapxy=1186128 863840"
Content-type: text/html
<HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPOR
TS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FR
IBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_C
LIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
<BODY BGCOLOR="#FFFFFF">
msQueryByPoint(): Search returned no results. No matching record(s) found.
</BODY></HTML>
My Mapfile is as follows:
MAP
EXTENT -140 45 -100 62
SIZE 100 100
UNITS DD
SYMBOLSET "total.sym"
FONTSET "fonts.lst"
NAME "map3"
CONFIG "MS_ERRORFILE" "e:/sw_nt/ms4w/mapfiles/logs/3.log"
DEBUG 5
SHAPEPATH "E:/apps_data/shape/indexes/"
WEB
METADATA
"wms_title" "British Columbia Base WMS Version 3"
"wms_onlineresource"
"http://server/cgi-bin/mapserv.exe?map=E:\sw_nt\ms4w\mapfiles\3.map&"
"ows_enable_request" "*"
"wms_srs" "EPSG:4326 EPSG:3005"
END
TEMPLATE "foo.html"
END
PROJECTION
"init=epsg:4326"
END
LAYER
DEBUG 5
EXTENT 200000 200000 1900000 1900000
NAME 'DBM_7H_MIL_POLITICAL_POLY_BC'
CONNECTIONTYPE PLUGIN
PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll"
CONNECTION 'server,port:5152,sde,username,password'
DATA 'WHSE_BASEMAPPING.DBM_BC_7H_MIL_POLITICAL_POLY,GEOMETRY'
CLASSITEM ENGLISH_NAME
CLASS
TEMPLATE "foo.html"
NAME 'BritishColumbia'
EXPRESSION ('[ENGLISH_NAME]' eq 'British Columbia')
STYLE
COLOR 255 190 190
OUTLINECOLOR 0 0 0
END #end style
END #end class
TYPE polygon
MINSCALEDENOM 2000001
MAXSCALEDENOM 1135000000
STATUS OFF
PROJECTION
"init=epsg:3005"
END
METADATA
wms_title "British Columbia"
wms_metadataurl_format "html"
wms_metadataurl_href "http://metadataserver"
wms_metadataurl_type "TC211"
wfs_title "British Columbia"
gml_geometries "geom"
gml_geom_type "polygon"
ows_include_items "all"
ows_exclude_items "GEOMETRY,OBJECTID"
gml_include_items "all"
gml_exclude_items "GEOMETRY,OBJECTID"
END #metadata
PROCESSING "CLOSE_CONNECTION=DEFER"
DUMP TRUE # Used to enable WFS
TEMPLATE "foo.html"
END #end layer
LAYER
STATUS DEFAULT
EXTENT 200000 200000 1900000 1900000
NAME 'bcmosaic_yop_index'
DATA 'bcmosaic_yop_index.shp'
TYPE POLYGON
CLASS
NAME "BC Mosaic Index"
STYLE
OUTLINECOLOR 0 0 0
END #end style
END #end class
PROJECTION
"init=epsg:3005"
END
METADATA
"wms_title" "BC Mosaic Index" ## REQUIRED
"wfs_title" "BC Mosaic Index" ## REQUIRED
"gml_featureid" "OBJECTID" ## REQUIRED
"ows_include_items" "all" ## Optional (serves all attributes for
layer)
"gml_geometries" "shape"
"gml_geom_type" "polygon"
# "gml_exclude_items" "GEOMETRY,OBJECTID"
END #metadata
DUMP TRUE
TEMPLATE "foo.html"
MINSCALEDENOM 0
MAXSCALEDENOM 15000000
END #end layer
END #layer
END
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6603529.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list