Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create converter for ArcGis FeatureServer type classBreaks #58058

Merged
merged 24 commits into from
Jul 17, 2024

Conversation

merydian
Copy link
Contributor

Description

The file qgsarcgisrestutils.cpp is currently not supporting "classBreaks" type ArcGis-FeatureServers. This pull request adds functionality for QGIS to automatically convert classBreaks FeatureServer into a QgsGraduatedSymbolRenderer. Symbology will be loaded automatically now.

image

Revert "Small cleanup"

This reverts commit e298ec3.

Small cleanup

Rename testRenderer to testCategorizedRenderer

Add unit test for the gradated renderer

Check authoring info first for classification mode

Set correct classifier for esriClassifyEqualInterval

Set classification method

Add classBreakInfos stops

Move last label down by one to be set right

Set transparency of default symbol

Only set last range when type is colorInfo

Display all ranges

Use for loop instead of next() for visualVariables

Set breakpoints wit symbols

Set default symbol of renderer

Set attribute name of renderer

Return QgsGraduatedSymbolRenderer instead of  nullptr
@github-actions github-actions bot added this to the 3.40.0 milestone Jul 10, 2024
Copy link

github-actions bot commented Jul 10, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 78b40c2)

src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/core/providers/arcgis/qgsarcgisrestutils.cpp Outdated Show resolved Hide resolved
src/providers/arcgisrest/qgsafsprovider.cpp Outdated Show resolved Hide resolved
tests/src/python/test_provider_afs.py Show resolved Hide resolved
@nyalldawson
Copy link
Collaborator

Nice work @merydian !

In order to fix the failing indentation tests you'll need to run the "scripts/astyle_all.sh" script over your branch. That'll auto-apply the required indentation and flake formatting.

(It's easiest to set this up as a pre-commit hook using the scripts/prepare_commit.sh script, so that all the formatting and such is automatically applied for you!)

merydian and others added 12 commits July 11, 2024 13:15
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
@nyalldawson nyalldawson added the Squash! Remember to squash this PR, instead of merging or rebasing label Jul 17, 2024
@nyalldawson nyalldawson enabled auto-merge (squash) July 17, 2024 23:45
@nyalldawson nyalldawson merged commit b05a9ee into qgis:master Jul 17, 2024
30 checks passed
@nyalldawson
Copy link
Collaborator

Nice work @merydian !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Squash! Remember to squash this PR, instead of merging or rebasing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants