[gdal-dev] create attribute table

Mohammed Rashad mohammedrashadkm at gmail.com
Fri Jan 21 10:12:30 EST 2011


thanks Frank. i mailed without looking the api tutorial. sorry

On Fri, Jan 21, 2011 at 8:31 PM, Frank Warmerdam <warmerdam at pobox.com>wrote:

> On 11-01-21 09:49 AM, Mohammed Rashad wrote:
>
>> how to create attribute table for vector using ogr?
>>
>>
> Mohammed,
>
> New attribute fields are created on a vector layer in OGR using the
> CreateField() method on the layer.  This is covered in the read/write
> tutorial (search for CreateField about 2/3 of the way down):
>
>  http://www.gdal.org/ogr/ogr_apitut.html
>
> See also:
>
>
> http://www.gdal.org/ogr/classOGRLayer.html#00b1376a1eabb1298ef278f92f6d84be
>
> 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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110121/a467af89/attachment.html


More information about the gdal-dev mailing list