Skip to content

Commit 8ce527f

Browse files
committed
OcdFileImport: Warn about unsupported double line gaps
Double line objects use symbols with boundary lines (e.g., Wide road symbol). In .ocd files these objects may have gaps in any of the boundary lines. Mapper does not support those kind of gaps and thus ignores them when importing .ocd files. Issue a warning that gaps in double line objects are not supported.
1 parent 089d008 commit 8ce527f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/fileformats/ocd_file_import.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,6 +2168,11 @@ void OcdFileImport::fillPathCoords(OcdImportedPathObject *object, bool is_area,
21682168
// Virtual gaps are not supported
21692169
addWarningOnce(tr("Virtual gaps in line objects are not supported."));
21702170
}
2171+
if (ocd_points[i].x & Ocd::OcdPoint32::FlagLeft || ocd_points[i].y & Ocd::OcdPoint32::FlagRight)
2172+
{
2173+
// Double line gaps are not supported
2174+
addWarningOnce(tr("Gaps in double line objects are not supported."));
2175+
}
21712176
}
21722177

21732178
// For path objects, create closed parts where the position of the last point is equal to that of the first point

0 commit comments

Comments
 (0)