Exporting as XML

newjim j_oleary_ed at yahoo.ca
Fri Jul 7 15:26:18 EDT 2006


That is a good trick, but the program still crashes. However, there is a
complete example in the new deb guide documentation, and it does not crash,
so i will look at that. Here is the XML in that sample, named
RecentlyBuilt.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.0.0.xsd" version="1.0.0">
	<VectorLayerDefinition>
	
<ResourceId>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</ResourceId>
		<FeatureName>SHP_Schema:Parcels</FeatureName>
		<FeatureNameType>FeatureClass</FeatureNameType>
		<PropertyMapping>
			<Name>NAME</Name>
			<Value>NAME</Value>
		</PropertyMapping>
		<PropertyMapping>
			<Name>ID</Name>
			<Value>ID</Value>
		</PropertyMapping>
		<PropertyMapping>
			<Name>YRBUILT</Name>
			<Value>YRBUILT</Value>
		</PropertyMapping>
		<Geometry>SHPGEOM</Geometry>
		<VectorScaleRange>
			<MaxScale>10000</MaxScale>
			<AreaTypeStyle>
				<AreaRule>
					<LegendLabel>Built after 1950</LegendLabel>
					<Filter>YRBUILT &gt; 1950</Filter>
					<Label>
						<Unit>Points</Unit>
						<SizeContext>DeviceUnits</SizeContext>
						<SizeX>0.3</SizeX>
						<SizeY>10</SizeY>
						<Text>YRBUILT</Text>
						<FontName>Arial</FontName>
						<ForegroundColor>FF000000</ForegroundColor>
						<BackgroundColor>FFFFFFFF</BackgroundColor>
						<BackgroundStyle>Transparent</BackgroundStyle>
						<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
						<VerticalAlignment>&apos;Baseline&apos;</VerticalAlignment>
					</Label>
					<AreaSymbolization2D>
						<Fill>
							<FillPattern>Solid</FillPattern>
							<ForegroundColor>FFFFFF00</ForegroundColor>
							<BackgroundColor>FF000000</BackgroundColor>
						</Fill>
						<Stroke>
							<LineStyle>Solid</LineStyle>
							<Thickness>0</Thickness>
							<Color>FF000000</Color>
							<Unit>Inches</Unit>
						</Stroke>
					</AreaSymbolization2D>
				</AreaRule>
			</AreaTypeStyle>
		</VectorScaleRange>
	</VectorLayerDefinition>
</LayerDefinition>

-- 
View this message in context: http://www.nabble.com/Exporting-as-XML-tf1904164.html#a5223231
Sent from the OSGeo MapGuide forum at Nabble.com.





More information about the Mapguide-users mailing list