[gdal-dev] Chinese Character for field name in ESRI Shapefile Problem

Jhon Chin giantchen2010 at gmail.com
Mon Oct 12 01:31:39 PDT 2015


Hi, everybody:

add one more question :

the field name can be read 10 ascii characters, the last characters would
be

trimmed, is there anyone encounter this problem?

any help would be appreciated!

               Jhon Chen


On Mon, Oct 12, 2015 at 3:43 PM, Jhon Chin <giantchen2010 at gmail.com> wrote:

> 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/646aa4d0/attachment.html>


More information about the gdal-dev mailing list