[mapguide-users] WMS

Chris Claydon chris.claydon at autodesk.com
Thu Jun 25 23:33:36 EDT 2009


The first URL is just the location of the agent that can respond to WMS requests. If you don't specify any parameters (or if you specify the wrong parameters) you won't get a usable response. The format for WMS requests is documented thoroughly in the specifications created by the Open Geospatial Consortium.

WMS services are intended to be accessed in this manner - I'm not sure what you mean or what you are trying to do when you say "there is any possibitiy that i can do this programmatically ?"

Can you provide any more detail about what you are actually trying to do? Obtain a list of layers available via WMS? Render a map via WMS? Etc.

Chris.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of sathishpsk9
Sent: Thursday, June 25, 2009 7:23 PM
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] WMS


HI Chris Claydon
      I am Using MapGuide 2.01 , .net environment , and maestro r3911 , i
did all the set up as you said in your earlier post, when i use url 1:
http://localhost/mapguide/mapagent/mapagent.fcgi
i shows nothing in browser ..... and when use url ( Sheboygon map and bounds
as you said)
2:http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetCapabilities&SERVICE=WMS&FORMAT=text/xml
i get layer information .
can you please tell me whether it is correct behaviour with url 1
and 
there is any possibitiy that i can do this programmatically ?
if yes where should code such a thing ( i might be stupid , please pardon me
) 

Thanks & Reagrds , 
satish 

        

Chris Claydon wrote:
> 
> I would try: http://localhost/mapguide/mapagent/mapagent.fcgi
> 
>  
> 
> A simple test to see if any layers are available would be to open the
> following in a web browser, and see if you get an XML capabilities
> document back. If it works, the XML document should contain entries for
> the available layers.
> 
>  
> 
> http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetCapabilities
> &SERVICE=WMS&FORMAT=text/xml 
> 
>  
> 
> Chris.
> 
>  
> 
>   _____  
> 
> From: Norm Dickson [mailto:NDickson at crape.com] 
> Sent: Tuesday, March 21, 2006 1:39 PM
> To: Norm Dickson; Chris Claydon; users at mapguide.osgeo.org
> Cc: Jason.Birch at nanaimo.ca
> Subject: RE: [mapguide-users] WMS
> 
>  
> 
> I have all this set up now.  What URL do I use to access the wms 
> http://localhost/mapguide is nor returning any layers.
> 
>  
> 
> Thanks
> 
>  
> 
> Norm
> 
>  
> 
>  
> 
>   _____  
> 
> From: Norm Dickson 
> Sent: Tuesday, March 21, 2006 12:04 PM
> To: Chris Claydon; users at mapguide.osgeo.org
> Cc: Jason.Birch at nanaimo.ca
> Subject: RE: [mapguide-users] WMS
> 
> Thanks Chris.  I assume this is a 1.0 feature since I do not have this
> as an option in my layers.  
> 
>  
> 
> I had installed 1.0 a couple of weeks ago but I found it to be slow has
> anyone else run into this?
> 
>  
> 
> Norm
> 
>  
> 
>  
> 
>   _____  
> 
>   <http://www.crape.com/> 
> Crape Geomatics Corporation | Norm Dickson : Information Technology Lead
> | Tel: 403.514.7280 | Fax: 403.303.3784
> 
>  
> 
>  
> 
>  
> 
>   _____  
> 
> From: Chris Claydon [mailto:chris.claydon at autodesk.com] 
> Sent: Tuesday, March 21, 2006 9:33 AM
> To: users at mapguide.osgeo.org
> Cc: Jason.Birch at nanaimo.ca
> Subject: RE: [mapguide-users] WMS
> 
> WFS uses feature sources, rather than layer resources, but the
> configuration is very similar. If you open the Properties dialog for a
> feature source, the Service Properties tab contains a checkbox labeled
> "Publish via Web Feature Service". The dialog contents are slightly
> different, but the Title and Bounds fields should be configured the same
> way. I believe that setting the bounds correctly is much more important
> for WFS.
> 
>  
> 
> Chris Claydon.
> 
>  
> 
>   _____  
> 
> From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
> Sent: Tuesday, March 21, 2006 9:25 AM
> To: users at mapguide.osgeo.org
> Subject: RE: [mapguide-users] WMS
> 
>  
> 
> Does this control the WFS availability as well?
> 
>  
> 
>   _____  
> 
> From: Chris Claydon [mailto:chris.claydon at autodesk.com] 
> Sent: Tuesday, March 21, 2006 08:19
> To: users at mapguide.osgeo.org
> Subject: RE: [mapguide-users] WMS
> 
> Hi Norm,
> 
>  
> 
> This is not yet documented. I'll try to cover as much as I can:
> 
>  
> 
> The information that controls how layers are exposed via WMS is stored
> in the resource header metadata. In MapGuide Studio, if you right-click
> on a layer resource in the site explorer, select "Properties...", and
> then go to the "Service Properties" tab, you will see a checkbox labeled
> "Publish via Web Mapping Service".
> 
>  
> 
>  
> 
>  
> 
> If this checkbox is checked, the layer will be exposed via WMS.
> 
>  
> 
> If the "Queryable" checkbox is also checked, the layer will allow WMS
> "GetFeatureInfo" requests.
> 
>  
> 
> You may wish to set the "Title" field to a user-friendly name for the
> layer. If it is left blank, it will show up in WMS using the resource
> name.
> 
>  
> 
> You may also wish to set the "Bounds" value. It needs to be in a
> specific XML format. An example is given below:
> 
>  
> 
> <Bounds SRS="EPSG:4326" west="-1.2345" south="-6.5432" east="10.2468"
> north="9.8765"/>
> 
>  
> 
> If it is left blank, it will default in WMS to use the EPSG:4326 spatial
> reference system, which corresponds to lat/lon degrees using the WGS84
> datum, and the bounds will be set to -180, -90, 180, 90.
> 
>  
> 
> In my experience with WMS client applications so far, I have not needed
> to set the bounds in order to retrieve maps and feature information
> successfully.
> 
>  
> 
> I hope this information helps to get you started.
> 
>  
> 
> Chris Claydon.
> 
>  
> 
>  
> 
>  
> 
>   _____  
> 
> From: Norm Dickson [mailto:NDickson at crape.com] 
> Sent: Tuesday, March 21, 2006 8:13 AM
> To: users at mapguide.osgeo.org
> Subject: [mapguide-users] WMS
> 
>  
> 
> I feel as though I am missing something.  Is there any documentation on
> exposing WMS in MGO?  I can connect to the WMS service but no layers are
> exposed.  Any help would be appreciated.
> 
>  
> 
> Thanks,
> 
>  
> 
> Norm
> 
>  
> 
>  
> 
>   _____  
> 
>  <http://www.crape.com/> 
> Crape Geomatics Corporation | Norm Dickson : Information Technology Lead
> | Tel: 403.514.7280 | Fax: 403.303.3784
> 
>  
> 
>  
> 
> 
>  
>  
> 

-- 
View this message in context: http://n2.nabble.com/WMS-tp1803379p3158823.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list