Ticket #4260 (closed defect: fixed)
OGR GMT layer: wrong extent identification
|Reported by:||peifer||Owned by:||warmerdam|
The extent of my sample gmt file is: # @R-4/-3.9/37/37.1 However, ogrinfo reports:
Extent: (4.000000, 37.000000) - (-3.900000, 37.100000).
The first character is obviously swallowed when reading the gmt header. I changed line 183 in ogrgmtlayer.cpp which seems to help:
// char **papszTokens = CSLTokenizeStringComplex( osRegion.c_str() + 1, char **papszTokens = CSLTokenizeStringComplex( osRegion.c_str() + 0,
The sample GMT file is attached.