[mapguide-users] [MapGuide 2.4]Composite symbole in MapUnits

Rémy GOURRAT rgourrat at ag-carto.fr
Wed Sep 18 08:17:17 PDT 2013


Thanks Jackie,



I replace it like this, I can validate it with maestro editor Xml



<?xml version="1.0"?>

<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.4.0" xsi:noNamespaceSchemaLocation="LayerDefinition-2.4.0.xsd">

  <VectorLayerDefinition>

    <ResourceId>Library://ZZ_Test/Data/ORA_PLU.FeatureSource</ResourceId>

    <Watermarks />

    <FeatureName>KingOra:ORA_PLU~V_PLU_PRE_S_05_LBT_MPG~GEOM_LBT</FeatureName>

    <FeatureNameType>FeatureClass</FeatureNameType>

    <Filter>IDPLU_VERSION = 0</Filter>

    <Geometry>GEOM_LBT</Geometry>

    <ToolTip>concat ('ER n° : ', LIBEPSC, '\n', ER_DESTINATION, '\n', ER_ATTRIBUTAIRE)</ToolTip>

    <VectorScaleRange>

      <MaxScale>5000</MaxScale>

      <CompositeTypeStyle>

        <CompositeRule>

          <LegendLabel />

          <CompositeSymbolization>

            <SymbolInstance>

              <ResourceId>Library://ZZ_Test/Symbols/ag_PRE_S_05_LBT.SymbolDefinition</ResourceId>

              <ParameterOverrides />

              <Unit>Meters</Unit>

              <SizeContext>MappingUnits</SizeContext>

              <SizeX>20</SizeX>

              <SizeY>20</SizeY>

            </SymbolInstance>

          </CompositeSymbolization>

        </CompositeRule>

      </CompositeTypeStyle>

    </VectorScaleRange>

  </VectorLayerDefinition>

</LayerDefinition>



But When i save this resource with Maestro 5.0.0.75.32 :



« System.Exception: Le serveur distant a retourné une erreur : (559) MgDbXmlException.: Le module d'erreur personnalisé ne reconnaît pas cette erreur. ---> System.Net.WebException: Le serveur distant a retourné une erreur : (559) MgDbXmlException.

   à System.Net.HttpWebRequest.GetResponse()

   à OSGeo.MapGuide.MaestroAPI.HttpServerConnection.SetResourceXmlData(String resourceid, Stream content, Stream header) dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\OSGeo.MapGuide.MaestroAPI.Http\HttpServerConnection.cs:ligne 651

   --- Fin de la trace de la pile d'exception interne ---

   à Maestro.Editors.Common.XmlContentErrorDialog.CheckAndHandle(Exception ex, String origXml, Boolean bDisplay) dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Editors\Common\XmlContentErrorDialog.cs:ligne 60

   à Maestro.Editors.ResourceEditorServiceBase.UpdateResourceContent(String xml) dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Editors\ResourceEditorServiceBase.cs:ligne 326

   à Maestro.Base.Editor.EditorContentBase.OnBeforeSave(Object sender, CancelEventArgs e) dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Base\Editor\EditorContentBase.cs:ligne 163

   à Maestro.Editors.ResourceEditorServiceBase.OnBeforeSave() dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Editors\ResourceEditorServiceBase.cs:ligne 339

   à Maestro.Editors.ResourceEditorServiceBase.Save() dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Editors\ResourceEditorServiceBase.cs:ligne 245

   à Maestro.Base.Commands.SaveResourceCommand.Run() dans c:\Program Files (x86)\Jenkins\jobs\Maestro trunk\workspace\Maestro.Base\Commands\SaveResourceCommand.cs:ligne 45

   à ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)

   à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   à System.Windows.Forms.Control.WndProc(Message& m)

   à System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   à System.Windows.Forms.ToolStrip.WndProc(Message& m)

   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

"



It's true that in maestro symbol instance panel for composite style, I never seen the choice "MappingUnits" "DeviceUnits" for composite style...



Thanks for your help



Rémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20130918/19f3ab45/attachment.html>


More information about the mapguide-users mailing list