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

No worldfile for EPS if -F is used #7976

Closed
seisman opened this issue Oct 26, 2023 · 5 comments
Closed

No worldfile for EPS if -F is used #7976

seisman opened this issue Oct 26, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@seisman
Copy link
Member

seisman commented Oct 26, 2023

# Produce an example PS file
$ gmt psbasemap -R0/10/0/10 -JM10c -Baf > map.ps

# Call psconvert with -F option
$ gmt psconvert map.ps -Te -W -Fnewname      

# No .esw file is generated
$ ls
gmt.history  map.ps  newname.eps

# Without -Te, .esw is generated
$ gmt psconvert map.ps -Te -W          
$ ls                                                        
gmt.history  map.eps  map.esw  map.ps  newname.eps

All other formats like bmp, pdf work as expected.

gmt --version: 6.5.0_f30bd45_2023.10.20

@joa-quim
Copy link
Member

Well, if any, the issue would be why there is a epw at all? Those are completely useless because nothing can use them.

@seisman
Copy link
Member Author

seisman commented Oct 26, 2023

So, a world file only makes sense for raster formats, including bmp, png, jpeg, ppm and tif, right?

@joa-quim
Copy link
Member

Yes. World files are read by GDAL that cannot read PS.

@seisman
Copy link
Member Author

seisman commented Oct 26, 2023

Then we can give an error if a world file is requested for vector formats, or just do nothing and close this issue.

@joa-quim
Copy link
Member

Just close it. It doesn't worth spending time on it.

@seisman seisman closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants