<div dir="ltr">Actually you're not too far off.<div><br></div><div>You use the expression capabilities as a programmatic way to answer the question of "What functions I can use for expressions against this particular FDO provider?" by checking if your function of interest (CLIP) is in the collection of supported functions.</div><div><br></div><div>If you know in your code that the feature source in question is always pointing to a WMS connection, then you know (from the provider documentation) that CLIP() is supported and you can bypass this capability check. Otherwise, you would use the various capabilities from the root IConnection to ask questions of what this connection can or cannot do.</div><div><br></div><div>As for what to do with the command. your CreateCommand call is close, but you are actually supposed to cast that ICommand down to a derived command interface. The ICommand interface itself is pretty barebones and not something you'll ever use directly. The CommandType enum you're passing in is the hint as to what command interface you're actually supposed to cast to.</div><div><br></div><div>CommandType.CommandType_Select -> cast the result to ISelect</div><div>CommandType.CommandType_DescribeSchema -> cast the result to IDescribeSchema<br></div><div>CommandType.CommandType_SelectAggregates -> cast the result to ISelectAggregates<br></div><div><br></div><div>etc, etc.</div><div><br></div><div>Here's a snippet adapted from the "FDO Cookbook - Select Data" example from that devguide link that gives a rough idea of what you're supposed to do once you've created a select command:<br><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">// The MgLayerBase has the name of the feature class</font></div><div><font face="monospace">Identifier className = new Identifier(lyr.GetFeatureClassName());</font></div><div><font face="monospace">// Make the select command</font></div><div><font face="monospace">ISelect select = conn.CreateCommand(CommandType.CommandType_Select) as ISelect;</font></div><div><font face="monospace">// Set the name of the feature class this select command is querying from</font></div><div><font face="monospace">select.FeatureClassName = className;</font></div><div><font face="monospace">// The MgLayerBase also knows the name of the designated geometry/raster property for the layer, which you need to know for the first argument of CLIP()</font></div><div><font face="monospace">// note the name "clipped_raster", which is our alias for this computed property</font></div><div><font face="monospace">ComputedIdentifier computedId = Expression.Parse($"CLIP({lyr.GetFeatureGeometryName()}, {minX}, {minY}, {maxX}, {maxY}) AS clipped_raster") as ComputedIdentifier;</font></div><div><font face="monospace">// Add this computed property to the select command</font></div><div><font face="monospace">select.PropertyNames.Add(computedId);</font></div><div><font face="monospace">// Execute the command</font></div><div><font face="monospace">IFeatureReader reader = select.Execute();</font></div><div><font face="monospace">// You need to advance the reader in order to get data out of it</font></div><div><font face="monospace">try {</font></div><div><font face="monospace">    while (reader.ReadNext()) {</font></div><div><font face="monospace">        // Access the raster by the computed alias name</font></div><div><font face="monospace">        var raster = reader.GetRaster("clipped_raster");</font></div><div><font face="monospace">        // TODO: Do something with the raster data</font></div><div><font face="monospace">    }</font></div><div><font face="monospace">}</font></div><div><font face="monospace">finally {</font></div><div><font face="monospace">    // Always close the feature readers afterwards when done. Putting this in the finally section of </font></div><div><font face="monospace">    // a try/finally block ensures this always happens (regardless of exceptions thrown in the try block)</font></div><div><font face="monospace">    reader.Close();</font></div><div><font face="monospace">}</font></div></blockquote><div><br></div><div>You'll need to provide your own minX, minY, maxX, maxY values for the CLIP() function call.</div><div><br></div><div>Hope that helps.</div><div><br></div><div>- Jackie<br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div></div></div><div><br></div><div>You wrote:</div><div><br></div><div><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.<u></u><u></u></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.<u></u><u></u></p><p class="MsoNormal"><a href="http://docs.autodesk.com/MAP/2014/ENU/Developer_Guides/index.html" target="_blank">FDO Developer's Guide: FDO Provider for WMS Capabilities (autodesk.com)</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> Autodesk</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Gis</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Map</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Platform</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> OSGeo</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FDO</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Commands</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> OSGeo</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FDO</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Connections</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> OSGeo</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FDO</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Connections</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Capabilities</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> OSGeo</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FDO</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Expression</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">using</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> OSGeo</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">MapGuide</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">namespace</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> MapServices<u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">{</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">    </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">public</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">class</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(0,95,210)">WmsLayer</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">    </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">{</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">        </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">public</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">static</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">void</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(0,95,210)">ClipMapLayer</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">string</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> layerName</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">        </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">{</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            AcMapFeatureService fs </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> AcMapServiceFactory</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">GetService</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">MgServiceType</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FeatureService</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">as</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> AcMapFeatureService</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Get the current Map.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            AcMapMap currentMap </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> AcMapMap</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">GetCurrentMap</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">()</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Get the collecton of Map 3D layers</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            MgLayerCollection layers </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> currentMap</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">GetLayers</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">()</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">if</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">layers</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Contains</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">layerName</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">))</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Make sure the specified Map 3D layer exists</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">{</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Get the specified Map 3D layer with the Raster image.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                MgLayerBase lyr </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> layers</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">GetItem</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">layerName</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> <u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Get the resource identifier</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                MgResourceIdentifier identifier </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> </span><b><span style="font-size:10pt;font-family:"Courier New";color:rgb(230,97,112)">new</span></b><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> MgResourceIdentifier</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">lyr</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">FeatureSourceId</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Get the FDO connection from the resource</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                IConnection con </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> fs</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">GetFdoConnection</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">identifier</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> <u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//I can get the Expression capabilities from the connection, but what do I do with that</span><span style="font-size:10pt;font-family:"Courier New";color:white;background:rgb(60,33,95)">??</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                IExpressionCapabilities expCaps </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> con</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">ExpressionCapabilities</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                ExpressionType</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">[]</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> types </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> expCaps</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">ExpressionTypes</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                FunctionDefinitionCollection funcs </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> expCaps</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Functions</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Is this how to create the expression?</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//How do I pass the inputs into the expression?</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//How is a BLOB created from the raster?</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                Expression wmsCmd </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> Expression</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">Parse</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(2,208,69)">"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(0,196,196)">CLIP(raster, minX, minY, maxX, maxY)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(2,208,69)">"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u> <u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">//Do I somehow pass the expression into an ICommand</span><span style="font-size:10pt;font-family:"Courier New";color:white;background:rgb(60,33,95)">???</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(153,153,169)">  No idea what command type is correct.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">                ICommand cmd </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">=</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"> con</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">CreateCommand</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">CommandType</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">.</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">CommandType_Select</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(210,205,134)">)</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">;</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">            </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">}</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">        </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">}</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)">    </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">}</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal" style="background:black"><span style="font-size:10pt;font-family:"Courier New";color:rgb(176,96,176)">}</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(209,209,209)"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you for your assistance!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><span style="font-size:14pt;font-family:Cambria,serif">Keith Sowinski, P.E.<u></u><u></u></span></b></p><p class="MsoNormal">Civil 3D Implementation Engineer<u></u><u></u></p><p class="MsoNormal">Methods Development Unit<u></u><u></u></p><p class="MsoNormal">WisDOT Bureau of Project Development<u></u><u></u></p><p class="MsoNormal">Office: (920) 492-4132<u></u><u></u></p><p class="MsoNormal"><a href="http://wisconsindot.gov/" target="_blank">wisconsindot.gov</a></p><p class="MsoNormal"><br></p></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="1"><i>Please Note: I no longer create new posts or post replies to any OSGeo mailing list through nabble. As a result, you most likely won't see this message appear on nabble's view of any OSGeo mailing list and may only see this message through mailing list archives or depending on your mailing list subscription settings, through daily message digests or automated notifications from the mailing lists.</i></font></div></div></div></div>