WMS DEMO HELP

Jim O'Leary joleary.public at gmail.com
Fri Nov 3 19:29:24 EST 2006


Our layers are showing up in Gaia now, but you have to first select the
layer, then right click it and "Select Layer Extent", and then click the
correct layer extent, else Gaia shows  -180,-90;180,90, as the Selected
Layer Info box in Gaia indicates:

LL BBox: (-120,48.999358;-110,60.000393)

BBox: (-180,-90;180,90)
BBox: (-120,48.999358;-110,60.000393)

I think this is because the GetCapabilities file for our server has a layer
tag wrapped around all the real layers:

   <Layer>
     <Title>CMN MapGuide WMS Server</Title>
     <SRS>EPSG:4326</SRS>
     <LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
     <BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180"
maxy="90"/>
  <!-- Published Layer #1 -->
  <Layer queryable="0" cascaded="0" noSubsets="0" opaque="0">
   <Name>Alberta/Layers/Alberta_Hydro_Filtered</Name>
   <Title>Alberta Hydrology</Title>
   <Abstract>Filtered Alberta hydrology data.</Abstract>
  <SRS>EPSG:4326</SRS>
    <LatLonBoundingBox minx="-120" miny="48.999358" maxx="-110"
maxy="60.000393"/>

  <BoundingBox SRS="EPSG:4326" minx="-120" miny="48.999358" maxx="-110"
maxy="60.000393"/>


This is not true of other GetCapabilities, for example, the NASA WMS
servers. There is not a wrapper <layer> around the real layers.

Is there a way to remove that outer <layer> tag in MapGuide? I don't see
anything in the WMS configuration, or the Service Properties for the layer.

Thanks



Hi Jim,

It is likely that your WMS service is working, but that your map extents
are so large relative to the data that nothing is visible.

If I zoom to the correct extents then I am able to view the hydrography
layer published on your server using Gaia.

A simple test would be to expose the Sheboygan Districts layer via WMS
aswell. Since it contains labels, you should get at least one piece of
text showing up in your display on Gaia. If you zoom in on that area,
you should be able to see your hydrography features.

Chris Claydon.

-----Original Message-----
From: Jim O'Leary [mailto:joleary.public at gmail.com] 
Sent: November 3, 2006 3: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/gi
f&TRANSPARENT=TRUE&LAYERS=Samples/Sheboygan/Layers/Hydrography&STYLES=&B
BOX=-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



---------------------------------------------------------------------
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#a7170067
Sent from the MapGuide Users mailing list archive at Nabble.com.





More information about the Mapguide_users mailing list