[gdal-dev] Re: problems with creating polygon

2011-07-12 Thread lengwei2008
I'm so sorry, I think I figure the problem out now poLayer = poDS->CreateLayer( "polygon", NULL, wkbPoint, NULL ); shall be changed to poLayer = poDS->CreateLayer( "polygon", NULL, wkbPolygon, NULL ); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/problems-with-c

[gdal-dev] Re: problems with creating polygon

2011-07-12 Thread lengwei2008
I'm so sorry, I think I figure the problem out now poLayer = poDS->CreateLayer( "polygon", NULL, wkbPoint, NULL ); shall be changed to poLayer = poDS->CreateLayer( "polygon", NULL, wkbPolygon, NULL ); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/problems-with-

[gdal-dev] problems with creating polygon

2011-07-12 Thread lengwei2008
Hi, I am a newer to OGR and I want to create a polygon feature, however it failed. The code are pasted below code: const char *pszDriverName = "ESRI Shapefile"; OGRSFDriver *poDriver; OGRRegisterAll(); poDriver = OGRSFDriverRegistrar::GetRegistrar()->GetDr