[mapguide-users] RE: WMS DEMO HELP

Thomas M. Tuerke thomas.m.tuerke at autodesk.com
Fri Nov 3 17:41:18 EST 2006


Hi Jim,

The current MapGuide implementation requires only the bounding box metadata to provide a proper entry in GetCapabilities.  All the other fields are optional and largely annotative.

As for clients, I've had varying results from Gaia, and personally have had more success using CarbonTool2's sample application "CarbonViewer".  My version of Gaia may no longer represent the latest and greatest, but back when I was doing breadth testing, I found Gaia to be a bit less "complete" than the sample app, and the toolkit offered a richer set of diagnostics.  All in all, the toolkit's sample seemed a bit more polished an implementation... but like I said, that may have changed in the meantime.  YMMV.

I guess the short of it is: not all clients are created equally.  The OGC has compliance tests for server software (which MapGuide passed) but the same doesn't appear to be true of client software.  That said, there's a lot of "tolerance and forgiveness" code built into MapGuide's WMS implementation to try to glean the intent of less-than-compliant client requests, all in the name of interoperability.

- Thomas

-----Original Message-----
From: Jim O'Leary [mailto:joleary.public at gmail.com] 
Sent: Friday, November 03, 2006 2:14 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: WMS DEMO HELP


I have taken the following actions, as suggested below:

1. Set the servername to 204.244.79.27 in WMS configuration.

2. Published the Samples/Sheyboygan/Hydrography layer by right clicking the
properties of the layer in studio, then clicking the Service Properties tab.

3. Entered the bounds (it was already there, I guess because it is a demo)

Putting this URL in the browser causes the server to serve up the layer:

http://204.244.79.27/mapguide/mapagent/mapagent.fcgi?SERVICE=WMS&VERSION=1.0.0&REQUEST=GetMap&srs=EPSG:4326&WIDTH=402&HEIGHT=525&FORMAT=image/gif&TRANSPARENT=TRUE&LAYERS=Samples/Sheboygan/Layers/Hydrography&STYLES=&BBOX=-87.764987,43.691398,-87.695522,43.797520

However, when I use a WMS browser (Gaia), it shows the layers in a list, but
cannot display them.

I notice that there are a lot of fields in, say a Nasa layer that are
missing in our Hydrography layer, for example:

<Layer queryable="0">
      <Name>global_mosaic</Name> 
      <Title>WMS Global Mosaic, pan sharpened</Title>
      <Abstract>
	Release 2 of the WMS Global Mosaic, a seamless mosaic of Landsat7 scenes.
	Spatial resolution is 0.5 second for the pan band, 1 second for the visual
and near-IR bands and 2 second for the thermal bands
	Use this layer to request individual grayscale bands. The default styles
may have gamma, sharpening and saturation filters applied.
	The grayscale styles have no extra processing applied, and will return the
image data as stored on the server.
	The source dataset is part of the NASA Scientific Data Purchase, and
contains scenes acquired in 1999-2003.
        This layer provides pan-sharpened images, where the pan band is used
for the image brightness regardless of the color combination requested.
      </Abstract>
      <LatLonBoundingBox minx="-180" miny="-60" maxx="180" maxy="84"/>
      <MetadataURL type="FGDC">
	<Format>text/xml</Format>
	<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
	  xlink:type="simple"
	  xlink:href="http://onearth.jpl.nasa.gov/WAF/WMS_GMR.xml"
	/>
      </MetadataURL>
      <Style> <Name>pseudo</Name> <Title>(default) Pseudo-color image, pan
sharpened (Uses IR and Visual bands, 542 mapping), gamma 1.5</Title>
</Style>
      <Style> <Name>pseudo_low</Name> <Title>Pseudo-color image, pan
sharpened (Uses IR and Visual bands, 542 mapping)</Title> </Style>
      <Style> <Name>pseudo_bright</Name> <Title>Pseudo-color image (Uses IR
and Visual bands, 542 mapping), gamma 1.5</Title> </Style>
      <Style> <Name>visual</Name> <Title>Real-color image, pan sharpened
(Uses the visual bands, 321 mapping), gamma 1.5</Title> </Style>
      <Style> <Name>visual_low</Name> <Title>Real-color image, pan sharpened
(Uses the visual bands, 321 mapping)</Title> </Style>
      <Style> <Name>visual_bright</Name> <Title>Real-color image (Uses the
visual bands, 321 mapping), gamma 1.5</Title> </Style>
      <ScaleHint min="10" max="10000"/>
      <MinScaleDenominator>20000</MinScaleDenominator>
    </Layer>

Our Hydrography layer says simply:

<Layer queryable="0" cascaded="0" noSubsets="0" opaque="0">
   <Name>Samples/Sheboygan/Layers/Hydrography</Name>
   <Title>Water resources</Title>
   <Abstract>Water resources of Sheboygan, Wisconsin</Abstract>
   
   <KeywordList>
     <Keyword>water</Keyword>
 
   </KeywordList>
   
   

  <SRS>EPSG:4326</SRS>
 
    <LatLonBoundingBox minx="-87.74" miny="43.68" maxx="-87.69"
maxy="43.815"/>
    
  <BoundingBox SRS="EPSG:4326" minx="-87.74" miny="43.68" maxx="-87.69"
maxy="43.815"/>
 
   
  </Layer>

Could these missing tags be the problem? If so, how do you get them in the
WMS output?

Thanks



Thomas M. Tuerke wrote:
> 
> Couple of questions/suggestions concerning your installation.
> 
> 1. Have you run the WMS configuration in Site Admin page?  This is
> configured for "localhost:8008" out of the box, but if you're making the
> server outward-facing, the server name and port will need to be set there.
> 
> If your request=GetCapabilities fails, this is probably the reason why.
> 
> 
> 2. Have you used Studio or the web equivalent to publish the desired
> layers?
> 
> If your request=GetCapabilities succeeds, but the capydoc is "empty" (no
> published layers) this is probably the reason why.
> 
> 
> 3. Have the desired layers been populated with correct metadata?  Bounds
> is the one that's most important, but other information helps.
> 
> If your request=GetMap returns an exception concerning SRS, this is
> probably the reason why.
> 
> 
> That should get you started.
> 
> -----Original Message-----
> From: BradM [mailto:masonb at dfo-mpo.gc.ca] 
> Sent: Tuesday, October 24, 2006 3:19 PM
> To: users at mapguide.osgeo.org
> Subject: [mapguide-users] WMS DEMO HELP
> 
> 
> Hello people!  Does anyone have WMS working with Mapguide Enterprise or
> Mapguide open source?  Is it possible to try it out?  Are there any words
> of
> advice to make it work?  So far we have had no luck exposing map layers to
> WMS or viewing WMS.  Any direction is welcome!
> -- 
> View this message in context:
> http://www.nabble.com/WMS-DEMO-HELP-tf2504519.html#a6982682
> Sent from the OSGeo MapGuide mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/WMS-DEMO-HELP-tf2504519.html#a7168510
Sent from the MapGuide Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org



More information about the Mapguide-users mailing list