Ticket #3625 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Changed 2 years ago by msmitherdc

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

Changed 2 years ago by msmitherdc

  • owner changed from FrankW to dmorissette

Changed 2 years ago by dmorissette

  • cc dmorissette, warmerdam added
  • owner changed from dmorissette to aboudreault

Changed 2 years ago by warmerdam

  • owner changed from aboudreault to warmerdam

Changed 2 years ago by warmerdam

  • cc aboudreault added
  • status changed from new to closed
  • resolution set to fixed

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.