Feature request #1446

implement add/del field for Shapefiles

Added by Maciej Sieczka - almost 12 years ago. Updated over 11 years ago.

Status:Closed
Priority:Low
Assignee:Jürgen Fischer
Category:-
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:11506

Description

Now that creation of new fields in an existing DBF table via OGR is possible r1 please implement this functionality in table editor fro Shapefiles.

r1http://trac.osgeo.org/gdal/ticket/2672

patch_for_1446.diff Magnifier - patch that enables adding of attributes in shapefiles via OGR (2.88 KB) Jürgen Fischer, 2008-12-07 05:07 PM

History

#1 Updated by Jürgen Fischer almost 12 years ago

OGR still doesn't support deletion of fields.

#2 Updated by Martin Dobias almost 12 years ago

Replying to [comment:1 jef]:

OGR still doesn't support deletion of fields.

Indeed it doesn't, however there's a patch pending:

http://trac.osgeo.org/gdal/ticket/2671

Martin

#3 Updated by Marco Hugentobler almost 12 years ago

One issue I had with this patch: after commiting the added fields, they where not visible in the attribute table and with the info tools. I had to remove and reopen the layer to have the fields in the attribute table.
Would it be possible to reopen the OGR datasource inside the ogr provider after adding fields?

Thanks,
Marco

#4 Updated by Marco Hugentobler almost 12 years ago

I'm suggesting to push this to 1.0.1 to have more time for testing

#5 Updated by Paolo Cavallini almost 12 years ago

Would this be the right time to apply it to trunk?

#6 Updated by Jürgen Fischer almost 12 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

Replying to [comment:6 pcav]:

Would this be the right time to apply it to trunk?

applied in 98d9d513 (SVN r9983)

#7 Updated by Anonymous over 11 years ago

Milestone Version 1.0.1 deleted

Also available in: Atom PDF