[mapguide-users] Published layers not showing using WMS-GetCapabilities

Zac Spitzer zac.spitzer at gmail.com
Fri Dec 7 02:37:46 EST 2007


how does it compare to the Sheboygan WMS sample?

interesting enuff the building layer has this WMS description

        <Layer queryable="1" cascaded="0" noSubsets="0" opaque="0">
            <Name>Samples/Sheboygan/Layers/Buildings</Name>
            <Title>Buildings</Title>
            <Abstract>Buildings in the city</Abstract>
            <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>

But in Mapguide Studio 2008, under service properties the bounds is listed
as

<Bounds SRS="EPSG:4326" west="-87.74" south="43.68" east="-87.69" north="
43.815"/>

Keep in mind that as far as i can tell Mapguide WMS doesn't use the
tilecache (and probably can't if the grid
and zoom always changes as it comes from the wms request) and you can't
publish Maps Definitions via WMS either.

Also I think that there is no request short circuit on WMS requests which
fall outside the defined bounds
(which can result in a lot of load for no reason for bad WMS requests), and
there are no cache
headers for WMS served by Mapguide...

The Openlayers tilecache program solves the lack of caching quite nicely.

Look out for the Mapguide Provider for openlayers which is coming in Fusion
I think, it resolves a lot of this as you can
use Map Definitions for this sort of thing...

z


On Dec 7, 2007 1:37 AM, azpublic <azpublic at bluewin.ch> wrote:

> No.
> It seems that the bounds were not taken into consideration when I entered
> them into MapGuide studio  ... Is that a bug ?
>
>
> Do I need to add the bounds manually or is there another way or something
> I'm doing wrong?
>
> Here is the published layer part of my Capabilities xml doc.
>
>    -->
>>        <Layer>
> <Title>MapGuide WMS Server</Title>
> <SRS>EPSG:4326</SRS>
> <LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
> <!-- Published Layer #1 -->
>>        <Layer queryable="1" cascaded="0" noSubsets="0" opaque="0">
> <Name>Layers/chMercat2</Name>
> <Title>blafoo</Title>
> </Layer>
> <!-- Published Layer #2 -->
>>        <Layer queryable="1" cascaded="0" noSubsets="0" opaque="1">
> <Name>Layers/sz</Name>
> <Title>sz2</Title>
> </Layer>
> <!-- Published Layer #3 -->
>>        <Layer queryable="1" cascaded="0" noSubsets="0" opaque="0">
> <Name>Layers/sz_Mercat</Name>
> <Title>CHMercator</Title>
> </Layer>
> </Layer>
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org [mailto:
> mapguide-users-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
> Sent: mercredi, 5. décembre 2007 05:13
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Published layers not showing using
> WMS-GetCapabilities
>
> are the bounds showing up in the xml for GetCapabilities?
>
>
> http://127.0.0.1:8008/mapguide/mapagent/mapagent.fcgi?REQUEST=GetCapabilities&service=WMS&&username=Administrator&password=admin
>
> On Dec 5, 2007 2:18 PM, azpublic <azpublic at bluewin.ch> wrote:
> > Thanks Zak,
> >
> > This was helpful.
> >
> > I finally found the way to publish a layer on the WMS using MapGuide
> studio
> > and the hidden "properties" dialog only accessible using a right click
> on
> > the layer in the site explorer ...
> >
> >
> > I know managed to publish my layer but it now seems I have some
> coordinate
> > problems.
> >
> > The Shapefile I'm using has the following coordinates :
> > xMin,yMin 5.96611,45.8294 : xMax,yMax 10.4889,47.8069
> >
> > However when trying to query these coordinates I get a blank image.
> >
> > When using a WMS client such as Gaia or uDig I manage to see my layer
> but I
> > must zoom for hours for this and it seems that the map coordinates and
> scale
> > are not correct.
> >
> > I've set the BOUNDS of the layer as follow :
> > <Bounds SRS="EPSG:4326" north="47.8069" west="5.96611" south="
> > 45.8294" east="10.4889" abstract="true" />
> >
> > However when looking at the layer properties in Gaia, I get the
> following
> > bounds :
> >
> > xMin,yMin -180.00,-90.00 : xMax,yMax 180.00,90.00
> >
> > Can someone help me fix this ? What am I doing wrong with the coords ?
> >
> > Thanks in advance
> >
> >
> >
> >
> > -----Original Message-----
> > From: mapguide-users-bounces at lists.osgeo.org
> > [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
> > Sent: mardi, 27. novembre 2007 10:31
> > To: MapGuide Users Mail List
> > Subject: Re: [mapguide-users] Published layers not showing using WMS
> > -GetCapabilities
> >
> > you need to set the _ISPUBLISHED flag in the resourceheader xml
> >
> > ie
> >
> > Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition
> >
> > contains
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <ResourceDocumentHeader
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xsi:noNamespaceSchemaLocation="ResourceDocumentHeader-1.0.0.xsd">
> >    <Security xsi:noNamespaceSchemaLocation="ResourceSecurity-1.0.0.xsd">
> >       <Inherited>true</Inherited>
> >    </Security>
> >    <Metadata>
> >       <Simple>
> >          <Property xsi:noNamespaceSchemaLocation="Property-1.0.0.xsd">
> >             <Name>_ISPUBLISHED</Name>
> >             <Value>1</Value>
> >          </Property>
> >          <Property xsi:noNamespaceSchemaLocation="Property-1.0.0.xsd">
> >             <Name>_TITLE</Name>
> >             <Value>Sheboygan</Value>
> >          </Property>
> >          <Property xsi:noNamespaceSchemaLocation="Property-1.0.0.xsd">
> >             <Name>_QUERYABLE</Name>
> >             <Value>0</Value>
> >          </Property>
> >          <Property xsi:noNamespaceSchemaLocation="Property-1.0.0.xsd">
> >             <Name>_OPAQUE</Name>
> >             <Value>0</Value>
> >          </Property>
> >       </Simple>
> >    </Metadata>
> > </ResourceDocumentHeader>
> >
> > On Nov 26, 2007 11:11 PM, azpublic <azpublic at bluewin.ch> wrote:
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > >
> > >
> > > I've created a few layers using Mapguide Studio.
> > >
> > > Everything seems to work fine and I can create my maps and weblayout
> and
> > > view them using the AjaxViewer.
> > >
> > >
> > >
> > > However when I try to access theses layers using a WMS getImage
> request I
> > > don't' have anything…
> > >
> > > Furthermore when I use GetCapabilities using
> > > http://localhost:8008/mapguide/mapagent/getcapabilitieswmsform.htmlHere
> > is
> > > what I get in the resulting XML
> > >
> > >
> > >
> > >
> > >
> > > …
> > >
> > >
> > >
> > > <!--
> > >
> > >
> > >
> > >     PUBLISHED LAYERS
> > >
> > >
> > >
> > >     -->
> > >
> > > -
> > >
> > > <Layer>
> > >
> > > <Title>MapGuide WMS Server</Title>
> > >
> > > <SRS>EPSG:4326</SRS>
> > >
> > > <LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
> > >
> > > </Layer>
> > >
> > > </Capability>
> > >
> > >
> > >
> > >
> > >
> > > It seems that the layers I create using Mapguide Studio are not
> visible …
> > >
> > >
> > >
> > > Any Idea what I am doing wrong?
> > >
> > >
> > >
> > > Thanks for your help.
> > >
> > >
> > >
> > > Cheers
> > >
> > > Alex
> > >
> > >
> > > No virus found in this outgoing message.
> > >  Checked by AVG Free Edition.
> > >  Version: 7.5.503 / Virus Database: 269.16.7/1151 - Release Date:
> > 25.11.2007
> > > 16:24
> > >
> > >
> > >
> > > No virus found in this outgoing message.
> > >  Checked by AVG Free Edition.
> > >  Version: 7.5.503 / Virus Database: 269.16.7/1151 - Release Date:
> > 25.11.2007
> > > 16:24
> > >
> > > _______________________________________________
> > > mapguide-users mailing list
> > > mapguide-users at 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 at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.16.8/1153 - Release Date:
> 26.11.2007
> > 21:08
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.16.13 - Release Date: 02.12.2007
> > 00:00
> >
> >
> >
> > _______________________________________________
> > mapguide-users mailing list
> > mapguide-users at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.13 - Release Date: 02.12.200700:00
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.13 - Release Date: 02.12.200700:00
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071207/5a450526/attachment.html


More information about the mapguide-users mailing list