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

Remove spaces in SLD exports for multipart expressions #6985

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

geographika
Copy link
Member

A case that was missed in #6983 - multipart expressions such as the following:

EXPRESSION ( ( [FID] > 1 ) AND ( [FID] <= 10 ) )

Were still retaining spaces:

<ogc:And><ogc:PropertyIsGreaterThan><ogc:PropertyName>FID</ogc:PropertyName><ogc:Literal>1 </ogc:Literal>
</ogc:PropertyIsGreaterThan><ogc:PropertyIsLessThanOrEqualTo><ogc:PropertyName>FID</ogc:PropertyName>
<ogc:Literal>10 </ogc:Literal></ogc:PropertyIsLessThanOrEqualTo></ogc:And>

This change removes the spaces. A test also added to ensure that strings with spaces e.g. "my value " retain the trailing space.

@rouault rouault added this to the 8.2.0 Release milestone Dec 15, 2023
@rouault rouault merged commit ce73274 into MapServer:main Dec 15, 2023
8 checks passed
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.

None yet

2 participants