Building CS-MAP on Windows and Linux
The CS-MAP distribution will produce a series of nine directories:
Include: Contains all header files referenced the source code in the Source directory.
Source: Contains all the source code for the CS-MAP library itself.
Dictionaries: Contains the coordinate system dictionaries in source form, and the source code for a compiler which will convert the dictionary source to the operational binary form.
Documentation: A .pdf file which described how to use the features of the library is included in this directory.
TestCpp: Contains the source code for the C++ version of the console test program and the test data which it uses. (The original 'C' version named simply Test has been deprecated.)
ConsoleUtilities: A repository for C++ source code which has been generated over the years to perform maintenance operations programatically, rather than manually. Much of this is retained for the sole purpose of supporting future maintenance efforts. Of value for CS-MAP contributing developers only.
VC90: Contains solution and project files suitable for use with Microsoft Visual Studio 2008 (Version 9.0).
VC100: Contains solution and project files suitable for use with Microsoft Visual Studio 2010 (Version 10.0).
VC110: Contains solution and project files suitable for use with Microsoft Visual Studio 2012 (Version 11.0).
Building the entire product is a series of five steps:
1> Build the CS-MAP library.
2> Build the dictionary compiler.
3> Run the dictionary compiler.
4> Build the console test program.
5> Execute the console test program.
After installation, and before building, it will be best to obtain a copy of the Canadian National Transformation file (NTV2_0.gsb) and copy it to the Dictionaries/Canada directory. This data file is not in the public domain, thus it may not be distributed as a part of this Open Source distribution. Geomatics Canada reserves the right to distribute this file and maintain a list of those using it. This is part of an ISO 9000 consideration. Therefore, since we do not distribute the file as part of this open source distribution, we recommend strongly that you simply obtain a copy, even if only for testing purposes.
Chances are very good you already have a copy of this file on your system already. If not, you can obtain one (no fee, but registration is required) at:
http://www.geod.nrcan.gc.ca
You will need to inform the CS-MAP library of the existence of this file and where it is located. In release 13 and thereafter, the existence and location of the NTV2_0.gsb file is conveyed to the CS-MAP library through one or more definitions in the Geodetic Transformation Dictionary. Thus, you must modify the source file for this dictionary (GeodeticTransform.asc) and then recompile it using the dictionary compiler. As of this writing, there is no UI or alternative means of modifying this information.
The TEST.DAT data file in the Test directory contains several hundred test points which are directly related to the above mentioned grid shift data file. To prevent confusion and unnecessary technical support, these test points are commented out in the distribution. After obtaining a copy of the above mentioned data file, these test should be uncommented back in, so that the test program will test this feature.
The situation described above concerning the Canadian National Transformation also applies to other sources of geodetic transformation data. In these cases, it is not so much that we know we are not permitted to distribute the file, it is more that we are unable to determine that we are permitted to distribute the data file. Thus, to be safe the files are not distributed. At this writing, this situation applies to other CSRS related Canadian files and certain French municipal data files. Check the appropriate locations in the distribution folder hierarchy for README files which describe the situation for these locations and provides suggestions on how to obtain a copy of the file.
A similar situation exists with regard to the Danish System 34 conversion modules. We are unable to distribute the coefficients for this transformation, even though the code is freely available on the Internet. Should you need to, or desire to, include the Danish System 34 conversion in your application, please carefully read the introductory comments of the provided "CSsys34KMS.c" (distributed in the 'Source" folder, but NOT included in any builds).
OK. Now for building on your system.
Make files are provided for both Linux and Windows environments. Makefiles targeted for, and tested on, Linux should provide the basis for creating decent makefiles in other Unix type environments. The following information applies to both the Windows and Linux environments.
There are essentially four base components to the CS-MAP distribution which must be completed to have a usable library. These compponents are:
1> The Library itself, which exists as a static object C/C++ object library named csmap.a/csmap.lib.
2> Six binary dictionary files which are produced by compiling the provided ASCII source files.
3> The coordinate system compiler which converts the dictionary source files into a usable binary form.
4> The Console Test program which is used to verify successful installation, and can be used to verify the integrity of the library after changes to the source code have been made.
The build process is rather straight forward:
1> Build the library. (Source/Library.mak (.nmk))
2> Build the dictionary compiler. (Dictionaries/Compiler.mak (.nmk))
3> Compile the dictionaries. (Dictionaries/Compiler.mak (.nmk))
4> Build the console test module. (TestCpp/TestCpp.mak (.nmk))
5> Execute the test module to verify valid installation.
An overall make file, CsMap.mak (.nmk), is provided which will invoke each of the above mentioned makefiles in the proper order.
To complete all five steps on Linux systems, simple make the CsMapDev directory the current working directory and enter the following command:
make -fCsMap.mak Linux64 QuickTest
On Windows based platforms, you will first need to import to the environment the Visual Studio variable settings. These are typically set by executing the command script named 'vcvars32.bat' which is traditionally located in the ..\VC\bin directory of the Visual Studio installation. Having accomplished that, building the library for your system can be accomplished by entering the following command:
nmake -fCsMap.nmk Release QuickTest
This procedure has been tested with Visual Studio 2008 (Version 9.0), Visual Studio 2010 (Version 10.0), and Visual Studio 2012 (version 11.0). Examination of the makefiles will show that minor tweaks to the makefiles will enable Release/Debug builds of all three compiler releases on the same system concurrently. Check the detailed comments in the appropriate makefile.
Finally, also notice that in the directories named CsMapDev\VC90, CsMapDev\VC100, and CsMapDev\VC110 you will find complete Visual Studio solution and project files which can be used to make the entire product; one set of files for each of the supported Visual Studio releases.
Defects and Enhancements
Please report any defects in the code, build process, and/or documentation using the Trac facility located at "trac.osgeo.org/csmap" While CS-MAP shares a subversion repository with other coordinate system related products, it has its own defect tracking database at the indicated location. You will need to create a login for yourself to record a bug, but anyone can create a login and there is no fee. You can also use this means to request an enhancement to the product.
With regard to defects and/or enhancements, there are no guarantees that any action will be initiated in any given time frame. As the product gains wider use, there will be more and more developers interested in a bug free product and the chances of a timely correction or
没有合适的资源?快使用搜索试试~ 我知道了~
ODA——2.1资源下载Teigha
共6128个文件
h:4379个
hpp:505个
cpp:494个
需积分: 19 8 下载量 49 浏览量
2022-08-15
09:20:57
上传
评论
收藏 129.25MB ZIP 举报
温馨提示
ODA——2.1资源下载Teigha
资源详情
资源评论
资源推荐
收起资源包目录
ODA——2.1资源下载Teigha (6128个子文件)
Jpeglib.001 6KB
cjpeg.1 10KB
jpegtran.1 7KB
djpeg.1 7KB
wrjpgcom.1 3KB
rdjpgcom.1 2KB
ansi2knr.1 1KB
makefile.ansi 12KB
IdViewObj.aps 7KB
RasterSaving.aps 5KB
jmemdosa.asm 8KB
makefile.bcc 14KB
jconfig.bcc 1KB
CMakeDetermineCompilerABI_C.bin 50KB
CMakeDetermineCompilerABI_CXX.bin 50KB
CMakeDetermineCompilerABI_CXX.bin 50KB
CMakeDetermineCompilerABI_C.bin 50KB
testimg.bmp 34KB
Logo-ODA.bmp 2KB
CS_fips.c 249KB
CS_rlsUpdt.c 90KB
CS_geocn.c 73KB
CSdataPJ.c 66KB
CS_category.c 63KB
CS_trmer.c 57KB
CS_oblqm.c 51KB
CS_error.c 50KB
CS_datum.c 49KB
CS_supprt.c 48KB
CS_ntv2.c 48KB
jquant2.c 47KB
CS_azmed.c 46KB
CS_sys34.c 43KB
CS_lmbrt.c 42KB
CS_guiApi.c 40KB
jdmarker.c 40KB
jmemmgr.c 40KB
CS_azmea.c 40KB
CS_optional.c 40KB
CS_modpc.c 37KB
CS_alber.c 37KB
CS_bpcnc.c 36KB
CS_nadcn.c 36KB
CS_defCmpEx.c 35KB
CS_mgrs.c 35KB
CS_japan.c 35KB
CS_bynFile.c 34KB
CS_bonne.c 33KB
CScscomp.c 33KB
CS_sinus.c 33KB
CS_angle.c 32KB
CS_mstro.c 32KB
CS_ostro.c 32KB
transupp.c 32KB
CS_edcnc.c 32KB
CS_lmtan.c 32KB
CS_plycn.c 32KB
CS_tacyl.c 31KB
CS_hmlsn.c 31KB
CS_robin.c 31KB
CS_sstro.c 31KB
CS_hpApi.c 31KB
jquant1.c 31KB
CSgxcomp.c 30KB
CS_molwd.c 29KB
CS_vdgrn.c 29KB
CS_mrcat.c 29KB
CS_pstro.c 29KB
CSdatumCatalog.c 28KB
CS_ortho.c 28KB
CS_gnomc.c 28KB
jchuff.c 28KB
CS_frnch.c 28KB
CS_csini.c 27KB
CS_trmrs.c 27KB
CS_gridi.c 26KB
CS_ekrt4.c 25KB
CS_geoid99.c 25KB
CS_ekrt6.c 25KB
CS_krovk.c 25KB
jdcoefct.c 25KB
jcphuff.c 25KB
CSdata.c 24KB
CS_nzlnd.c 24KB
CSdictDiff.c 24KB
CS_edcyl.c 24KB
CS_hlApi.c 23KB
CMakeCCompilerId.c 23KB
CMakeCCompilerId.c 23KB
CS_geoid96.c 22KB
CSdtcomp.c 22KB
CS_defCmp.c 22KB
ansi2knr.c 22KB
CS_ats77.c 21KB
jcparam.c 21KB
CS_swiss.c 20KB
jdhuff.c 20KB
CS_nacyl.c 20KB
jdphuff.c 20KB
jdmainct.c 20KB
共 6128 条
- 1
- 2
- 3
- 4
- 5
- 6
- 62
helloyangkl
- 粉丝: 3231
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0