That exception message is coming from the WMS server your layer is
connected to. It's because the CLIP() expression does not produce a valid
WMS GetMap request because the inferred width and height is 0 (that's where
the "can not be empty" part is coming from)
Having looked at the WMS provider
or Clip expression for WMS connection
CAUTION: This email originated from outside the organization.
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
Plan B then is to get at this class definition through the FDO IConnnection,
Make
Plan B then is to get at this class definition through the FDO IConnnection,
Make a IDescribeSchema command (using the correct CommandType enum as
previously stated), execute it loop through its results until you find the
matching feature class which lyr.GetFeatureClassName() should tell you the
Ugh…Now I’m getting a “not implemented” exception on that method. Starting to
wonder if this is even possible from Map 3D.
From: mapguide-users On Behalf Of
Jackie Ng
Sent: Friday, June 16, 2023 11:38 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Resample or Clip
That's strange. Then again perhaps Map3D's implementation of this API
behaves differently from its MapGuide counterpart.
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
AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Resample or Clip expression for WMS connection
CAUTION: This email originated from outside the organization.
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
Actually you're
Actually you're not too far off.
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.
If
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.
I see the appropriate expression capabilities listed here, but I cannot find
any examples how to apply these