[Qgis-developer] ogrinfo can rename shapefiles columns

Alex Mandel tech_dev at wildintellect.com
Sat Sep 21 14:40:14 PDT 2013


On 09/21/2013 02:06 PM, Giovanni Manghi wrote:
> Hi all,
> 
> I was somehow surprised that ogrinfo can rename shapefiles columns, ex:
> 
> ogrinfo shapename.shp -sql "ALTER TABLE shapename RENAME COLUMN foo TO bar"
> 
> As this functionality is a "must" for common users, it would be
> possible to use ogrinfo from within qgis to allow do this operation?
> What would be the best place where to implement such tool?
> 
> 
> cheers
> 
> -- G --

The table manager plugin already does this. Just learned about it this
week. Works really well. I see how eventually it might be nice to wrap
it so when in edit mode you can drag and drop columns into a different
order. Perhaps an enhancement ticket.

Thanks,
Alex



More information about the Qgis-developer mailing list