Opened 15 years ago

#2985 new defect

[PATCH] Trim leading and trailing spaces after OGR_F_GetFieldAsString

Reported by: rouault Owned by: dmorissette
Priority: normal Milestone:
Component: OGR Support Version: unspecified
Severity: normal Keywords:
Cc: romero619@…

Description

OGR_F_GetFieldAsString() may return leading spaces on a numeric field which has a non-zero width. This behaviour is wanted in OGR, but not in the results returned by mapserver (WFS request, etc..)

Note: this patch could be made more specific to only deal with numeric fields, in situations where string fields should be preserved without change

Attachments (1)

ticket_2985.patch (950 bytes ) - added by rouault 15 years ago.

Download all attachments as: .zip

Change History (1)

by rouault, 15 years ago

Attachment: ticket_2985.patch added
Note: See TracTickets for help on using tickets.