On Wed, Nov 3, 2010 at 9:23 AM, Matthieu Rigal <ri...@rapideye.de> wrote: > Hi guys, > > I was checking and I did not found a proper way for now to add a unique or not > null constraints to columns of a layer created/edited by OGR. > > If I am wrong, please correct me. > Else, as I saw that a big refactoring of the PgSQL/PostGIS is planned/done for > the 1.8 version, this may be added, as it is quite widely used properties...
Matthieu, Why not add such constraints via ExecuteSQL() after creating the layer? I'm not keen on making constraints a first-class OGR data model concept for a variety of reasons. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev