[gdal-dev] VS2010-VS2013 s57

2013-12-04 Thread Dmitriy Baryshnikov
Hi, I have such error: the GDAL compiled with VS2010-VS2013 in s57 driver loose all additional fields values. But the same code compiled with gcc or previous VS works fine. I found the root of problems here (ogr\ogrsf_frmts\s57\s57reader.cpp:932): const char *pszAcronym = poRegistrar->GetAttr

Re: [gdal-dev] VS2010-VS2013 s57

2013-12-04 Thread Frank Warmerdam
Dmitriy, It is not clear to me why this should be necessary. osAcronym is a long lived std::string (well CPLString derived from std::string) living in the registrars attribute list. I assume the following method is used to convert the CPLString to "const char *" which should amount to the same t

Re: [gdal-dev] VS2010-VS2013 s57

2013-12-04 Thread Dmitriy Baryshnikov
Hi Frank, You quite right, what It is not clear to me why this should be necessary. osAcronym is a long lived std::string (well CPLString derived from std::string) living in the registrars attribute list. I assume the following method is used to convert the CPLString to "const char

Re: [gdal-dev] VS2010-VS2013 s57

2013-12-04 Thread Even Rouault
Le mercredi 04 décembre 2013 22:15:58, Dmitriy Baryshnikov a écrit : > Hi Frank, > > You quite right, what > > It is not clear to me why this should be necessary. osAcronym is a > long lived std::string (well CPLString derived from std::string) > living in the registrars attribute li