Re: [mapguide-users] Using GetFeatureInfo on MapGuide layers via WMS

2008-11-06 Thread Zac Spitzer
Ok, I have had a look thru trac and there doesn't seem to be complete
coverage of
WMS problems.

http://trac.osgeo.org/mapguide/query?status=new&status=assigned&status=reopened&status=closed&verbose=1&component=WMS+Interface&order=priority

The best way to get this address is to file an easily reproduceable bug

for this i would recommend using the sheboygan sample dataset which we
all know and love and then file some WMS calls against this dataset
which are failing in the bug report

http://trac.osgeo.org/mapguide/ticket/225
is a good example, nice and simple to reproduce and it got fixed

http://trac.osgeo.org/mapguide/ticket/148
isn't such a good example and is still open

There is a fine art to filing bugs, I hope these examples help

z


On Thu, Nov 6, 2008 at 6:13 AM, Kori Maleski <[EMAIL PROTECTED]> wrote:

> I couldnt get it to work on point or polyline with MapGuide 1.2.  - Not
> sure if this is resolved in the new releases.
>
> Cheers,
>
> On Wed, Nov 5, 2008 at 11:22 AM, gingerbbm <[EMAIL PROTECTED]>wrote:
>
>>
>> Dear all
>>
>> I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able
>> to
>> click a point and see feature information (ultimately to create dynamic
>> tooltips). I found the code to do this job (see below) which employs
>> GetFeatureInfo.
>>
>> The thing is, it doesn't appear to work on point or line layers, only
>> polygon ones. Can anyone confirm that this doesn't work, or offer some
>> advice on how to make it work.
>>
>>map.events.register('click', map, function (e) {
>>OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...
>> please wait...";
>>var url =  layerTube.getFullRequestString({
>>REQUEST: "GetFeatureInfo",
>>EXCEPTIONS: "application/vnd.ogc.se_xml",
>>BBOX: layerTube.map.getExtent().toBBOX(),
>>X: e.xy.x,
>>Y: e.xy.y,
>>INFO_FORMAT: 'text/html',
>>QUERY_LAYERS: layerTube.params.LAYERS,
>>WIDTH: layerTube.map.size.w,
>>HEIGHT: layerTube.map.size.h,
>>TOLERANCE: 50
>>});
>>OpenLayers.loadURL(url, '', this, setHTML);
>>OpenLayers.Event.stop(e);
>>  });
>>
>>
>> I would appreciate any advice on this subject.
>>
>> Thanks!
>> Stuart
>> --
>> View this message in context:
>> http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>


-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Using GetFeatureInfo on MapGuide layers via WMS

2008-11-05 Thread Kori Maleski
I couldnt get it to work on point or polyline with MapGuide 1.2.  - Not sure
if this is resolved in the new releases.

Cheers,

On Wed, Nov 5, 2008 at 11:22 AM, gingerbbm <[EMAIL PROTECTED]> wrote:

>
> Dear all
>
> I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able
> to
> click a point and see feature information (ultimately to create dynamic
> tooltips). I found the code to do this job (see below) which employs
> GetFeatureInfo.
>
> The thing is, it doesn't appear to work on point or line layers, only
> polygon ones. Can anyone confirm that this doesn't work, or offer some
> advice on how to make it work.
>
>map.events.register('click', map, function (e) {
>OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...
> please wait...";
>var url =  layerTube.getFullRequestString({
>REQUEST: "GetFeatureInfo",
>EXCEPTIONS: "application/vnd.ogc.se_xml",
>BBOX: layerTube.map.getExtent().toBBOX(),
>X: e.xy.x,
>Y: e.xy.y,
>INFO_FORMAT: 'text/html',
>QUERY_LAYERS: layerTube.params.LAYERS,
>WIDTH: layerTube.map.size.w,
>HEIGHT: layerTube.map.size.h,
>TOLERANCE: 50
>});
>OpenLayers.loadURL(url, '', this, setHTML);
>OpenLayers.Event.stop(e);
>  });
>
>
> I would appreciate any advice on this subject.
>
> Thanks!
> Stuart
> --
> View this message in context:
> http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Using GetFeatureInfo on MapGuide layers via WMS

2008-11-05 Thread gingerbbm

Dear all

I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able to
click a point and see feature information (ultimately to create dynamic
tooltips). I found the code to do this job (see below) which employs
GetFeatureInfo.

The thing is, it doesn't appear to work on point or line layers, only
polygon ones. Can anyone confirm that this doesn't work, or offer some
advice on how to make it work.

map.events.register('click', map, function (e) {
OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...
please wait...";
var url =  layerTube.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: layerTube.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: layerTube.params.LAYERS,
WIDTH: layerTube.map.size.w,
HEIGHT: layerTube.map.size.h,
TOLERANCE: 50
});
OpenLayers.loadURL(url, '', this, setHTML);
OpenLayers.Event.stop(e);
  }); 


I would appreciate any advice on this subject.

Thanks!
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users