hi list<br><br>I've encountered some issue with a *.gxt file and ogr2ogr. <br>This file contains only one geometry with more than 5000 intermediate coordinates. It's goemtry type is polyline (format 2). The size of this polyline is too big for the char buffer of the geoconcept driver. So I've got a "Too many characters at line .. " error message. <br>
<br>I've tried ( naively) to increase the size of this char buffer in the geoconcept.h file. <br>*************************************************************************<br>struct _GCExportFileH {<br> char cache[kCacheSize_GCIO+1];<br>
char* path;<br> ....<br>}<br><br>with first : <br>#define kCacheSize_GCIO 65535<br>and then :<br>#define kCacheSize_GCIO 262143<br>****************************************************************************<br>
<br>It compile and at the execution time the geoemtry line is readed but it leads to strange error on
"OGRGeoconceptDataSource::LoadFile" method. <br>More precisely on ligne 184
the "Open_GCIO(_pszName,_pszExt,pszMode,_pszGCT)" method works and all
internal values seems ok after the return assigment the hGXT member are
no longer correct ( memory seems corrupt). <br><br>I've solve this issue by splitting my polyline object on multiple polylines objects. But I'll be very grateful if someone could explain to me what's wrong with increasing the char buffer size !<br>
<br>Nicolas David<br>