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

Zac Spitzer zac.spitzer at gmail.com
Tue Nov 27 04:30:52 EST 2007


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.html Here 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


More information about the mapguide-users mailing list