Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harvesting / WFS Features / Do not skip attributes even if geom is in…
…valid. Example harvesting OGC service https://sextant.ifremer.fr/services/wms/environnement_marin and indexing feature type surval_parametre_polygone. 491 features are reported to be indexed in the UI and the following WARNING appear during harvesting: ``` 2024-01-15T15:40:10,400 WARN [geonetwork.harvest.wfs.features] - Feature ms:surval_parametre_polygone#521/id:surval_parametre_polygone.60007755: Cannot apply precision reducer on invalid geometry. Check the geometry validity. The feature will be indexed but with no geometry. ``` The feature with invalid geometry are indexed but without other attributes (because geometry is first attribute to be parsed and the break move to next feature). Use continue to parse other feature attributes (which will have an empty geometry but will be reported in the UI). After the change 529 features are properly indexed and can be exported as CSV. To test export as CSV the feature table, feature 60008195 is missing.
- Loading branch information