Skip to content

Incorrect world file name when generating GeoTIFF file #7844

Closed

Description

@seisman

Issue first reported at GenericMappingTools/pygmt#2698 (comment).

gmt psbasemap -R0/10/0/10 -JM10c -Baf > map.ps
gmt psconvert -A -P -W+g map.ps

The commands above produce two files: map.tiff and map.pgw.

The world file map.pgw makes no sense here:

  1. The output file is .tiff, so the expected world file extension should be .tfw, not .pgw
  2. Since the GeoTIFF file already has the georeference information embedded, a world file seems useless. Perhaps we should delete the world file in this case?

Activity

  1. added
    bug
    on Sep 25, 2023
  2. seisman commented on Oct 2, 2023

    @seisman
    MemberAuthor

    Ping @PaulWessel and @joa-quim for comments on this issue so that we can take the same action in the PyGMT side.

  3. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    Leaving this to @joa-quim since he wrote that module.

  4. seisman commented on Oct 3, 2023

    @seisman
    MemberAuthor
  5. joa-quim commented on Oct 3, 2023

    @joa-quim
    Member

    Yes, that .pgw is a mistake. But can't you just ignore it. Apparently it bothered nobody for ~15 years.

  6. seisman commented on Oct 4, 2023

    @seisman
    MemberAuthor

    Better to fix it if it's a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions