id summary reporter owner description type status priority milestone component version severity resolution keywords cc 6357 SXF Fixes warmerdam warmerdam "Transcribed from gdal-dev-owner: some time ago jratike80 recommended send mail to gdal-dev http://trac.osgeo.org/gdal/ticket/5647 i am writing: From: Alexey ILchenko To: gdal-dev@lists.osgeo.org Cc: Date: Mon, 8 Feb 2016 01:14:20 +0300 Subject: SXF Driver Hi all. I think i found some bugs on SXF driver. Check, please. 1)error on index in file ogrsxfdatasource.cpp line 620 and 687 ""switch (anData[5])"" replace ""switch (anData[4])"" 2)error in conversion multy part line. in this time they converted on point or one line. examle: ""----- ----- -----"" -> ""."" or ""----"" its not save all geometry 3)if RSC file has no description layer description of objects, all layers after this layer will be removed. why, because y save all object in additional layer: {{{ ogrsxfdatasource.cpp: 1269 papoLayers = (OGRLayer**)CPLRealloc(papoLayers, sizeof(OGRLayer*)* (nLayers + 1)); 1270 papoLayers[nLayers] = new OGRSXFLayer(fpSXF, &hIOMutex, 255, CPLString(""Not_Classified""), oSXFPassport.version, oSXFPassport.stMapDescription); 1271 nLayers++; ogrsxflayer.cpp: ""127int OGRSXFLayer::AddRecord(long nFID, unsigned nClassCode, vsi_l_offset nOffset, bool bHasSemantic, size_t nSemanticsSize) 128{ 129 if (mnClassificators.empty() || mnClassificators.find(nClassCode) != mnClassificators.end())"" }}} if the empty layer not last will be bad. 4) i think y can add epsg:4326 if (iEllips == 9 && iProjSys == 33) and anData[4]=65 and adfParams[i]=0 " defect closed normal OGR_SF unspecified normal fixed SXF bishop alexey