[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-users
Subject:    Re: [mapguide-users] Resample or Clip expression for WMS connection
From:       Jackie Ng <jumpinjackie () gmail ! com>
Date:       2023-07-25 12:22:14
Message-ID: CAAC2fNStbJtuRoCqdY2GaPyoF3DM-0UAOrJ0-3xcz2A-TNo8Eg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 code in more detail, I think the actual
function you want is not CLIP(), but RESAMPLE(). I can't see any working
reference usage of CLIP() in any of our FDO client application code. In
MapGuide, only RESAMPLE() is used.

RESAMPLE takes 2 extra parameters, (width and height), those are the actual
values that get sent in the WMS GetMap request that the provider assembles
together.

So in light of this, is there even a valid usage example for CLIP()?

I honestly have no idea 🤷‍♂️🤷‍♂️🤷‍♂️

- Jackie

You wrote:

I was pulled off this for a while to get another project done. Looking
at this again and I was able to get the feature geometry name.
However, now I've run into a new issue. I'm getting this exception:
OSGeo.FDO.Common.Exception: 'InvalidFormat:
Parameter 'height' can not be empty.


This doesn't make any sense to me because there is no "height"
argument when I check the function arguments.

-- 
*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.*

[Attachment #5 (text/html)]

<div dir="ltr"><div>That exception message is coming from the WMS server your layer \
is connected to. It&#39;s because the CLIP() expression does not produce a valid WMS \
GetMap request because the inferred width and height is 0 (that&#39;s where the \
&quot;can not be empty&quot; part is coming from)</div><div><br></div><div>Having \
looked at the WMS provider code in more detail, I think the actual function you want \
is not CLIP(), but RESAMPLE(). I can&#39;t see any working reference usage of CLIP() \
in any of our FDO client application code. In MapGuide, only RESAMPLE() is \
used.</div><div><br></div><div>RESAMPLE takes 2 extra parameters, (width and height), \
those are the actual values that get sent in the WMS GetMap request that the provider \
assembles together.<br></div><div><br></div><div>So in light of this, is there even a \
valid usage example for CLIP()?  </div><div><br></div><div>I honestly have no idea \
🤷‍♂️🤷‍♂️🤷‍♂️  </div><div><br></div><div>- \
Jackie</div><div><br></div><div>You wrote:</div><div><pre style="color:rgb(0,0,0)">I \
was pulled off this for a while to get another project done. Looking at this again \
and I was able to get the feature geometry name.  However, now I've run into a new \
                issue. I'm getting this exception:
OSGeo.FDO.Common.Exception: &#39;InvalidFormat:
Parameter &#39;height&#39; can not be empty.


This doesn't make any sense to me because there is no "height" argument when I check \
the function arguments.</pre></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&#39;t see this message appear on nabble&#39;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>



_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic