[mapguide-internals] Area stylization

Walt Welton-Lair walt.welton-lair at autodesk.com
Mon Dec 14 16:24:02 EST 2009


Area style support was initially available in MGOS 2.0.0, while a preview of line style support was available in 1.2.0.  But it wasn't until 2.0.1 until both were reasonably stable.  I've updated RFC 14 to indicate this.

Here's a simple swamp symbol I hacked together:

<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd" version="1.1.0">
 <Name>SWAMP</Name>
 <Graphics>
  <Path>
   <Geometry>M -1.0,0.0 h 2.0 M -1.3,0.3 h 2.6 M 0.0,0.3 v 1.5 M -0.2,0.3 l -1.0,1.0 M 0.2,0.3 l 1.0,1.0</Geometry>
   <LineColor>%HATCHCOLOR%</LineColor>
  </Path>
  <Path>
   <Geometry>M 3.0,2.5 h 2.0 M 2.7,2.8 h 2.6 M 4.0,2.8 v 1.5 M 3.8,2.8 l -1.0,1.0 M 4.2,2.8 l 1.0,1.0</Geometry>
   <LineColor>%HATCHCOLOR%</LineColor>
  </Path>
 </Graphics>
 <AreaUsage>
  <Angle>0.0</Angle>
  <RepeatX>8.0</RepeatX>
  <RepeatY>5.0</RepeatY>
 </AreaUsage>
 <ParameterDefinition>
  <Parameter>
   <Identifier>HATCHCOLOR</Identifier>
   <DefaultValue>0xff000000</DefaultValue>
   <DisplayName>&amp;Hatch Color</DisplayName>
   <Description>Color for the hatch style</Description>
   <DataType>FillColor</DataType>
  </Parameter>
 </ParameterDefinition>
</SimpleSymbolDefinition>

Walt

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason Birch
Sent: Monday, December 14, 2009 3:06 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] Area stylization

I'm not clear on whether there is any area stylization support in the new
advanced stuff or not.  The schema has an AreaUsage section, but the RFCs
show that support would be deferred.

I'm trying to create a classic "Wetlands" area fill which has a stylized
bush ( *\|/* )  at an even/odd offset (or random) grid pattern fixed to
mapping units.  If anyone has any pointers on this, or even a "can't do
that, just use the stock Swamp symbol" I'd appreciate it. :)

Thanks,
Jason
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list