Hi, I managed to get a little further with this problem of mine.
Changing the X and Y parameters in my URL gives me a response from the
requested layer (when testing directly in browser).
*
http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=401&Y=238&FORMAT=image/png
*<http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=401&Y=238&FORMAT=image/png>
Now I am convinced that I need to implement some way of handling the
response correctly (ie. the FeatureCollection).
I tried to copy the necessary parts from the demo solution OWSExplorer
config.xml, but I am still getting the "error loading page" alert no matter
what (see bottom of mail for alert).
Anyone out there who can help a newbie in the right direction?
Here is how my config.xml looks like at the moment:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<MapbuilderConfig version="1.0.0" id="basicMap" xmlns="
http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://mapbuilder.sourceforge.net/mapbuilder ../../lib/schemas/config.xsd">
<models>
<Context id="mainMap">
<defaultModelUrl>../data/context/tro2.xml</defaultModelUrl>
<widgets>
<MapPane id="mainMapWidget">
<htmlTagId>mainMapPane</htmlTagId>
<mapContainerId>mainMapContainer</mapContainerId>
</MapPane>
<AoiBoxDHTML id="aoiBoxMain">
<htmlTagId>mainMapPane</htmlTagId>
<mapContainerId>mainMapContainer</mapContainerId>
<lineColor>#FF0000</lineColor>
<lineWidth>2</lineWidth>
<crossSize>15</crossSize>
</AoiBoxDHTML>
<MapScaleText id="mapScaleText"/>
<CursorTrack id="cursorTrack">
<mouseHandler>mainMap</mouseHandler>
<showXY>true</showXY>
<showPx>false</showPx>
<showDMS>false</showDMS>
<showLatLong>false</showLatLong>
<showMGRS>false</showMGRS>
<precision>2</precision>
</CursorTrack>
<Legend id="legend"/>
<Loading id="loading"/>
<Loading2 id="loading2">
<mapContainerId>mainMapContainer</mapContainerId>
</Loading2>
</widgets>
<tools>
<AoiMouseHandler id="mainAoi"/>
<DragPanHandler id="mainDragPan">
<enabled>false</enabled>
</DragPanHandler>
</tools>
</Context>
<!-- ***NEW-->
<WfsCapabilities id="wfsCapTemplate">
<models>
<FeatureCollection id="getFeatureTemplate" template="true">
<method>get</method>
<widgets>
<GmlRendererWZ id="testGmlRenderer">
<htmlTagId>mainMapPane</htmlTagId>
<targetModel>mainMap</targetModel>
<lineColor>#FF00FF</lineColor>
<lineWidth>1</lineWidth>
<pointDiameter>10</pointDiameter>
<mapContainerId>mainMapContainer</mapContainerId>
</GmlRendererWZ>
<Legend id="wfsLegend">
<htmlTagId>workspace</htmlTagId>
<outputNodeId>workspaceCanvas</outputNodeId>
</Legend>
</widgets>
</FeatureCollection>
</models>
</WfsCapabilities>
<WmsCapabilities id="wmsCapTemplate"><!-- ***NEW-->
<models><!-- ***NEW-->
<Model id="featureInfoResponse" template="true">
<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='
http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'
</namespace>
<widgets>
<FeatureInfo id="features">
<!--<htmlTagId>featureInfo</htmlTagId> ***NEW-->
<htmlTagId>workspace</htmlTagId>
<outputNodeId>workspaceCanvas</outputNodeId>
</FeatureInfo>
</widgets>
</Model>
<!-- ***NEW-->
</models>
<tools>
<WebServiceRequest id="wmsController">
<targetModel>featureInfoResponse</targetModel>
<requestName>wms:GetFeatureInfo</requestName>
</WebServiceRequest>
</tools>
</WmsCapabilities> <!-- ***NEW-->
</models>
<widgets>
<ZoomIn id="zoomIn">
<buttonBar>mainButtonBar</buttonBar>
<targetModel>mainMap</targetModel>
<mouseHandler>mainAoi</mouseHandler>
<class>RadioButton</class>
<selected>true</selected>
<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
</ZoomIn>
<ZoomOut id="zoomOut">
<buttonBar>mainButtonBar</buttonBar>
<targetModel>mainMap</targetModel>
<mouseHandler>mainAoi</mouseHandler>
<class>RadioButton</class>
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
</ZoomOut>
<DragPan id="dragPan">
<buttonBar>mainButtonBar</buttonBar>
<targetModel>mainMap</targetModel>
<mouseHandler>mainDragPan</mouseHandler>
<class>RadioButton</class>
<enabledSrc>/images/PanEnable.png</enabledSrc>
<disabledSrc>/images/PanDisable.png</disabledSrc>
</DragPan>
<Reset id="reset">
<buttonBar>mainButtonBar</buttonBar>
<targetModel>mainMap</targetModel>
<class>Button</class>
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
</Reset>
<GetFeatureInfo id="getFeatureInfo">
<buttonBar>mainButtonBar</buttonBar>
<targetModel>featureInfoResponse</targetModel>
<mouseHandler>mainAoi</mouseHandler>
<class>RadioButton</class>
<enabledSrc>/images/QueryEnable.png</enabledSrc>
<disabledSrc>/images/QueryDisable.png</disabledSrc>
<context>mainMap</context>
</GetFeatureInfo>
</widgets>
<tools>
<AoiMouseHandler id="mainAoi"/>
<DragPanHandler id="mainDragPan">
<enabled>false</enabled>
</DragPanHandler>
<MouseClickHandler id="mainMouseClick"/>
</tools>
<skinDir>../../lib/skin/default</skinDir>
<widgetTextUrl>widgetText.xml</widgetTextUrl>
<!-- relative to the skin dir -->
</MapbuilderConfig>
alert message:
error loading document:
/mapbuilder/server/php/proxy.php?url=http%3A//infudv1%3a8080/geoserver/wms%3FSERVICE%3DWMS%26VERSION%3D1.1.1%26REQUEST%3DGetFeatureInfo%26LAYERS%3D600%26HEIGHT%3D400&26INFO_FORMAT%3Dapplication/vnd.ogc.gml%26FEATURE_COUNT%3D1%26QUERY_LAYERS%3Dbrnby%3ADasKnude%26X%3D348%26y%3D338
– Not Found-<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page cannot be found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
…
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable.
…
Make sure that the Web site address displayed in the address bar of your
browser is spelled and formatted correctly.
…
HTTP Error 404 – File or directory not found. <br>Internet Information
Services (IIS)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users