[mapguide-users] Maestro FeatureSource schema upgrade error
mcs at gdtest.it
mcs at gdtest.it
Tue Jan 31 08:28:31 PST 2017
We're using Maestro (5.1 and 6.0b4) to upgrade some feature schema from 2.3.0
to 2.4.0.
After schema upgrade the HYPERLINK info are completely lost.
The block
<Url>
<Url>if('"ID" = ''707'' OR "ID" = ''648''',
Concat('gdt_redirectNpages.php?&npages=2'))</Url>
is not migrated to <UrlData>
<UrlData>
<Content>................... </Content>
</UrlData>
so hyperlinks have to be restored manually.
Here is an example of the schema before and after upgrade :
<?xml version="1.0"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.3.0"
xsi:noNamespaceSchemaLocation="LayerDefinition-2.3.0.xsd">
<VectorLayerDefinition>
<ResourceId>Library://MYDATA/MyFolder/Data/shp.FeatureSource</ResourceId>
<Watermarks />
<FeatureName>Default:piezometri</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Filter />
<PropertyMapping>
<Name>TXT_CODE</Name>
<Value>Codice</Value>
</PropertyMapping>
<PropertyMapping>
<Name>ID</Name>
<Value>ID</Value>
</PropertyMapping>
<Geometry>Geometry</Geometry>
<Url>if('"ID" = ''707'' OR "ID" = ''648''',
Concat('gdt_redirectNpages.php?&npages=2'))</Url>
<ToolTip>Concat('<img src="/logo.jpg" />','<br />',TXT_DESCR
)</ToolTip>
<VectorScaleRange>
After :
<?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://GDMS/1805_ISP_Piezometri/Data/shp.FeatureSource</ResourceId>
<Watermarks />
<FeatureName>Default:piezometri</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Filter />
<PropertyMapping>
<Name>TXT_CODE</Name>
<Value>Codice</Value>
</PropertyMapping>
<PropertyMapping>
<Name>ID</Name>
<Value>ID</Value>
</PropertyMapping>
<Geometry>Geometry</Geometry>
........... missing <Urldata>
<ToolTip>Concat('<img
src="http://monitoring.gdtest.it/sititest/logo_gdtest_small.jpg"
/>','<br />',TXT_DESCR )</ToolTip>
<VectorScaleRange>
marco
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Maestro-FeatureSource-schema-upgrade-error-tp5305523.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list