[mapguide-commits] r5369 - trunk/MgDev/Common/CoordinateSystem
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Nov 4 00:47:18 EDT 2010
Author: NormOlsen
Date: 2010-11-03 21:47:18 -0700 (Wed, 03 Nov 2010)
New Revision: 5369
Modified:
trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
Log:
Corrects ticket 1516. Changed the path direction convention to that used currently by CS-MAP (i.e. cs_DTCDIR_FWD).
Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp 2010-11-01 19:17:51 UTC (rev 5368)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp 2010-11-04 04:47:18 UTC (rev 5369)
@@ -211,7 +211,7 @@
MentorSetString(pathElement->GetTransformName(),
pathElementDef.geodeticXformName /* target buffer */, sizeof(pathElementDef.geodeticXformName));
- pathElementDef.direction = pathElement->GetIsInversed() ? cs_PATHDIR_INV : cs_PATHDIR_FWD;
+ pathElementDef.direction = pathElement->GetIsInversed() ? cs_DTCDIR_INV : cs_DTCDIR_FWD;
}
//wipe out the current path definition settings...
Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp 2010-11-01 19:17:51 UTC (rev 5368)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp 2010-11-04 04:47:18 UTC (rev 5369)
@@ -94,13 +94,19 @@
if (0 == transformNameLength || transformNameLength >= sizeof(this->pathElement->geodeticXformName))
return false;
- return (cs_PATHDIR_FWD == this->pathElement->direction) || (cs_PATHDIR_INV == this->pathElement->direction);
+ return (cs_DTCDIR_FWD == this->pathElement->direction) || (cs_DTCDIR_INV == this->pathElement->direction);
}
bool CCoordinateSystemGeodeticPathElement::IsProtected()
{
return this->isProtected;
}
-
+bool CCoordinateSystemGeodeticPathElement::GetIsInversed ()
+{
+ return (pathElement->direction == cs_DTCDIR_INV);
+}
+void CCoordinateSystemGeodeticPathElement::SetIsInversed (bool inversed)
+{
+ pathElement->direction = (inversed) ? cs_DTCDIR_INV : cs_DTCDIR_FWD;
+}
DEFINE_GET_SET_STRING(CCoordinateSystemGeodeticPathElement,TransformName,this->pathElement->geodeticXformName)
-DEFINE_GET_SET_NUMERIC(CCoordinateSystemGeodeticPathElement,IsInversed,bool,this->pathElement->direction)
More information about the mapguide-commits
mailing list