digitizing
Farah
farah at egovernments.org
Fri Dec 1 02:35:54 EST 2006
Hi Kencana,
Filling in the colour for the features in the temporary layer is very
simple. Maybe you could open Mapguide studio, do a sample layer styling on
an existing layer and then save that layer as xml. Check out that xml file
to see how the styling is done.
Here is a sample code for filling in the polygon: The below code is the xml
file : polygon.xml for the temporary layer.It shows the polygon in red.
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
<VectorLayerDefinition>
<ResourceId></ResourceId>
<FeatureName>ParcelMarker</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Geometry>Location</Geometry>
<VectorScaleRange>
<MinScale>0</MinScale>
<MaxScale>100000</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.3</SizeX>
<SizeY>4.0</SizeY>
<Rotation>0</Rotation>
<Text></Text>
<FontName></FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>'Center'</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Solid</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FF000000</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.0</Thickness>
<Color>FFC0C0C0</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
-----Original Message-----
From: kencana kesuma [mailto:bluesky_dyx at hotmail.com]
Sent: Friday, December 01, 2006 12:46 PM
To: farah at egovernments.org
Subject: digitizing
hi Farah,
sorry for keep bugging you.
please don't mind.
as I told you before that i am trying to combine the digitizing and
redlining method
for drawing the circle,rectangle, and polygon.
and I have successfully create it.
however...I need to fill in the respective rectangle, circle, polygon with
color.
so far, i only can do the line color.
any idea of this.what i want to do is exactly like "call before you dig"
application sample.
I hope you can help me out
thank you very much once again
Regards,
Kencana
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
-----Original Message-----
From: kencana kesuma [mailto:bluesky_dyx at hotmail.com]
Sent: Friday, December 01, 2006 12:46 PM
To: farah at egovernments.org
Subject: digitizing
hi Farah,
sorry for keep bugging you.
please don't mind.
as I told you before that i am trying to combine the digitizing and
redlining method
for drawing the circle,rectangle, and polygon.
and I have successfully create it.
however...I need to fill in the respective rectangle, circle, polygon with
color.
so far, i only can do the line color.
any idea of this.what i want to do is exactly like "call before you dig"
application sample.
I hope you can help me out
thank you very much once again
Regards,
Kencana
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
More information about the Mapguide_users
mailing list