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

Unclear SHAPE_RESTORE_SHX config option #129

Closed
thbeu opened this issue May 29, 2024 · 2 comments · Fixed by #130
Closed

Unclear SHAPE_RESTORE_SHX config option #129

thbeu opened this issue May 29, 2024 · 2 comments · Fixed by #130
Assignees

Comments

@thbeu
Copy link
Contributor

thbeu commented May 29, 2024

If the SHX file is missing the following error message is logged.

shapelib/shpopen.c

Lines 330 to 335 in f948af2

snprintf(pszMessage, nMessageLen,
"Unable to open %s.shx or %s.SHX. "
"Set SHAPE_RESTORE_SHX config option to YES to restore or "
"create it.",
pszFullname, pszFullname);
psHooks->Error(pszMessage);

I wonder what the SHAPE_RESTORE_SHX config option is.

@rouault
Copy link
Member

rouault commented May 29, 2024

I wonder what the SHAPE_RESTORE_SHX config option is.

that's a GDAL concept

@thbeu
Copy link
Contributor Author

thbeu commented May 29, 2024

Shapelib should not know about GDAL concepts.

Background: We use shapelib standalone.

Can the message be fixed by compile time flags (like there already is CPL_MSB or CPL_UNUSED)? Thanks!

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 a pull request may close this issue.

2 participants