// *************************************************************************** bool StatePlaneProjection::operator==( const Projection& p ) const throw() { const StatePlaneProjection* pRHS = NULL; try { // Check to see if the projection passed in is UTM if ( SPCS == p.getProjectionSystem() ) { pRHS = dynamic_cast<const StatePlaneProjection*>(&p); if ( NULL != pRHS ) { if ( d_zone == pRHS->getZone() ) { return Projection::operator==(p); } } } return false; } catch (...) { return false; } }
// *************************************************************************** bool AlbersConicProjection::operator==( const Projection& p ) const throw() { const AlbersConicProjection* pRHS = NULL; try { // Check to see if the projection passed in is Albers Conic if ( ALBERS == p.getProjectionSystem() ) { pRHS = dynamic_cast<const AlbersConicProjection*>(&p); if ( NULL != pRHS ) { if ( d_projParams[2] == pRHS->getFirstStandardParallel() && d_projParams[3] == pRHS->getSecondStandardParallel() ) { return ConicProjection::operator==( *pRHS ); } } } return false; } catch (...) { return false; } }