[mapguide-commits] r10086 - sandbox/adsk/trunk/Common/MdfParser

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Jul 28 19:43:26 PDT 2024


Author: christinebao
Date: 2024-07-28 19:43:25 -0700 (Sun, 28 Jul 2024)
New Revision: 10086

Modified:
   sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp
Log:
Add Vertical CS in SupplementalSpatialContextInfo into XML.

Modified: sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp
===================================================================
--- sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp	2024-07-23 12:55:36 UTC (rev 10085)
+++ sandbox/adsk/trunk/Common/MdfParser/IOSupplementalSpatialContextInfo.cpp	2024-07-29 02:43:25 UTC (rev 10086)
@@ -27,7 +27,8 @@
 ELEM_MAP_ENTRY(1, SupplementalSpatialContextInfo);
 ELEM_MAP_ENTRY(2, Name);
 ELEM_MAP_ENTRY(3, CoordinateSystem);
-ELEM_MAP_ENTRY(4, ExtendedData1);
+ELEM_MAP_ENTRY(4, VerticalCoordinateSystem);
+ELEM_MAP_ENTRY(5, ExtendedData1);
 
 
 IOSupplementalSpatialContextInfo::IOSupplementalSpatialContextInfo(Version& version) : SAX2ElementHandler(version)
@@ -86,6 +87,10 @@
     case eCoordinateSystem:
         this->m_ssContextInfo->SetCoordinateSystem(ch);
         break;
+
+    case eVerticalCoordinateSystem:
+        this->m_ssContextInfo->SetVerticalCoordinateSystem(ch);
+        break;
     }
 }
 
@@ -126,6 +131,11 @@
     fd << EncodeString(ssContextInfo->GetCoordinateSystem());
     fd << endStr(sCoordinateSystem) << std::endl;
 
+    // Property: VerticalCoordinateSystem
+    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