Skip to content

Instantly share code, notes, and snippets.

@bartvde
Created August 27, 2025 13:54
Show Gist options
  • Save bartvde/c147900d3e7f1b925a27c3fae0190cd5 to your computer and use it in GitHub Desktop.
Save bartvde/c147900d3e7f1b925a27c3fae0190cd5 to your computer and use it in GitHub Desktop.
CS-W NGR PropertyIsLike error
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmi="http://www.isotc211.org/2005/gmi" xmlns:ows="http://www.opengis.net/ows" service="CSW" version="2.0.2" resultType="results" startPosition="1" maxRecords="4"><csw:Query typeNames="csw:Record"><csw:ElementSetName>full</csw:ElementSetName><csw:Constraint version="1.1.0"><ogc:Filter><ogc:And>
<ogc:PropertyIsLike wildCard='%' singleChar='_' escapeChar='\'><ogc:PropertyName>csw:AnyText</ogc:PropertyName> <ogc:Literal>%water%</ogc:Literal> </ogc:PropertyIsLike>
<ogc:Or>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>dc:type</ogc:PropertyName>
<ogc:Literal>dataset</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>dc:type</ogc:PropertyName>
<ogc:Literal>http://purl.org/dc/dcmitype/Dataset</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:And></ogc:Filter></csw:Constraint></csw:Query></csw:GetRecords>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.RuntimeException: java.util.UnknownFormatConversionException: Conversion = 'w'</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment