GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix grdview Qt backend behavior with -Qt in 3-D views by Esteban82 · Pull Request #8857 · GenericMappingTools/gmt

Conversation

@Esteban82

@Esteban82 Esteban82 commented Jan 6, 2026

Copy link
Copy Markdown
Member

Description

When running the script below, the following error is triggered:

grdview [ERROR]: Categorical data (as implied by CPT) cannot be interpolated and require -T or just -Qm.
This PR adds an exception that allows using -Qt with categorical CPTs when grdview is run with a 3-D projection (-JZ).

Full script:

gmt begin ex05_3d png
 	gmt makecpt -Ccategorical -T0/4/1 -F+cOceanic,Land,Lakes,Islands,Ponds
	gmt grdview @earth_relief -G@earth_mask -JM15c -JZ5c -B -Bza -BSEwnZ -N-500+gwhite -R-58/-54/-36/-32/-500/500 -p120/30 -C -Qt100i
gmt end

See details and the expected output figure in #8855 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Esteban82 added 2 commits January 6, 2026 10:05
@Esteban82
Allow exception for -Qt
1790b85
@Esteban82
Remove whitespace
ac0880d
@Esteban82
Esteban82 requested a review from joa-quim January 6, 2026 13:20
@Esteban82 Esteban82 self-assigned this Jan 6, 2026
joa-quim
joa-quim approved these changes Jan 6, 2026
View reviewed changes

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

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.

Our CI tests are in a miserable state. Each day they fail for a different reason.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Esteban82

Esteban82 commented Jan 6, 2026

Copy link
Copy Markdown
Member Author

Our CI tests are in a miserable state. Each day they fail for a different reason.

Ok, I will merge it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Esteban82
Esteban82 merged commit 17610ee into master Jan 6, 2026
@Esteban82
Esteban82 deleted the Add-grdview_Qt-option branch January 6, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@joa-quim joa-quim joa-quim approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Esteban82 Esteban82

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Esteban82 @joa-quim
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.