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
SLD: Add support to arithmetic expressions #5831
Merged
Merged
Changes from 36 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
17d1510
Setup msautotest/sld for testing SLD improvements
jbo-ads 3933a45
Add shapefiles as converted from geojson files
jbo-ads 70d0ed8
Setup SLD tests wrt. new features
jbo-ads b641abc
<SvgParameter name="stroke-width">: add <Literal> and <PropertyName> …
jbo-ads 765710f
Add tests on opacity
jbo-ads 7606ace
Add tests on opacity
jbo-ads 6764ecf
<Opacity>: add <Literal> and <PropertyName> support
jbo-ads f959922
Update expected result wrt. latest evolutions
jbo-ads 0c7c4a1
<SvgParameter name="stroke-opacity>: add <Literal> and <PropertyName>…
jbo-ads 68b5d5e
Add expected PNG
jbo-ads 5aa9abc
<SvgParameter name="stroke-width">: add <Literal> and <PropertyName> …
jbo-ads 937f3cf
Add <Literal> and <PropertyName> support to Polygon "stroke" and "fill"
jbo-ads 0a6e02b
Add expected PNG
jbo-ads 9c52ef5
Add <Literal> and <PropertyName> support to various tags
jbo-ads 7a8ac9f
Add <Literal> and <PropertyName> support to <Size>, <Rotation> and <D…
jbo-ads 7c9699e
Prepare SLD evolutions on <TextSymbolizer>
jbo-ads 36f510c
<TextSymbolizer>: <Literal>, <PropertyName> on "font-size"
jbo-ads c5181a3
cosmetics
jbo-ads e527686
Prep <LabelPlacement>
jbo-ads 86f35cd
<TextSymbolizer>: <Literal>, <PropertyName> on <Rotation>, "fill"
jbo-ads 8986ff0
Prep <Halo>
jbo-ads ef3d081
<TextSymbolizer>: <Literal>, <PropertyName> on <Halo> "fill"
jbo-ads 616ec03
cosmetics
jbo-ads 6a5a772
Prepare support to ogc:expression in SLD
jbo-ads 4a50bec
Add ogc:expression support on style's <PropertyName>
jbo-ads 889f903
Prepare support to ogc:expression in SLD's <TextSymbolizer>
jbo-ads 227dc39
Add ogc:expression support on label's <PropertyName>
jbo-ads 29488ed
Add <Add><Sub><Mul><Div> in <ogc:expression>, tested with geometry_li…
jbo-ads 494dc85
Test <ogc:expression> with geometry_point.map
jbo-ads b5c9bbe
Test <ogc:expression> with geometry_polygon.map
jbo-ads 355933a
Test <ogc:expression> with geometry_text.map
jbo-ads 1f553fa
Remove debug traces
jbo-ads f2c8ee3
Rename SLD tests
jbo-ads 2e45255
Minor renaming
jbo-ads 91e8667
Report opacity value on color alpha when reading SLD
jbo-ads 90b72f4
Dummy commit to trigger Appveyor
jbo-ads d05dddf
Add missing msFreeExpression() on allocated exprBindings[]
jbo-ads fc07dd9
Add expressions on LABEL SIZE
jbo-ads File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1675,9 +1675,11 @@ void initLabel(labelObj *label) | |
label->styles = NULL; | ||
|
||
label->numbindings = 0; | ||
label->nexprbindings = 0; | ||
for(i=0; i<MS_LABEL_BINDING_LENGTH; i++) { | ||
label->bindings[i].item = NULL; | ||
label->bindings[i].index = -1; | ||
msInitExpression(&(label->exprBindings[i])); | ||
} | ||
|
||
msInitExpression(&(label->expression)); | ||
|
@@ -2599,9 +2601,11 @@ int initStyle(styleObj *style) | |
style->linejoinmaxsize = MS_CJC_DEFAULT_JOIN_MAXSIZE; | ||
|
||
style->numbindings = 0; | ||
style->nexprbindings = 0; | ||
for(i=0; i<MS_STYLE_BINDING_LENGTH; i++) { | ||
style->bindings[i].item = NULL; | ||
style->bindings[i].index = -1; | ||
msInitExpression(&(style->exprBindings[i])); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where is this freed ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks again. I added msFreeExpression() in freeStyle() function. |
||
} | ||
|
||
return MS_SUCCESS; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this freed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out. I added msFreeExpression() in freeLabel() function.