[gdal-dev] CPLReadLine2L and control characters

Martin Landa landa.martin at gmail.com
Sat Apr 21 00:46:58 PDT 2018


Hi,

2018-04-20 23:06 GMT+02:00 Even Rouault <even.rouault at spatialys.com>:
> You mean 0x00 right ?

right.

> I would not expect those to be valid in ISO-8859-2. How are they supposed to
> be interpreted ? Are you sure the dataset is valid ?

Right, it's not valid in the sense of ISO-8859-2. Anyway I would
attempt to skip such characters and be able read also such line.

> I guess you could transform CPLReadLine2L() into CPLReadLine3L() with an
> extra int* pnBufLength output argument that would return the final value of
> nBufLength, and then you would lop on the string to remove those annoying
> nul characters.

Right, I was just wondering whether it's reasonable to create a new
method just for my case. Thanks for feedback, Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the gdal-dev mailing list