[gdal-dev] Chinese Character for field name in ESRI Shapefile Problem
Jhon Chin
giantchen2010 at gmail.com
Mon Oct 12 00:43:58 PDT 2015
Hi, everybody:
I'm now trying to write polygonized result into an esri shapefile, and I
tried
to add some field to the attribute table in the shapefile. But it corrupted
when i was trying to create an *ogrfielddefn* instance.The code goes
like this:
OGRFieldDefn oField("归一化植被指数",OFTInteger);
if(poLayer->CreateField(&oField) != OGRERR_NONE)
{
printf("create 归一化植被指数 failed!");
exit(1);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151012/56794056/attachment.html>
More information about the gdal-dev
mailing list