Skip to content

make endianess configurable for the elevation layer#6579

Merged
offtherailz merged 1 commit intogeosolutions-it:masterfrom
landryb:feat/elevation-endianness-master
Feb 26, 2021
Merged

make endianess configurable for the elevation layer#6579
offtherailz merged 1 commit intogeosolutions-it:masterfrom
landryb:feat/elevation-endianness-master

Conversation

@landryb
Copy link
Copy Markdown
Contributor

@landryb landryb commented Feb 24, 2021

cf georchestra/mapstore2-georchestra#331 for the rationale

Description

the idea is to be able to configure the endianess of the BIL data sent by the WMS server - this way the client code knows how to decode it.

I've successfully tested this with a DEM layer coming from mapserver, which seems to encode BIL as little-endian, with no way to configure it. Should be easily testable with a geoserver layer configured to serve BIL as little endian too. I've also tested it with a geoserver layer in BE mode, still works.

tested both with MousePosition and the cesium 3d view, but more testing is welcome !

Please check if the PR fulfills these requirements

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

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

georchestra/mapstore2-georchestra#331

What is the new behavior?
Ability to use a DEM layer provided as little-endian BIL.

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

No breaking change, as if not defined littleendian defaults to false, eg the current behaviour.

Other useful information

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0004%) to 81.123% when pulling dbe9f20 on landryb:feat/elevation-endianness-master into cc07182 on geosolutions-it:master.

Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

Great, thank you 👍
2021.01.01 is going to be released today, so, if tests passes, we are going to back-port port this in 2021.01.02

@offtherailz offtherailz added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Feb 26, 2021
@offtherailz offtherailz merged commit b576757 into geosolutions-it:master Feb 26, 2021
@offtherailz offtherailz self-assigned this Feb 26, 2021
offtherailz added a commit that referenced this pull request Mar 4, 2021
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Mar 5, 2021
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.

4 participants