Re: [gdal-dev] Problem with adding Attributes to a point shapefile

2009-10-29 Thread Even Rouault
Selon "Henneke, Amanda M" : Amanda, The fundamental reason is a call ordering problem. You currently do : FeatureDefn feadefPt = lyrPt.GetLayerDefn(); Feature feaPt = new Feature(feadefPt); lyrPt.CreateField(flddefLandUse, 0); which is wrong as you change the feature definition after having ins

[gdal-dev] Problem with adding Attributes to a point shapefile

2009-10-29 Thread Henneke, Amanda M
Hello- I'm trying to create a point shapefile of all the first points in the polygons (from a poly shapefile) as shown below. I also want to assign some attributes to the different point features. I am having some issues doing this. I get an error on the "feaPt.SetField("LAND_USE", sLandUse)