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

Add support for comments in ERS files #4835

Merged
merged 4 commits into from
Nov 16, 2021

Conversation

mplough-kobold
Copy link
Contributor

What does this PR do?

This PR adds support for comments in ERS file headers. A comment starts with a # character and continues to the end of the line. ER Mapper documentation describes comments in this fashion and we've recently encountered files in the wild that contain comments. Since comments may appear at the start of the file, ERS file identification logic is modified to accommodate presence of such comments.

The srtm.ers test case is modified to exercise comment logic and all ERS test cases are still passing.

frmts/ers/ersdataset.cpp Outdated Show resolved Hide resolved
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
frmts/ers/ersdataset.cpp Outdated Show resolved Hide resolved
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.

2 participants