[OSGeo-Discuss] methods for programatically adding fields to shapefiles

Frank Warmerdam warmerdam at pobox.com
Fri Oct 31 13:13:45 PDT 2008


Tim Sutton wrote:
> Hi
> 
> Are there any suggestions on how to do this from c++? Something we've
> long wanted to add support for in QGIS.....
> 
> Frank Warmerdam was reticent about adding it to ogr since it would
> have many crosscutting implications...

Tim,

I would note that I would not mind implementing OGRLayer::CreateField()
for shapefiles that already have features (though I'm not promising
I have time).  I think I was wanting to avoid more general schema
alteration (removing fields, reordering, changing names, etc).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Discuss mailing list