Opened 13 years ago

Closed 13 years ago

#3625 closed enhancement (fixed)

ogr shapefile wfs output does not launder names

Reported by: msmitherdc Owned by: warmerdam
Priority: normal Milestone:
Component: OGR Support Version: svn-trunk (development)
Severity: normal Keywords: ogr, wfs
Cc: dmorissette, warmerdam, aboudreault

Description

Normally, ogr2ogr exporting to shapefile will launder/normalize long field names. The ogr wfs export will not. Perhaps an option in the format driver parameters to allow launder?

Change History (5)

comment:1 by msmitherdc, 13 years ago

Error message: msOGRWriteFromQuery(): OGR error. Failed to create field 'DESCRIPTION' in output feature schema: Failed to add field named 'DESCRIPTION'

comment:2 by msmitherdc, 13 years ago

Owner: changed from FrankW to dmorissette

comment:3 by dmorissette, 13 years ago

Cc: dmorissette warmerdam added
Owner: changed from dmorissette to aboudreault

comment:4 by warmerdam, 13 years ago

Owner: changed from aboudreault to warmerdam

comment:5 by warmerdam, 13 years ago

Cc: aboudreault added
Resolution: fixed
Status: newclosed

I think it is sufficient to pass bApproxOK = TRUE to OGR_L_CreateField() to get the same behavior as ogr2ogr. This lets the driver launder the field name and generally just makes things forgiving of limitations of the destination format. Change applied (r10859) but not actually tested.

Note: See TracTickets for help on using tickets.