Ticket #2125 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Unexpected quoting in GMT vector output.

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 1.5.1
Component: OGR_SF Version: 1.5.0 betas/RCs
Severity: normal Keywords: gmt
Cc:

Description (Last modified by warmerdam)

I've just installed GDAL v1.5 & am working through some GMT files generated by ogr2ogr (from VMAP0 shapefiles).

I've tweaked the docs to describe the output, which didn't take much. The only bug I've noticed is that ogr2ogr writes the contents of dbf double fields as a quoted text string, with leading whitespace, whereas I expected an unquoted numeric value with no whitespace, as for integer fields.

eg:

# @VGMT1.0 @GPOLYGON
# @R25/176.78868103/-47.1254081726/50
# @NFTCDESC|F_CODEDESC|ID|F_CODE|TILE_ID|FAC_ID|VEGDESC|FTC|VEG
# @Tstring|string|double|string|integer|double|string|integer|integer
# FEATURE_DATA
> >
# @DUnknown|Cropland|"          1"|EA010|1|"          8"|"Dry Crops"|0|1
# @P
138.554763793945312 49.982349395751953
138.544937133789062 49.982349395751953
138.53509521484375 49.982349395751953
138.525253295898438 49.982349395751953
138.525253295898438 49.9921875
...

Change History

01/01/08 12:51:08 changed by warmerdam

  • status changed from new to assigned.
  • description changed.

Fixed in trunk (r13470) and 1.5 branch (r13471).

01/01/08 13:25:49 changed by warmerdam

  • status changed from assigned to closed.
  • resolution set to fixed.

I have prepared a *very* preliminary gmt regression test script (r13472).