gmt icon indicating copy to clipboard operation
gmt copied to clipboard

Always write OGR/GMT header in files

Open anbj opened this issue 6 years ago • 4 comments

Is there a reason why many (all?) gmt tools producing spatial output does not pr. default output the OGR/GMT header (and aspatial data)? E.g. grdcontour, gmtconnect, gmtspatial, block[mean,median,mode] etc.

In my opinion this would be a good idea. This makes workflows involving ogr2ogr ~flawless and consistent.

As a user of QGIS, it also appears that it now requires the OGR/GMT to be present (at least # @VGMT1.0) or else if will fail to recognize the file.

Very related to issue #213.

anbj avatar Jan 25 '19 09:01 anbj

Fully agree, there are technical reasons why it is not that way; we do want to try to reach that goal.

PaulWessel avatar Jan 25 '19 10:01 PaulWessel

Great!

anbj avatar Jan 25 '19 14:01 anbj

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

stale[bot] avatar Feb 24 '19 14:02 stale[bot]

Just adding the header:

# @VGMT1.0 @GLINESTRING

makes it readable by ogr2ogr. Great benefit!

anbj avatar May 03 '22 12:05 anbj