Bug #1002

gmt convert -a fails to build OGR file via multisegment settings

Added by Paul almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:2016-11-09
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.x-svn Platform:


The segment headers are not properly parsed so the OGR structure has NULL strings and this command crashes with SEGV:

gmt convert example.txt -fg -aI=ID:string,L=Name:string,T=Author:string+GLINE

cat example.txt

# Some header
> -IFZ_KM_0001-0000 -L"My Fracture Zone" -T"KM, USYD" 
120.564526416   -49.2343720754
120.756213442   -48.8434605852
120.9283782     -48.3862920409


#1 Updated by Paul almost 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in r17338. Problem was that even though this case was creating an OGR output record the machinery also tried to read OGR data from the input record.

#2 Updated by Joaquim almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF