[mapguide-users] Theme layer - error

Arnaud De Groof Arnaud.DeGroof at spacebel.be
Mon Jan 12 09:16:09 EST 2009


Here the LayerDefinition: 

<?xml version="1.0" encoding="utf-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd"
version="1.1.0">
  <VectorLayerDefinition>
    <ResourceId>Library://Test/testpoly.FeatureSource</ResourceId>
    <FeatureName>Default:New_Shapefile</FeatureName>
    <FeatureNameType>FeatureClass</FeatureNameType>
    <Filter />
    <PropertyMapping>
      <Name>T2</Name>
      <Value>T2</Value>
    </PropertyMapping>
    <PropertyMapping>
      <Name>T1</Name>
      <Value>T1</Value>
    </PropertyMapping>
    <Geometry>Geometry</Geometry>
    <Url />
    <ToolTip />
    <VectorScaleRange>
      <AreaTypeStyle>
        <AreaRule>
          <LegendLabel />
          <AreaSymbolization2D>
            <Fill>
              <FillPattern>Solid</FillPattern>
              <ForegroundColor>ff808080</ForegroundColor>
              <BackgroundColor>ff808080</BackgroundColor>
            </Fill>
            <Stroke>
              <LineStyle>Solid</LineStyle>
              <Thickness>0</Thickness>
              <Color>808080</Color>
              <Unit>Millimeters</Unit>
              <SizeContext>MappingUnits</SizeContext>
            </Stroke>
          </AreaSymbolization2D>
        </AreaRule>
      </AreaTypeStyle>
    </VectorScaleRange>
  </VectorLayerDefinition>
</LayerDefinition>



-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: lundi 12 janvier 2009 15:11
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Theme layer - error

can you post your layer xml?

On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
<Arnaud.DeGroof at spacebel.be> wrote:
> Hi,
>
>
>
> I have a problem with the function "Theme layer". With the Sheboygan
example
> (district layer), the function is successful used but when I try to
use this
> function with my different polygon layers, the following error is
> encountered during the process:
>
>
>
> Error: An exception occurred in DB XML component.
>
>         Error: XML Indexer:  Parse error in document at line, 72, char
12.
> Parser message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>  StackTrace:
>
>   - MgResourceServiceHandler.ProcessOperation line 80 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceServiceHandler.cpp
>
>   - MgOpSetResource.Execute line 103 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\OpSetResource.cpp
>
>   - MgServerResourceService.SetResource line 713 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ServerResourceService.cpp
>
>   - MgRepositoryManager.SetResource line 867 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp
>
>   - MgRepositoryManager.AddResource line 840 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp
>
>   - MgResourceContentManager.AddResource line 183 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp
>
>   - MgResourceContentManager.PutDocument line 624 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp
>
>   - MgResourceDefinitionManager.PutDocument line 554 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceDefinitionManager.cpp
> An exception occurred in DB XML component.
>
> Error: XML Indexer:  Parse error in document at line, 72, char 12.
Parser
> message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>
>
> Moreover, is it possible to configure this function aiming to apply a
> graduated color depending to the attribute value?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> Arnaud De Groof
>
>
>
> ________________________________
> E-MAIL DISCLAIMER
>
> The present message may contain confidential and/or legally privileged
> information. If you are not the intended addressee and in case of a
> transmission error, please notify the sender immediately and destroy
this
> E-mail. Disclosure, reproduction or distribution of this document and
its
> possible attachments is strictly forbidden.
>
> SPACEBEL denies all liability for incomplete, improper, inaccurate,
> intercepted, (partly) destroyed, lost and/or belated transmission of
the
> current information given that unencrypted electronic transmission
cannot
> currently be guaranteed to be secure or error free.
> Upon request or in conformity with formal, contractual agreements, an
> originally signed hard copy will be sent to you to confirm the
information
> contained in this E-mail.
>
> SPACEBEL denies all liability where E-mail is used for private use.
>
> SPACEBEL cannot be held responsible for possible viruses that might
corrupt
> this message and/or your computer system.
>
> ________________________________
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list