[gdal-dev] the Algorithm of Contour Generation

2009-10-28 Thread wow
-- To the world you're little, but to a person, maybe you're the world. -- Original -- From: "wow"<27949...@qq.com>; Date: Wed, Oct 28, 2009 04:51 PM To: "gdal-dev"; Subject:

[gdal-dev] the Algorithm of Contour Generation

2009-10-28 Thread wow
Hi , My user asked me to give him some description of the algorithm of gdal contour generator as detailed as possible. I have poor theory about this problem, anyone could tell me some workflow of this module to save time when i browse the source code? Thanks.

[gdal-dev] generate contours with different interval

2009-09-20 Thread wow
Hi, I want to generate contours with different intervals in sevaral elevation ranges. For example, if the elevation range is (0,100), the contour interval is 10; if the range is [100, 500), the interval is 50; and if the range is [500, 2000), the interval is 200. Can all those contour genera

[gdal-dev] Does OGRLayer::CreateField() suport UNICODE in ver1.4.1 ?

2008-08-18 Thread wow
Hi, When i call OGRLayer::CreateField() to create a field with a Chinese name[UNICODE], i got errors. The driver is ESRI shape. Does OGRLayer::CreateField() suport UNICODE in ver1.4.1 ? -- To the world you're little, but to a person you're the world.

Re: [gdal-dev] OGRFeatureStyle update from version1.4.1 to 1.5.2;

2008-08-18 Thread wow
uot;BRUSH(fc:#C0C0C0,id:\"swR0\")"); res = oStyleTable.SaveStyleTable(strTlbPath); } break; default: break; } if(poStyleMgr) { delete poStyleMgr; poStyleMgr = NULL; } if(!res) { return false; } return true; } //END--

Re: [gdal-dev] OGRFeatureStyle update from version1.4.1 to 1.5.2;

2008-08-18 Thread wow
;re little, but to a person you're the world. Chen Xuexia -- Original -- From: "Frank Warmerdam"<[EMAIL PROTECTED]>; Date: Mon, Aug 18, 2008 11:12 PM To: "wow"<[EMAIL PRO

[gdal-dev] OGRFeatureStyle update from version1.4.1 to 1.5.2;

2008-08-16 Thread wow
Hi, When i tried to update my whole program from ver1.4.1 to 1.5.2, all worked well except the OGRFeatureStyle module. The function OGRStyleMgr::AddStyle() couldn't write the provided style name and style string right with ver1.5.2, but could run smoothly with version 1.4.1. My code :

Re: [gdal-dev] deleting feature exceptions

2008-08-16 Thread wow
-- From: "Mateusz Loskot"<[EMAIL PROTECTED]>; Date: Fri, Aug 15, 2008 07:16 PM To: "wow"<[EMAIL PROTECTED]>; Cc: "gdal-dev"; Subject: Re: [gdal-dev] deleting feature exceptions Mateusz Loskot wrote: >> Attachment of this mail is the exa

Re: [gdal-dev] deleting feature exceptions

2008-08-15 Thread wow
the world. Chen Xuexia -- Original -- From: "Frank Warmerdam"<[EMAIL PROTECTED]>; Date: Fri, Aug 15, 2008 10:06 AM To: "wow"<[EMAIL PROTECTED]>; Cc: "gdal-dev";

[gdal-dev] deleting feature exceptions

2008-08-14 Thread wow
Hi, i try to delete features from a set of shape file, sometimes get error. I use this version of ogrshapelayer.cpp : http://trac.osgeo.org/gdal/changeset/10969 . Delete feature in two ways would get different result: (1) for(iFeat=0;iFeatDeleteFeature(0); if(cplE==CE_None)

[gdal-dev] deleting feature exceptions

2008-08-14 Thread wow
Hi, i try to delete features from a set of shape file, sometimes get error. I use this version of ogrshapelayer.cpp : http://trac.osgeo.org/gdal/changeset/10969 . Delete feature in two ways would get different result: (1) for(iFeat=0;iFeatDeleteFeature(0); if(cplE==CE_None)

[gdal-dev] Update ShapeLayer

2008-08-10 Thread wow
Hi, To update shape files. i got two questions: 1. How could i delete a field from a shapelayer? 2. How to set a value to a specified field of all records? Could i use SQL sentences like "set field_name='value'" on the datasource of shapelayer? Thank you. -- To the world

[gdal-dev] Update existing shape file

2008-08-01 Thread wow
-- To the world you're little, but to a person you're the world. Chen Xuexia -- Original -- From: "wow"<[EMAIL PROTECTED]>; Date: Fri, Aug 1, 2008 11:21 AM To

[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"