<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=utf-8">
<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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.gmailsignatureprefix
        {mso-style-name:gmail_signature_prefix;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        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">Ugh…Now I’m getting a “not implemented” exception on that method.  Starting to wonder if this is even possible from Map 3D.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> mapguide-users <mapguide-users-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Jackie Ng<br>
<b>Sent:</b> Friday, June 16, 2023 11:38 AM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapguide-users] Resample or Clip expression for WMS connection<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:white;background:#FF6600">CAUTION: This email originated from outside the organization.
</span></strong><br>
<strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:white;background:#FF6600">Do not click links or open attachments unless you recognize the sender and know the content is safe.</span></strong><o:p></o:p></p>
<p><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">That's strange. Then again perhaps Map3D's implementation of this API behaves differently from its MapGuide counterpart.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Either way, what you want is the name of the raster property definition in the feature class. From your current MgLayerBase (lyr) you can get its class definition (lyr.GetClassDefinition()).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">In that class definition, loop through its property collection until you find one whose type is raster. The name of that property is what you want to pass into CLIP()<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">- Jackie<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">You wrote:<o:p></o:p></p>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<pre><span style="color:black">Thank you Jackie! This is very helpful.<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black">Now I’m getting and Exception when executing the ISelect.  I think it is because lyr.GetFeatureGeometryName() returns an empty string.<o:p></o:p></span></pre>
</div>
</blockquote>
<p class="MsoNormal"><span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><i><span style="font-size:7.5pt">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.</span></i><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>