2

There are two possible solutions to this: Ask the related WFS for a description of the featureType using https://idena.navarra.es/ogc/wfs?request=DescribeFeatureType&typeName=CATAST_Pol_Municipio&version=1.1.0 which returns: <xsd:complexContent> <xsd:...


2

As a fuller answer if you want to use this code in GeoTools v21+ you need to change the imports to be: import org.geotools.xsd.Configuration; import org.geotools.xsd.Encoder; and the dependancies to: <dependencies> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-main</artifactId> &...


2

As @IanTurton mentioned in comments, my problem was that I was using version 21.0. Going back to v20 solved my issue.


2

It is on https://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html Like function (implemented on org.geotools.filter.LikeFilterImpl Geotools class) is used as following example: field LIKE '%pattern%' Now for the entire row (all columns) concatenation you could use the concatenate function: concatenate(field1,field2) Finally I recommend ...


1

If you are trying to filter two distinct layers then you need to separate the filters with ; but if you are trying to combine two (or more) filters on a single layer then you need to use and or or as joining commands. So in your case I would apply: strSubstring(FecRegistro,0,4)=2018 or strSwhubstring(codigo,0,3)='201' which will return all filters which ...


1

if you are using PyQgis 2.x registry = QgsMapLayerRegistry.instance() urlWithParams = "crs=EPSG:21037&IgnoreGetMapUrl=1&featureCount=10&format=image/png&styles=&layers=parcels&url=http://localhost:8060/geoserver/cadastralWsp/wms%3FCQL_FILTER=BBOX(geom, 579465,125671,664692,167717)" rlayer = QgsRasterLayer (urlWithParams , "...


1

(E)CQL provides no mechanism for specifying the projection of a geometry and always assumes that it is in the same projection as the data being queried. So you will need to do the reprojection in the client.


Only top voted, non community-wiki answers of a minimum length are eligible