[mapguide-users] MGOS 2.2 - WMS problems with Meastro

Gabriele Monfardini gabrimonfa at gmail.com
Fri Aug 24 10:20:44 PDT 2012


Apparently I've succeeded in some way.
I had to manually configure WMS_SCHEMA part of the layer because the
automatically compiled is wrong (!)

Feature Source (called prova_wms):

<?xml version="1.0"?>
<FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
  <Provider>OSGeo.WMS</Provider>
  <Parameter>
    <Name>FeatureServer</Name>
    <Value>http://www.geomapix.com/lgswebadaptor/services/BaMosaic2/ImageServer/WMSServer?</Value>
  </Parameter>
  <ConfigurationDocument>config.xml</ConfigurationDocument>
</FeatureSource>


Layer Definition (called prova_wms):

<?xml version="1.0"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0.0"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
  <GridLayerDefinition>
    <ResourceId>Library:///prova_wms.FeatureSource</ResourceId>
    <FeatureName>WMS_Schema:0</FeatureName>
    <Geometry>Image</Geometry>
    <GridScaleRange>
      <ColorStyle>
        <ColorRule>
          <LegendLabel />
          <Color>
            <ExplicitColor>000000</ExplicitColor>
          </Color>
        </ColorRule>
        <ColorRule>
          <LegendLabel />
          <Color>
            <ExplicitColor>FFFFFF</ExplicitColor>
          </Color>
        </ColorRule>
      </ColorStyle>
      <RebuildFactor>1</RebuildFactor>
    </GridScaleRange>
  </GridLayerDefinition>
</LayerDefinition>


Map Definition (called prova_wms):

<?xml version="1.0"?>
<MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.4.0"
xsi:noNamespaceSchemaLocation="MapDefinition-2.4.0.xsd">
  <Name />
  <CoordinateSystem>GEOGCS["LL84",DATUM["WGS84",SPHEROID["WGS84",6378137.000,298.25722293]],PRIMEM["Greenwich",0],UNIT["Degree",0.01745329251994]]</CoordinateSystem>
  <Extents>
    <MinX>-65.7</MinX>
    <MaxX>-65.5</MaxX>
    <MinY>43.4</MinY>
    <MaxY>43.6</MaxY>
  </Extents>
  <BackgroundColor>ffffffff</BackgroundColor>
  <Metadata><MapDescription>prova_wms</MapDescription></Metadata>
  <MapLayer>
    <Name>prova_wms</Name>
    <ResourceId>Library://prova_wms.LayerDefinition</ResourceId>
    <Selectable>true</Selectable>
    <ShowInLegend>true</ShowInLegend>
    <LegendLabel>prova_wms</LegendLabel>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <Group />
  </MapLayer>
  <Watermarks />
</MapDefinition>


Note that previewing the map works, previewing the layer ... crashes
Mapguide (!!)

Regards,

Gabriele Monfardini


More information about the mapguide-users mailing list