[mapguide-commits] r10112 - sandbox/adsk/trunk/Common/MdfParser
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Oct 29 02:22:37 PDT 2024
Author: christinebao
Date: 2024-10-29 02:22:36 -0700 (Tue, 29 Oct 2024)
New Revision: 10112
Modified:
sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp
Log:
Add empty check for VerticalCoordinateSystem.
Modified: sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp
===================================================================
--- sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp 2024-10-14 05:28:05 UTC (rev 10111)
+++ sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp 2024-10-29 09:22:36 UTC (rev 10112)
@@ -132,9 +132,12 @@
fd << endStr(sCoordinateSystem) << std::endl;
// Property: VerticalCoordinateSystem
- fd << tab.tab() << startStr(sVerticalCoordinateSystem);
- fd << EncodeString(ssContextInfo->GetVerticalCoordinateSystem());
- fd << endStr(sVerticalCoordinateSystem) << std::endl;
+ if (!ssContextInfo->GetVerticalCoordinateSystem().empty())
+ {
+ fd << tab.tab() << startStr(sVerticalCoordinateSystem);
+ fd << EncodeString(ssContextInfo->GetVerticalCoordinateSystem());
+ fd << endStr(sVerticalCoordinateSystem) << std::endl;
+ }
// Write any unknown XML / extended data
IOUnknown::Write(fd, ssContextInfo->GetUnknownXml(), version, tab);
More information about the mapguide-commits
mailing list