[MAPSERVER-USERS] Cant get a GetFeatureInfo response
Tellett
thomas.ellett at statkart.no
Mon Dec 8 06:14:58 PST 2008
Hi Albrecht,
Just noticed a couple of things, firstly theres no 'service=wms' in your
request and secondly you have 'template 'query.html'' defined twice under
your layer. Also you might want to try adding the following to your layer.
Metadata
"ows_include_items" "all"
End
You need this othewise mapserver defaults to returning no attributes (you
can use wms_include_items as well for text/plain, but ows is a catch all for
text/plain and text/gml so is probably better to use)
Have a look at this link for a bit more info:
http://64.233.183.132/search?q=cache:VW7CHM-FHlQJ:www.mail-archive.com/mapserver-users%40lists.umn.edu/msg08063.html+ows_include_items&hl=en&ct=clnk&cd=6
Just a couple of thoughts off the top of my head,
Cheers
Tom
Albrecht.Weiser wrote:
>
> Hi mapserver list,
> i'm trying to get a GetFeatureInfo response from my mapserver-service
> which has ArcSDE 9.3 as Backend. When i'm trying to perform the request
> i'm getting this error:
>
> msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid
> parameter value passed to function. (-66
>
> Here's my request:
> http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:/ms4w/Apa
> che/htdocs/maps/geo300.map&bbox=3445827,5552017,3458341,5562761&styles=&
> format=jpeg&info_format=text/plain&request=GetFeatureInfo&layers=GUEK300
> _geo&query_layers=GUEK300_geo&width=550&height=250&x=170&y=160&version=1
> .1.1&SRS=epsg:31467
>
> I have all necessary mapfile configurations. Here's a snippet:
>
>
> MAP
> NAME 'geo300'
> STATUS ON
>
> PROJECTION
> 'init=epsg:31467'
> END
>
> SIZE 450 450
> EXTENT 3503415.79963696 5651154.51738003 3508460.69944955
> 5655464.35707049
> UNITS meters
> SHAPEPATH ''
> SYMBOLSET'C:\ms4w\Apache\htdocs\maps\symbols\geo300symbols.sym'
> FONTSET 'C:\ms4w\Apache\htdocs\maps\fonts\geo300fonts.fnt'
> IMAGECOLOR 255 255 255
> DEBUG ON
>
> #
> #Start of web interface definition
> #
>
> WEB
> LOG geo300.log
> IMAGEPATH 'C:\ms4w\Apache\htdocs\tmp'
> IMAGEURL 'http://localhost/tmp/'
> TEMPLATE 'C:\ms4w\Apache\htdocs\tmp\'
> METADATA
> WMS_ONLINERESOURCE
> 'http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:\ms4w\Ap
> ache\htdocs\maps\geo300.map'
> WMS_SRS 'epsg:31467'
> WMS_ACCESSCONSTRAINTS 'none'
> WMS_TITLE 'geo300'
> WMS_FEATURE_INFO_MIME_TYPE 'text/html'
> WMS_ABSTRACT 'WMSmetatext'
> END #METADATA
>
> END #HEADER
>
> #
> #Start of legend
> #
>
> LEGEND
> STATUS ON
> KEYSIZE 25 25
> TEMPLATE 'legend.html'
> LABEL
> COLOR 0 0 0
> TYPE TRUETYPE
> FONT courbd
> SIZE 9
> END # ENDE LABEL
> END #LEGEND
>
> #
> # Start of scalebar
> #
>
> SCALEBAR
> STATUS ON
> STYLE 1
> INTERVALS 4
> IMAGECOLOR 255 255 255
> LABEL
> COLOR 0 0 0
> SIZE SMALL
> END #ENDE LABEL
> SIZE 200 3
> #OUTLINECOLOR 0 0 0
> COLOR 0 0 0
> BACKGROUNDCOLOR 255 255 255
> UNITS KILOMETERS
> END #SCALEBAR
>
> QUERYMAP
> STATUS ON
> # the map is queryable by default
> STYLE HILITE
> # the selected object is highligthed
> END #QUERYMAP
>
> LAYER
> NAME 'Hintergrundgehalte_poly'
> DATA 'GEOLOGIE.V_GUEK_SMK,SHAPE,SDE.DEFAULT'
> STATUS on
> TYPE Polygon
> CONNECTIONTYPE PLUGIN
> CONNECTION "xxxxxxxxxxxxx.de,port:5151,sde,xxxxxxx,xxxxxxxx"
> PLUGIN "c:/ms4w/Apache/specialplugins/msplugin_sde_92.dll"
> TRANSPARENCY 100
> TEMPLATE "query.html"
> TOLERANCE 7
> TOLERANCEUNITS pixels
> DUMP TRUE
> TEMPLATE "query.html"
>
> All the other requests like GetMap,... are working. What maybe the
> problem here?
>
> Regards
> Albrecht
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://www.nabble.com/Cant-get-a-GetFeatureInfo-response-tp20858184p20896073.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list