metno / mmd

GNU General Public License v3.0
2 stars 11 forks source link

mmd-to-geonorge: don't add getcapabilities if its already there #250

Closed TAlonglong closed 3 months ago

TAlonglong commented 3 months ago

Added extra check to test if OGC WMS resource contains getcapabilities string on satellite data

Closes #249

ferrighi commented 3 months ago

Good. It was not flexible enough indeed Would it be possible to leave out the version? so we are not locked into it? Something like this:

<xsl:when test="(contains($myurl,'?SERVICE=WMS') and contains($myurl, 'REQUEST=GetCapabilities')) or (contains($myurl,'?service=WMS') and contains($myurl, 'request=GetCapabilities'))">
TAlonglong commented 3 months ago

Sure. I had no idea I could use such syntax.

The only thing I see now is the ? being tied to service|SERVICE

Can we assume the question mark or do we need to check for it?

ferrighi commented 3 months ago

You are right! I guess the order of the arguments do not matter. So we can just remove the question mark.

TAlonglong commented 3 months ago

OK, will fix