[mapguide-trac] #662: Layers saved in Maestro cannot be edited in
Studio
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Aug 15 09:49:59 EDT 2008
#662: Layers saved in Maestro cannot be edited in Studio
-----------------------+----------------------------------------------------
Reporter: andrewd | Owner: ksgeograf
Type: defect | Status: new
Priority: high | Milestone:
Component: Maestro | Version: 2.0.1
Severity: major | Keywords:
External_id: |
-----------------------+----------------------------------------------------
I thought I'd created this ticket already, but don't see it. If it's a
duplicate, sorry!
I used Studio to make a bunch of layers (using the load procedures)
quickly, and then used Maestro to make some changes to those layers. When
I save the changes (or even don't change anything, but push the save
button) and then open that layer in Studio, my Feature Class and Geometry
data gets lost...once I reassign it, it works fine again.
After checking the XML before and after, it's easy to see the
problem...The "FeatureName" is different in Maestro than in Studio. Here
is the XML produced by Studio:
<?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.2.0.xsd" version="1.2.0">
<VectorLayerDefinition>
<ResourceId>Library://435966/Data/50k_airport.FeatureSource</ResourceId>
<FeatureName>Default:50k_airport</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Geometry>Geometry</Geometry>
<VectorScaleRange>
<AreaTypeStyle>
<AreaRule>
<LegendLabel />
<AreaSymbolization2D>
<Fill>
<FillPattern>Solid</FillPattern>
<ForegroundColor>ffffffff</ForegroundColor>
<BackgroundColor>ff000000</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.0</Thickness>
<Color>ff000000</Color>
<Unit>Centimeters</Unit>
<SizeContext>DeviceUnits</SizeContext>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
Here is the XML produced by Maestro:
<?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.2.0.xsd" version="1.2.0">
<VectorLayerDefinition>
<ResourceId>Library://435966/Data/50k_airport.FeatureSource</ResourceId>
<FeatureName>Default:-x35-0k_airport</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Filter />
<Geometry>Geometry</Geometry>
<Url />
<ToolTip />
<VectorScaleRange>
<AreaTypeStyle>
<AreaRule>
<LegendLabel />
<AreaSymbolization2D>
<Fill>
<FillPattern>Solid</FillPattern>
<ForegroundColor>ffffffff</ForegroundColor>
<BackgroundColor>ff000000</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.0</Thickness>
<Color>ff000000</Color>
<Unit>Centimeters</Unit>
<SizeContext>DeviceUnits</SizeContext>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
Among a few other differences, Maestro is sticking a "-x35-0" in front of
my FeatureName, which is confusing Studio. Seems like a simple fix...let's
hope.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/662>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list