Skip to content

feat(gis): WFS export endpoint for case locations (ports #483)#604

Merged
rubenvdlinde merged 1 commit into
developmentfrom
chore/port-gis-wfs-export
May 25, 2026
Merged

feat(gis): WFS export endpoint for case locations (ports #483)#604
rubenvdlinde merged 1 commit into
developmentfrom
chore/port-gis-wfs-export

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

Ports the unique outbound WFS-export capability from #483 onto the current development baseline.

#483's branch (feature/462/gis-integration) had diverged from an unrelated history root (~117 commits behind dev) and could not be merged directly without reverting merged dev work. Only the genuinely-unique, self-contained additions are carried over here:

  • lib/Service/WfsExportService.php — GeoJSON FeatureCollection of case locations + WFS GetCapabilities descriptor (uses SettingsService.getObjectService() + findObjects(), already on dev).
  • lib/Controller/WfsExportController.phpGET /api/gis/wfs (GetFeature) and /api/gis/wfs/capabilities; @NoAdminRequired with an authenticated-session guard; typeName/outputFormat/maxFeatures/bbox/status/caseType params.
  • appinfo/routes.php — two additive wfsExport routes.
  • Unit tests for both classes.

This complements dev's existing proxy-based GIS work (GisProxy / WmsWfs); the WFS export (procest cases AS a layer) was absent on dev.

Test plan

  • composer check:strict
  • WfsExportControllerTest + WfsExportServiceTest pass
  • GET /api/gis/wfs returns a GeoJSON FeatureCollection; /capabilities returns the descriptor

Closes #483.

Ports the unique outbound WFS-export capability from PR #483
(feature/462/gis-integration) onto the current development baseline.
That branch had diverged from an unrelated history root and could not
be merged directly without reverting large amounts of merged dev work,
so only the genuinely-unique, self-contained additions are carried over:

- lib/Service/WfsExportService.php — builds a GeoJSON FeatureCollection
  of case locations from OpenRegister (uses SettingsService.getObjectService
  + findObjects, already on dev) plus a WFS GetCapabilities descriptor.
- lib/Controller/WfsExportController.php — GET /api/gis/wfs (GetFeature)
  and /api/gis/wfs/capabilities, NoAdminRequired with an authenticated-
  session guard, typeName/outputFormat/maxFeatures/bbox/status/caseType params.
- appinfo/routes.php — two additive wfsExport routes alongside the existing
  gis_proxy / wms_wfs proxy routes.
- Unit tests for both classes.

This complements dev's existing proxy-based GIS work (GisProxy/WmsWfs);
the WFS export (procest cases AS a layer) was absent on dev.
@rubenvdlinde
rubenvdlinde merged commit 17fdaef into development May 25, 2026
8 of 17 checks passed
@rubenvdlinde
rubenvdlinde deleted the chore/port-gis-wfs-export branch May 25, 2026 15:37
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ 343d44a

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer
npm ✅ 426/426
PHPUnit ⏭️
Newman ⏭️
Playwright ⏭️

Quality workflow — 2026-05-25 15:39 UTC

Download the full PDF report from the workflow artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant