亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ellipse.c

?? 給予QT的qps開源最新源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
      error_code |= ELLIPSE_NOT_USERDEF_ERROR;
  }
  if (!error_code)
  {
    long i = 0;
    for (i = index-1; i < Number_of_Ellipsoids-1; i++)
      Ellipsoid_Table[i] = Ellipsoid_Table[i+1];

    if (Number_of_Ellipsoids != MAX_ELLIPSOIDS)
      Ellipsoid_Table[i] = Ellipsoid_Table[i+1];
    else
    {
      strcpy(Ellipsoid_Table[i].Name, "");
      strcpy(Ellipsoid_Table[i].Code, "");
      Ellipsoid_Table[i].A = 0;
      Ellipsoid_Table[i].B = 0;
      Ellipsoid_Table[i].Recp_F = 0;  
      Ellipsoid_Table[i].User_Defined = ' ';
    }
    Number_of_Ellipsoids--;
    /*output updated ellipsoid table*/
    PathName = getenv( "ELLIPSOID_DATA" );
    if (PathName != NULL)
    {
      strcpy( FileName, PathName );
      strcat( FileName, "/" );
    }
    else
    {
      strcpy( FileName, "./" );
    }
    strcat( FileName, "ellips.dat" );
    if ((fp = fopen(FileName, "w")) == NULL)
    { /* fatal error */
      return ELLIPSE_FILE_OPEN_ERROR;
    }
    /* write file */
    index = 0;
    while (index < Number_of_Ellipsoids)
    {
      if (Ellipsoid_Table[index].User_Defined)
        fprintf(fp, "*%-29s %-2s %11.3f %12.4f %13.9f \n",
                Ellipsoid_Table[index].Name,
                Ellipsoid_Table[index].Code,
                Ellipsoid_Table[index].A,
                Ellipsoid_Table[index].B,
                Ellipsoid_Table[index].Recp_F);
      else
        fprintf(fp, "%-29s  %-2s %11.3f %12.4f %13.9f \n",
                Ellipsoid_Table[index].Name,
                Ellipsoid_Table[index].Code,
                Ellipsoid_Table[index].A,
                Ellipsoid_Table[index].B,
                Ellipsoid_Table[index].Recp_F);
      index++;
    }
    fclose(fp);
    /* Store WGS84 */
    Ellipsoid_Index(WGS84_Ellipsoid_Code, &WGS84_Index);
    /* Store WGS72 */
    Ellipsoid_Index(WGS72_Ellipsoid_Code, &WGS72_Index);
  }
  return (error_code);
}/* End Delete_Ellipsoid */


long Ellipsoid_Count ( long *Count )
{ /* Begin Ellipsoid_Count */
/*
 *   Count    : The number of ellipsoids in the ellipsoid table. (output)
 *
 * The function Ellipsoid_Count returns the number of ellipsoids in the
 * ellipsoid table.  If the ellipsoid table has been initialized without error,
 * ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_NOT_INITIALIZED_ERROR
 * is returned.
 */
  long error_code = ELLIPSE_NO_ERROR;
  if (!Ellipsoid_Initialized)
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  *Count = Number_of_Ellipsoids;
  return (error_code);
} /* End Ellipsoid_Count */


long Ellipsoid_Index ( const char *Code,
                       long *Index )
{ /* Begin Ellipsoid_Index */
/*
 *    Code     : 2-letter ellipsoid code.                      (input)
 *    Index    : Index of the ellipsoid in the ellipsoid table with the 
 *                  specified code                             (output)
 *
 *  The function Ellipsoid_Index returns the index of the ellipsoid in 
 *  the ellipsoid table with the specified code.  If ellipsoid code is found, 
 *  ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_INVALID_CODE_ERROR is 
 *  returned.
 */
  char temp_code[3];
  long error_code = ELLIPSE_NO_ERROR;
  long i = 0;                   /* index for ellipsoid table */
  long j = 0;
  *Index = 0;
  if (Ellipsoid_Initialized)
  {
    while (j < ELLIPSOID_CODE_LENGTH)
    {
      temp_code[j] = toupper(Code[j]);
      j++;
    }
    temp_code[ELLIPSOID_CODE_LENGTH - 1] = 0;
    while ((i < Number_of_Ellipsoids)
           && strcmp(temp_code, Ellipsoid_Table[i].Code))
    {
      i++;
    }
    if (strcmp(temp_code, Ellipsoid_Table[i].Code))
      error_code |= ELLIPSE_INVALID_CODE_ERROR;
    else
      *Index = i+1;
  }
  else
  {
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  }
  return (error_code);
} /* End Ellipsoid_Index */


long Ellipsoid_Name ( const long Index,
                      char *Name ) 
{ /* Begin Ellipsoid_Name */
/*
 *    Index   : Index of a given ellipsoid.in the ellipsoid table with the
 *                 specified index                             (input)
 *    Name    : Name of the ellipsoid referencd by index       (output)
 *
 *  The Function Ellipsoid_Name returns the name of the ellipsoid in 
 *  the ellipsoid table with the specified index.  If index is valid, 
 *  ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_INVALID_INDEX_ERROR is
 *  returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  strcpy(Name,"");
  if (Ellipsoid_Initialized)
  {
    if ((Index < 1) || (Index > Number_of_Ellipsoids))
      error_code |= ELLIPSE_INVALID_INDEX_ERROR;
    else
      strcpy(Name, Ellipsoid_Table[Index-1].Name);
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End Ellipsoid_Name */


long Ellipsoid_Code ( const long Index,
                      char *Code ) 
{ /* Begin Ellipsoid_Code */
/*
 *    Index    : Index of a given ellipsoid in the ellipsoid table (input)
 *    Code     : 2-letter ellipsoid code.                          (output)
 *
 *  The Function Ellipsoid_Code returns the 2-letter code for the 
 *  ellipsoid in the ellipsoid table with the specified index.  If index is 
 *  valid, ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_INVALID_INDEX_ERROR 
 *  is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  strcpy(Code,"");
  if (Ellipsoid_Initialized)
  {
    if ((Index < 1) || (Index > Number_of_Ellipsoids))
      error_code |= ELLIPSE_INVALID_INDEX_ERROR;
    else
      strcpy(Code, Ellipsoid_Table[Index-1].Code);
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End Ellipsoid_Code */


long Ellipsoid_Parameters ( const long Index,
                            double *a,
                            double *f )
{ /* Begin Ellipsoid_Parameters */
/*
 *    Index    : Index of a given ellipsoid in the ellipsoid table (input)
 *    a        : Semi-major axis, in meters, of ellipsoid          (output)
 *    f        : Flattening of ellipsoid.                          (output)
 *
 *  The function Ellipsoid_Parameters returns the semi-major axis and flattening
 *  for the ellipsoid with the specified index.  If index is valid,
 *  ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_INVALID_INDEX_ERROR is 
 *  returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  *a = 0;
  *f = 0;
  if (Ellipsoid_Initialized)
  {
    if ((Index < 1) || (Index > Number_of_Ellipsoids))
    {
      error_code |= ELLIPSE_INVALID_INDEX_ERROR;
    }
    else
    {
      *a = Ellipsoid_Table[Index-1].A;
      *f = 1 / Ellipsoid_Table[Index-1].Recp_F;
    }
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End Ellipsoid_Parameters */


long Ellipsoid_Eccentricity2 ( const long Index,
                               double *e2 )
{ /* Begin Ellipsoid_Eccentricity2 */
/*
 *    Index    : Index of a given ellipsoid in the ellipsoid table (input)
 *    e2       : Square of eccentricity of ellipsoid               (output)
 *
 *  The function Ellipsoid_Eccentricity2 returns the square of the 
 *  eccentricity for the ellipsoid with the specified index.  If index is 
 *  valid, ELLIPSE_NO_ERROR is returned, otherwise ELLIPSE_INVALID_INDEX_ERROR 
 *  is returned.
 */
  double f;
  long error_code = ELLIPSE_NO_ERROR;

  *e2 = 0;
  if (Ellipsoid_Initialized)
  {
    if ((Index < 1) || (Index > Number_of_Ellipsoids))
    {
      error_code |= ELLIPSE_INVALID_INDEX_ERROR;
    }
    else
    {
      f = 1 / Ellipsoid_Table[Index-1].Recp_F;
      *e2 = 2 * f - f * f;
    }
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End Ellipsoid_Eccentricity2 */


long Ellipsoid_User_Defined ( const long Index,
							                long *result )

{ /* Begin Ellipsoid_User_Defined */
/*
 *    Index    : Index of a given ellipsoid in the ellipsoid table (input)
 *    result   : Indicates whether specified ellipsoid is user defined (1)
 *               or not (0)                                        (output)
 *
 *  The function Ellipsoid_User_Defined returns 1 if the ellipsoid is user 
 *  defined.  Otherwise, 0 is returned.  If index is valid ELLIPSE_NO_ERROR is
 *  returned, otherwise ELLIPSE_INVALID_INDEX_ERROR is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  *result = FALSE;

  if (Ellipsoid_Initialized)
  {
    if ((Index < 1) || (Index > Number_of_Ellipsoids))
      error_code |= ELLIPSE_INVALID_INDEX_ERROR;
    else
    {
      if (Ellipsoid_Table[Index-1].User_Defined)
        *result = TRUE;
    }
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End Ellipsoid_User_Defined */


long WGS84_Parameters ( double *a,
                        double *f )
{ /* Begin WGS84_Parameters */
/*
 *    a      : Semi-major axis, in meters, of ellipsoid       (output)
 *    f      : Flattening of ellipsoid                        (output)
 *
 *  The function WGS84_Parameters returns the semi-major axis and the
 *  flattening for the WGS84 ellipsoid.  If the ellipsoid table was 
 *  initialized successfully, ELLIPSE_NO_ERROR is returned, otherwise 
 *  ELLIPSE_NOT_INITIALIZED_ERROR is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  *a = 0;
  *f = 0;
  if (Ellipsoid_Initialized)
  {
    *a = Ellipsoid_Table[WGS84_Index-1].A;
    *f = 1 / Ellipsoid_Table[WGS84_Index-1].Recp_F;
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End WGS84_Parameters */


long WGS84_Eccentricity2 ( double *e2 )
{ /* Begin WGS84_Eccentricity2 */
/*
 *    e2    : Square of eccentricity of WGS84 ellipsoid      (output)
 *
 *  The function WGS84_Eccentricity2 returns the square of the 
 *  eccentricity for the WGS84 ellipsoid.  If the ellipsoid table was 
 *  initialized successfully, ELLIPSE_NO_ERROR is returned, otherwise 
 *  ELLIPSE_NOT_INITIALIZED_ERROR is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;
  double f;

  *e2 = 0;
  if (Ellipsoid_Initialized)
  {
    f = 1 / Ellipsoid_Table[WGS84_Index-1].Recp_F;
    *e2 = 2 * f - f * f;
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End WGS84_Eccentricity2 */


long WGS72_Parameters( double *a,
                       double *f )
{ /* Begin WGS72_Parameters */
/*
 *    a    : Semi-major axis, in meters, of ellipsoid        (output)
 *    f    : Flattening of ellipsoid                         (output)
 *
 *  The function WGS72_Parameters returns the semi-major axis and the 
 *  flattening for the WGS72 ellipsoid.  If the ellipsoid table was 
 *  initialized successfully, ELLIPSE_NO_ERROR is returned, otherwise 
 *  ELLIPSE_NOT_INITIALIZED_ERROR is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;

  *a = 0;
  *f = 0;
  if (Ellipsoid_Initialized)
  {
    *a = Ellipsoid_Table[WGS72_Index-1].A;
    *f = 1 / Ellipsoid_Table[WGS72_Index-1].Recp_F;
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End WGS72_Parameters */


long WGS72_Eccentricity2 ( double *e2 )
{ /* Begin WGS72_Eccentricity2 */
/*
 *    e2     : Square of eccentricity of WGS84 ellipsoid     (output)
 *
 *  The function WGS72_Eccentricity2 returns the square of the 
 *  eccentricity for the WGS72 ellipsoid.  If the ellipsoid table was 
 *  initialized successfully, ELLIPSE_NO_ERROR is returned, otherwise 
 *  ELLIPSE_NOT_INITIALIZED_ERROR is returned.
 */

  long error_code = ELLIPSE_NO_ERROR;
  double f;

  *e2 = 0;
  if (Ellipsoid_Initialized)
  {
    f = 1 / Ellipsoid_Table[WGS72_Index-1].Recp_F;
    *e2 = 2 * f - f * f;
  }
  else
    error_code |= ELLIPSE_NOT_INITIALIZED_ERROR;
  return (error_code);
} /* End WGS72_Eccentricity2 */


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级精品在线| 成人一级黄色片| 欧美一区二区三区四区久久| 一区二区不卡在线播放| 欧美无砖砖区免费| 日韩av网站免费在线| 日韩女同互慰一区二区| 国产剧情一区二区三区| 欧美国产丝袜视频| 95精品视频在线| 亚洲综合小说图片| 日韩欧美一二三四区| 久久精品99久久久| 国产精品色呦呦| 欧美在线观看一二区| 久久99精品久久久久久国产越南 | 欧美成人精品福利| 国产成人av一区二区三区在线观看| 国产精品久久影院| 欧美性生活影院| 国产在线精品一区二区夜色| 国产精品丝袜91| 在线观看欧美黄色| 国产美女精品人人做人人爽| 亚洲欧美视频一区| 精品日韩99亚洲| 色婷婷av一区| 精品一区二区三区蜜桃| 亚洲精品伦理在线| 国产情人综合久久777777| 97精品久久久久中文字幕| 美国十次综合导航| 一区二区三区欧美| 精品粉嫩超白一线天av| 色国产精品一区在线观看| 久久精品国产99| 一二三区精品福利视频| 久久精品人人做人人爽97| 欧美系列一区二区| 粉嫩绯色av一区二区在线观看| 日韩黄色片在线观看| 1区2区3区国产精品| 精品国产乱码久久久久久蜜臀| 色呦呦国产精品| 国产乱子轮精品视频| 香蕉久久一区二区不卡无毒影院| 欧美—级在线免费片| 在线综合视频播放| 一本大道综合伊人精品热热| 国产精品综合在线视频| 日产国产高清一区二区三区| 亚洲摸摸操操av| 国产欧美精品一区二区三区四区 | 国产一区二区剧情av在线| 亚洲大片一区二区三区| 中文字幕亚洲视频| 精品国产凹凸成av人网站| 777xxx欧美| 欧美最猛性xxxxx直播| 99久久久无码国产精品| 国产aⅴ精品一区二区三区色成熟| 免费观看久久久4p| 五月婷婷激情综合| 亚洲一区二区偷拍精品| 亚洲欧美日韩久久精品| 国产精品毛片a∨一区二区三区 | 国产精品久久久久精k8| 国产亚洲一区二区三区四区| 欧美激情在线免费观看| 精品成人一区二区三区| 精品美女在线播放| 精品国产乱码久久久久久蜜臀| 日韩欧美视频在线| 欧美va在线播放| 精品欧美乱码久久久久久| 日韩免费看的电影| 日韩欧美国产成人一区二区| 日韩一区二区麻豆国产| 日韩一区二区三区电影| 日韩精品一区二区三区中文精品| 欧美成人三级电影在线| 337p日本欧洲亚洲大胆精品| 欧美精品一区二区三区蜜桃| 26uuu另类欧美| 国产精品久久久久久户外露出 | 精品视频全国免费看| 精品1区2区3区| 欧美一区二区三区性视频| 欧美一区二区三区小说| 久久综合给合久久狠狠狠97色69| 久久免费午夜影院| 国产精品乱码一区二三区小蝌蚪| 中文字幕五月欧美| 一区二区三国产精华液| 免费在线观看精品| 国产伦精一区二区三区| 懂色av一区二区三区免费看| 97久久超碰国产精品电影| 在线精品观看国产| 日韩一区二区电影在线| 国产日韩在线不卡| 亚洲综合在线观看视频| 日韩福利电影在线观看| 国产一区二区免费在线| 99精品视频中文字幕| 精品视频一区二区三区免费| 精品国产三级电影在线观看| 亚洲欧美在线高清| 亚洲成人精品在线观看| 韩国午夜理伦三级不卡影院| 91视频在线看| 欧美一区二区三区免费观看视频 | 欧美视频一区二区在线观看| 日韩欧美成人激情| 亚洲欧美日韩在线播放| 美女一区二区视频| 91香蕉国产在线观看软件| 精品伦理精品一区| 亚洲色图视频网站| 老司机精品视频导航| 91在线观看美女| 欧美一卡二卡在线观看| 中文子幕无线码一区tr| 午夜精品福利一区二区蜜股av| 国产黄色91视频| 欧美剧情片在线观看| 国产精品成人在线观看| 奇米影视一区二区三区小说| 99久久精品一区二区| 日韩欧美一区在线| 亚洲黄色尤物视频| 国产成人h网站| 日韩西西人体444www| 亚洲视频香蕉人妖| 国产成人综合在线观看| 6080国产精品一区二区| 亚洲日本成人在线观看| 国产乱子轮精品视频| 91精品国产福利| 亚洲影视在线观看| caoporen国产精品视频| 精品福利一区二区三区免费视频| 亚洲国产综合在线| av一区二区三区在线| 欧美精品一区二| 蜜臀av国产精品久久久久| 欧美性一级生活| 亚洲精品国产高清久久伦理二区| 国产成人在线视频网址| 精品奇米国产一区二区三区| 奇米888四色在线精品| 欧美在线色视频| 依依成人精品视频| 一本一本久久a久久精品综合麻豆| 欧美激情一二三区| 国产福利一区二区三区视频在线 | 日韩一区二区在线看片| 亚洲国产精品久久人人爱蜜臀| 91啪亚洲精品| 亚洲欧美日韩精品久久久久| 91香蕉视频mp4| 亚洲日穴在线视频| 91免费精品国自产拍在线不卡| 中文字幕第一区| av一区二区三区四区| 国产精品国产馆在线真实露脸| 成人av高清在线| 亚洲男人的天堂在线aⅴ视频| 91国偷自产一区二区三区观看| 亚洲欧美日韩中文字幕一区二区三区| 成人sese在线| 日韩毛片视频在线看| 色偷偷成人一区二区三区91| 亚洲精品成人悠悠色影视| 一本色道a无线码一区v| 亚洲一区av在线| 欧美日本高清视频在线观看| 日韩成人精品在线| 精品国产一二三| 风间由美中文字幕在线看视频国产欧美| 久久精品一级爱片| 成人黄色777网| 一区二区免费在线| 欧美一区二区视频在线观看| 久久电影网电视剧免费观看| 国产日韩欧美一区二区三区综合| 国产精品18久久久久久vr| 亚洲桃色在线一区| 精品视频在线免费看| 六月丁香综合在线视频| 久久久777精品电影网影网| 成人免费视频网站在线观看| 亚洲已满18点击进入久久| 日韩欧美中文一区二区| 丰满放荡岳乱妇91ww| 亚洲影院在线观看| 欧美成人一区二区三区在线观看 | 欧美写真视频网站| 国产综合色精品一区二区三区| 中文欧美字幕免费|