[mapguide-commits] r10074 - sandbox/adsk/trunk/Common/MdfModel

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Jun 7 01:44:27 PDT 2024


Author: christinebao
Date: 2024-06-07 01:44:26 -0700 (Fri, 07 Jun 2024)
New Revision: 10074

Modified:
   sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.cpp
   sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.h
Log:
Add Vertical CS support in SupplementalSpatialContextInfo.

Modified: sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.cpp
===================================================================
--- sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.cpp	2024-05-29 14:26:59 UTC (rev 10073)
+++ sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.cpp	2024-06-07 08:44:26 UTC (rev 10074)
@@ -33,9 +33,10 @@
 //          strName - the name
 //          strCoordinateSystem - the coordinate system
 //-------------------------------------------------------------------------
-SupplementalSpatialContextInfo::SupplementalSpatialContextInfo(const MdfString& strName, const MdfString& strCoordinateSystem)
+SupplementalSpatialContextInfo::SupplementalSpatialContextInfo(const MdfString& strName, const MdfString& strCoordinateSystem, const MdfString& strVerticalCoordinateSystem)
 : m_strName(strName)
 , m_strCoordinateSystem(strCoordinateSystem)
+, m_strVerticalCoordinateSystem(strVerticalCoordinateSystem)
 {
 }
 
@@ -89,3 +90,22 @@
 {
     this->m_strCoordinateSystem = strCoordinateSystem;
 }
+//-------------------------------------------------------------------------
+// PURPOSE: Accessor method to the Vertical CoordinateSystem property in this SupplementalSpatialContextInfo.
+// RETURNS: The value of the vertical coorindate system used for the spatial context
+//-------------------------------------------------------------------------
+const MdfString& SupplementalSpatialContextInfo::GetVerticalCoordinateSystem() const
+{
+    return this->m_strVerticalCoordinateSystem;
+}
+
+//-------------------------------------------------------------------------
+// PURPOSE: Accessor method to the Vertical CoordinateSystem property in this SupplementalSpatialContextInfo.
+// PARAMETERS:
+//      Input:
+//         strVerticalCoordinateSystem - The value associate with the name.
+//-------------------------------------------------------------------------
+void SupplementalSpatialContextInfo::SetVerticalCoordinateSystem(const MdfString& strVerticalCoordinateSystem)
+{
+    this->m_strVerticalCoordinateSystem = strVerticalCoordinateSystem;
+}
\ No newline at end of file

Modified: sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.h
===================================================================
--- sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.h	2024-05-29 14:26:59 UTC (rev 10073)
+++ sandbox/adsk/trunk/Common/MdfModel/SupplementalSpatialContextInfo.h	2024-06-07 08:44:26 UTC (rev 10074)
@@ -35,7 +35,7 @@
     public:
         //Constructors,
         //default copy constructor, destructor and assignment operator.
-        SupplementalSpatialContextInfo(const MdfString& strName , const MdfString& strCoordinateSystem);
+        SupplementalSpatialContextInfo(const MdfString& strName , const MdfString& strCoordinateSystem, const MdfString& strVerticalCoordinateSystem = L"");
         SupplementalSpatialContextInfo();
 
         // Operations
@@ -47,6 +47,10 @@
         const MdfString& GetCoordinateSystem() const;
         void SetCoordinateSystem(const MdfString& strCoordinateSystem);
 
+        // Property : Vertical CoordinateSystem
+        const MdfString& GetVerticalCoordinateSystem() const;
+        void SetVerticalCoordinateSystem(const MdfString& strVerticalCoordinateSystem);
+
     private:
         // The Name data member
         MdfString m_strName;
@@ -53,6 +57,9 @@
 
         // The CoordinateSystem associated with the name
         MdfString m_strCoordinateSystem;
+
+        // The Vertical CoordinateSystem associated with the name
+        MdfString m_strVerticalCoordinateSystem;
     };
 
     typedef MdfOwnerCollection<SupplementalSpatialContextInfo> SupplementalSpatialContextInfoCollection;



More information about the mapguide-commits mailing list