<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I am using Autodesk Civil 3D/Map 3D (contains a MapGuide component) and I need to create a custom command to clip or resample raster image via WMS connection. I am a C# developer.<o:p></o:p></p>
<p class="MsoNormal">I see the appropriate expression capabilities listed here, but I cannot find any examples how to apply these expressions to the WMS connection.<o:p></o:p></p>
<p class="MsoNormal"><a href="http://docs.autodesk.com/MAP/2014/ENU/Developer_Guides/index.html">FDO Developer's Guide: FDO Provider for WMS Capabilities (autodesk.com)</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone provide an example on how to use expressions? This is what I have so far, but don’t feel like I’m close.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> Autodesk</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Gis</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Map</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Platform</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> OSGeo</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FDO</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Commands</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> OSGeo</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FDO</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Connections</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> OSGeo</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FDO</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Connections</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Capabilities</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> OSGeo</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FDO</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Expression</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">using</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> OSGeo</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">MapGuide</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">namespace</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> MapServices<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">{</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">public</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">class</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#005FD2">WmsLayer</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">{</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">public</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">static</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">void</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#005FD2">ClipMapLayer</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">string</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
layerName</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">{</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> AcMapFeatureService fs
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> AcMapServiceFactory</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">GetService</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">MgServiceType</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FeatureService</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">as</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> AcMapFeatureService</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Get the current Map.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> AcMapMap currentMap
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> AcMapMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">GetCurrentMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">()</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Get the collecton of Map 3D layers</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> MgLayerCollection layers
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> currentMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">GetLayers</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">()</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">if</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">layers</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Contains</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">layerName</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">))</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Make sure the specified Map 3D layer exists</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> </span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">{</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Get the specified Map 3D layer with the Raster image.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> MgLayerBase lyr
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> layers</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">GetItem</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">layerName</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Get the resource identifier</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> MgResourceIdentifier identifier
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#E66170">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> MgResourceIdentifier</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">lyr</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">FeatureSourceId</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Get the FDO connection from the resource</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> IConnection con
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> fs</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">GetFdoConnection</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">identifier</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//I can get the Expression capabilities from the connection, but what do I do with that</span><span style="font-size:10.0pt;font-family:"Courier New";color:white;background:#3C215F">??</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> IExpressionCapabilities expCaps
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> con</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">ExpressionCapabilities</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> ExpressionType</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">[]</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
types </span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> expCaps</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">ExpressionTypes</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> FunctionDefinitionCollection funcs
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> expCaps</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Functions</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Is this how to create the expression?</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//How do I pass the inputs into the expression?</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//How is a BLOB created from the raster?</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> Expression wmsCmd
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> Expression</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">Parse</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#02D045">"</span><span style="font-size:10.0pt;font-family:"Courier New";color:#00C4C4">CLIP(raster,
minX, minY, maxX, maxY)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#02D045">"</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">//Do I somehow pass the expression into an ICommand</span><span style="font-size:10.0pt;font-family:"Courier New";color:white;background:#3C215F">???</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9999A9">
No idea what command type is correct.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> ICommand cmd
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> con</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">CreateCommand</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">CommandType</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">.</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">CommandType_Select</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D2CD86">)</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">;</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"> </span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">}</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">}</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">}</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-size:10.0pt;font-family:"Courier New";color:#B060B0">}</span><span style="font-size:10.0pt;font-family:"Courier New";color:#D1D1D1"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you for your assistance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt;font-family:"Cambria",serif">Keith Sowinski, P.E.<o:p></o:p></span></b></p>
<p class="MsoNormal">Civil 3D Implementation Engineer<o:p></o:p></p>
<p class="MsoNormal">Methods Development Unit<o:p></o:p></p>
<p class="MsoNormal">WisDOT Bureau of Project Development<o:p></o:p></p>
<p class="MsoNormal">Office: (920) 492-4132<o:p></o:p></p>
<p class="MsoNormal"><a href="wisconsindot.gov">wisconsindot.gov</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>