Skip to content

Commit

Permalink
OcdFileImport: Warn about unsupported double line gaps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dl3sdo committed Jul 30, 2024
1 parent 089d008 commit 8ce527f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fileformats/ocd_file_import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2168,6 +2168,11 @@ void OcdFileImport::fillPathCoords(OcdImportedPathObject *object, bool is_area,
// Virtual gaps are not supported
addWarningOnce(tr("Virtual gaps in line objects are not supported."));
}
if (ocd_points[i].x & Ocd::OcdPoint32::FlagLeft || ocd_points[i].y & Ocd::OcdPoint32::FlagRight)
{
// Double line gaps are not supported
addWarningOnce(tr("Gaps in double line objects are not supported."));
}
}

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

0 comments on commit 8ce527f

Please sign in to comment.