Skip to content

#12555 WFS export by current viewport doesn't work as expected#12557

Open
Binabh wants to merge 7 commits into
geosolutions-it:masterfrom
Binabh:fix/layer-download-viewport-issue
Open

#12555 WFS export by current viewport doesn't work as expected#12557
Binabh wants to merge 7 commits into
geosolutions-it:masterfrom
Binabh:fix/layer-download-viewport-issue

Conversation

@Binabh

@Binabh Binabh commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Even if Crop dataset to current viewport turned on for WFS layer the cropping of download features was not happening properly because the proper OGC filter was not being passed. So, the feature was not working properly.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?

#12555

What is the new behavior?
Now OCG filter of intersect is applied to if Crop dataset to current viewport is turned on. This sends valid OCG filter to crop the data. If option is not checked the behavior is same as before.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

@Binabh Binabh added this to the 2026.02.00 milestone Jun 29, 2026
@Binabh Binabh requested a review from allyoucanmap June 29, 2026 14:28
@Binabh Binabh added the bug label Jun 29, 2026
@cla-bot cla-bot Bot added the CLA Ready label Jun 29, 2026
@Binabh Binabh linked an issue Jun 29, 2026 that may be closed by this pull request
1 task
@tdipisa tdipisa requested review from dsuren1 and removed request for allyoucanmap June 29, 2026 16:10
@tdipisa tdipisa assigned dsuren1 and unassigned allyoucanmap Jun 29, 2026

@dsuren1 dsuren1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Binabh
Lood good overall but I noticed few cases where the import doesn't work as expected, could please check. Thanks!

WFS (Shapefile)

  • Without crop to viewport, upon importing the shaptefile, a warning The file {{name}} cannot be imported because it does not fit the map boundaries is shown and import fails
  • With Crop to viewport, the imported feature shown on map is incorrect. Use the map in the issue
    Image

Comment thread web/client/epics/layerdownload.js Outdated
@Binabh

Binabh commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

@dsuren1 thank you for your review. I will look into the case you reported and push a fix in a while.

@Binabh Binabh requested a review from dsuren1 July 1, 2026 09:10
@Binabh

Binabh commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@dsuren1 the issue related to import failing was related to projection mismatch rather than crop features. When data was exported using native CRS rather than wgs84 then this error was happening. I have pushed the fix.

Please review it and let me know if any further improvements are required.

@tdipisa

tdipisa commented Jul 1, 2026

Copy link
Copy Markdown
Member

@dsuren1 waiting for your new review here. thanks.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WFS export by current viewport doesn't work as expected

4 participants