📄 mitab_bounds.cpp
字号:
/********************************************************************** * $Id: mitab_bounds.cpp,v 1.4 2004/06/30 20:29:03 dmorissette Exp $ * * Name: mitab_bounds.cpp * Project: MapInfo TAB Read/Write library * Language: C++ * Purpose: Implementation of bound lookup tables for known projections. * Author: Daniel Morissette, dmorissette@dmsolutions.ca * ********************************************************************** * Copyright (c) 2001, Daniel Morissette * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. ********************************************************************** * * $Log: mitab_bounds.cpp,v $ * Revision 1.4 2004/06/30 20:29:03 dmorissette * Fixed refs to old address danmo@videotron.ca * * Revision 1.3 2001/02/14 21:17:33 daniel * Check only if first char is "#" for comments in MITABLoadCoordSysTable() * * Revision 1.2 2001/01/23 22:06:50 daniel * Added MITABCoordSysTableLoaded() * * Revision 1.1 2001/01/23 21:23:41 daniel * Added projection bounds lookup table, called from TABFile::SetProjInfo() * **********************************************************************/#include "mitab.h"/*----------------------------------------------------------------- * List of known coordsys bounds. * 0xff in nEllipsoidId or nUnitsId fields means any value can match. *----------------------------------------------------------------*/static MapInfoBoundsInfo **gpapsExtBoundsList = NULL;static MapInfoBoundsInfo gasBoundsList[] = {{{1, 0xff, 0xff, {0,0,0,0,0,0}, 0,0,0, {0,0,0,0,0}}, -1000, -1000, 1000, 1000}, /* Lat/Lon */{{2, 29, 0, {-85.5,13,0,0,0,0}, 0,0,0, {0,0,0,0,0}}, -18500.7190263237, -4067.43878447928, 30025.7571082958, 4067.43878447928},{{2, 29, 0, {20,0,0,0,0,0}, 0,0,0, {0,0,0,0,0}}, -26284.8753911183, -3963.19059194305, 23518.0464025796, 3963.19059194305},{{2, 7, 7, {0,30,0,0,0,0}, -8,160,176, {0,0,0,0,0}}, -34706360.1398239, -7364918.36397399, 34706360.1398239, 7364918.36397399},{{3, 0, 3, {-109.5,44.25,45,49,1968503.937,0}, 0,0,0, {0,0,0,0,0}}, -376322393.49652, -357755728.255206, 380259401.37052, 398826066.611833},{{3, 0, 3, {-111.5,36.6666666667,37.2166666667,38.35,1640419.948,9842519.685}, 0,0,0, {0,0,0,0,0}}, -281416969.95067, -245782664.730374, 284697809.84667, 320332115.066966},{{3, 0, 3, {-111.5,38.3333333333,39.0166666667,40.65,1640419.948,6561679.79}, 0,0,0, {0,0,0,0,0}}, -299820220.76226, -269235441.863424, 303101060.65826, 333685839.557096},{{3, 0, 3, {-111.5,40.3333333333,40.7166666667,41.7833333333,1640419.948,3280839.895}, 0,0,0, {0,0,0,0,0}}, -313479418.366583, -287610480.882755, 316760258.262583, 342629195.746411},{{3, 0, 3, {-120.5,41.6666666667,42.3333333333,44,4921259.843,0}, 0,0,0, {0,0,0,0,0}}, -329872743.533369, -311905915.324464, 339715263.219369, 357682091.428273},{{3, 0, 3, {-120.5,43.6666666667,44.3333333333,46,8202099.738,0}, 0,0,0, {0,0,0,0,0}}, -348623368.682272, -335442185.295993, 365027568.158272, 378208751.544552},{{3, 0, 3, {-81,31.8333333333,32.5,34.8333333333,2000000,0}, 0,0,0, {0,0,0,0,0}}, -248789436.724623, -218682485.302253, 252789436.724623, 282896388.146993},{{3, 0, 3, {-84.3666666667,41.5,42.1,43.6666666667,13123359.58,0}, 0,0,0, {0,0,0,0,0}}, -318674512.717618, -308729738.1419, 344921231.877618, 354866006.453336},{{3, 0, 3, {-84.3666666667,43.3166666667,44.1833333333,45.7,19685039.37,0}, 0,0,0, {0,0,0,0,0}}, -334588341.234808, -332680007.139814, 373958419.974808, 375866754.069803},{{3, 0, 3, {-87,44.7833333333,45.4833333333,47.0833333333,26246719.16,0}, 0,0,0, {0,0,0,0,0}}, -343541891.912548, -349200540.720143, 396035330.232548, 390376681.424953},{{3, 0, 7, {-100,39.8333333333,40,43,500000,0}, 0,0,0, {0,0,0,0,0}}, -96293653.747449, -89392122.913416, 97293653.747449, 104195184.581482},{{3, 0, 7, {-100,43.8333333333,44.4166666667,45.6833333333,600000,0}, 0,0,0, {0,0,0,0,0}}, -107757768.605122, -101845373.546917, 108957768.605122, 114870163.663327},{{3, 0, 7, {-100.3333333333,29.6666666667,30.1166666667,31.8833333333,700000,3000000}, 0,0,0, {0,0,0,0,0}}, -70389655.9882633, -57319094.8848422, 71789655.9882633, 84860217.0916844},{{3, 0, 7, {-100.3333333333,42.3333333333,42.8333333333,44.4,600000,0}, 0,0,0, {0,0,0,0,0}}, -102916158.881298, -96669936.9429582, 104116158.881298, 110362380.819638},{{3, 0, 7, {-100.5,45.6666666667,46.1833333333,47.4833333333,600000,0}, 0,0,0, {0,0,0,0,0}}, -114111552.091083, -108589212.496103, 115311552.091083, 120833891.686064},{{3, 0, 7, {-100.5,47,47.4333333333,48.7333333333,600000,0}, 0,0,0, {0,0,0,0,0}}, -118782512.590452, -113525792.131232, 119982512.590452, 125239233.049672},{{3, 0, 7, {-101.5,34,34.65,36.1833333333,200000,1000000}, 0,0,0, {0,0,0,0,0}}, -80190916.4774175, -70255345.5878226, 80590916.4774175, 90526487.3670124},{{3, 0, 7, {-105.5,36.6666666667,37.2333333333,38.4333333333,914401.8289,304800.6096}, 0,0,0, {0,0,0,0,0}}, -85492362.7230086, -77749948.5363837, 87321166.3808086, 95063580.5674335},{{3, 0, 7, {-105.5,37.8333333333,38.45,39.75,914401.8289,304800.6096}, 0,0,0, {0,0,0,0,0}}, -88909656.3330413, -81520557.8132071, 90738459.9908412, 98127558.5106754},{{3, 0, 7, {-105.5,39.3333333333,39.7166666667,40.7833333333,914401.8289,304800.6096}, 0,0,0, {0,0,0,0,0}}, -92173099.6583073, -85136649.2531605, 94001903.3161073, 101038353.721254},{{3, 0, 7, {-109.5,44.25,45,49,600000,0}, 0,0,0, {0,0,0,0,0}}, -114703065.537737, -109043945.972187, 115903065.537737, 121562185.103287},{{3, 0, 7, {-111.5,36.6666666667,37.2166666667,38.35,500000,3000000}, 0,0,0, {0,0,0,0,0}}, -85775892.4411146, -74914556.209806, 86775892.4411146, 97637228.6724232},{{3, 0, 7, {-111.5,38.3333333333,39.0166666667,40.65,500000,2000000}, 0,0,0, {0,0,0,0,0}}, -91385203.2884872, -82062962.6799637, 92385203.2884872, 101707443.897011},{{3, 0, 7, {-111.5,40.3333333333,40.7166666667,41.7833333333,500000,1000000}, 0,0,0, {0,0,0,0,0}}, -95548526.7182849, -87663674.5730598, 96548526.7182849, 104433378.86351},{{3, 0, 7, {-116.25,32.1666666667,32.7833333333,33.8833333333,2000000,500000}, 0,0,0, {0,0,0,0,0}}, -73735809.4129763, -65399717.6233228, 77735809.4129763, 86071901.2026297},{{3, 0, 7, {-118,33.5,34.0333333333,35.4666666667,2000000,500000}, 0,0,0, {0,0,0,0,0}}, -76848317.8487893, -69006561.7099004, 80848317.8487893, 88690073.9876782},{{3, 0, 7, {-119,35.3333333333,36,37.25,2000000,500000}, 0,0,0, {0,0,0,0,0}}, -81316774.1198701, -74083546.7405704, 85316774.1198701, 92550001.4991699},{{3, 0, 7, {-120.5,36.5,37.0666666667,38.4333333333,2000000,500000}, 0,0,0, {0,0,0,0,0}}, -84187586.7378795, -77301811.5655565, 88187586.7378795, 95073361.9102026},{{3, 0, 7, {-120.5,41.6666666667,42.3333333333,44,1500000,0}, 0,0,0, {0,0,0,0,0}}, -100545212.229117, -95068922.9908967, 103545212.229117, 109021501.467338},{{3, 0, 7, {-120.5,43.6666666667,44.3333333333,46,2500000,0}, 0,0,0, {0,0,0,0,0}}, -106260402.774499, -102242778.078219, 111260402.774499, 115278027.47078},{{3, 0, 7, {-120.5,45.3333333333,45.8333333333,47.3333333333,500000,0}, 0,0,0, {0,0,0,0,0}}, -113297926.255298, -107613973.979824, 114297926.255298, 119981878.530772},{{3, 0, 7, {-120.8333333333,47,47.5,48.7333333333,500000,0}, 0,0,0, {0,0,0,0,0}}, -119009737.681158, -113655959.077325, 120009737.681158, 125363516.284991},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -