Re: [gdal-dev] Update existing shape file

2008-08-03 Thread Mateusz Loskot
Frank Warmerdam wrote: Mateusz Loskot wrote: Frank Warmerdam wrote: wow wrote: Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = pFeature-

Re: [gdal-dev] Update existing shape file

2008-08-02 Thread Frank Warmerdam
Mateusz Loskot wrote: Frank Warmerdam wrote: wow wrote: Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = pFeature->GetFieldIndex("Name");

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Mateusz Loskot
Frank Warmerdam wrote: > wow wrote: >> Hi, >> I wanna set new field value to an existing shape file which has been >> opened with update access, but it doesn't work, my code like this: >> >> OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = >> pFeature->GetFieldIndex("Name"); >> pFe

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Frank Warmerdam
wow wrote: Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = pFeature->GetFieldIndex("Name"); pFeature->UnsetField(nIdx); pFeature->SetFi

Re: [gdal-dev] Update existing shape file

2008-08-01 Thread Mateusz Loskot
wow wrote: > Hi, > I wanna set new field value to an existing shape file which has been > opened with update access, but it doesn't work, my code like this: > > OGRFeature* pFeature = pLayer->GetFeature(2); > int nIdx = pFeature->GetFieldIndex("Name"); > pFeature->UnsetField(nIdx); > pFe

[gdal-dev] Update existing shape file

2008-08-01 Thread wow
: "gdal-dev"; Subject: [gdal-dev] Update existing shape file Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx

[gdal-dev] Update existing shape file

2008-07-31 Thread wow
Hi, I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this: OGRFeature* pFeature = pLayer->GetFeature(2); int nIdx = pFeature->GetFieldIndex("Name"); pFeature->UnsetField(nIdx); pFeature->SetField( "Name"