Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-07-25 Thread Jackie Ng
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-07-03 Thread Sowinski, Keith - DOT
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-06-17 Thread Jackie Ng
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-06-16 Thread Sowinski, Keith - DOT
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-06-16 Thread Jackie Ng
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-06-15 Thread Sowinski, Keith - DOT
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

Re: [mapguide-users] Resample or Clip expression for WMS connection

2023-06-14 Thread Jackie Ng
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

[mapguide-users] Resample or Clip expression for WMS connection

2023-06-13 Thread Sowinski, Keith - DOT
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