資源簡介
基于qt4.8.6forVS2010的QGIS2.4.0的VS2010開發包,由于csdn有上傳最大50M限制,有希望下載開發包的話需要多下載幾次,然后在一起解壓縮。
代碼片段和文件信息
#!/usr/bin/env?python
#******************************************************************************
#??$Id:?pct2rgb.py?27044?2014-03-16?23:41:27Z?rouault?$
#?
#??Name:?????pct2rgb
#??Project:??GDAL?Python?Interface
#??Purpose:??Utility?to?convert?palletted?images?into?RGB?(or?RGBA)?images.
#??Author:???Frank?Warmerdam?warmerdam@pobox.com
#?
#******************************************************************************
#??Copyright?(c)?2001?Frank?Warmerdam
#??Copyright?(c)?2009-2010?Even?Rouault?
#?
#??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.
#******************************************************************************
try:
????from?osgeo?import?gdal
except?ImportError:
????import?gdal
try:
????progress?=?gdal.TermProgress_nocb
except:
????progress?=?gdal.TermProgress
try:
????import?numpy?as?Numeric
????Numeric.arrayrange?=?Numeric.arange
except?ImportError:
????import?Numeric
import?sys
import?os.path
def?Usage():
????print(‘Usage:?pct2rgb.py?[-of?format]?[-b?]?[-rgba]?source_file?dest_file‘)
????sys.exit(1)
#?=============================================================================
#? Mainline
#?=============================================================================
format?=?‘GTiff‘
src_filename?=?None
dst_filename?=?None
out_bands?=?3
band_number?=?1
gdal.AllRegister()
argv?=?gdal.GeneralCmdLineProcessor(?sys.argv?)
if?argv?is?None:
????sys.exit(?0?)
#?Parse?command?line?arguments.
i?=?1
while?i?????arg?=?argv[i]
????if?arg?==?‘-of‘:
????????i?=?i?+?1
????????format?=?argv[i]
????elif?arg?==?‘-b‘:
????????i?=?i?+?1
????????band_number?=?int(argv[i])
????elif?arg?==?‘-rgba‘:
????????out_bands?=?4
????elif?src_filename?is?None:
????????src_filename?=?argv[i]
????elif?dst_filename?is?None:
????????dst_filename?=?argv[i]
????else:
????????Usage()
????i?=?i?+?1
if?dst_filename?is?None:
????Usage()
#?----------------------------------------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??126205952??2010-04-02?21:49??bin\oraociei11.dll
?????文件??????33536??2011-05-07?16:50??bin\orbd.exe
?????文件????3826688??2011-07-10?18:23??bin\osg80-osg.dll
?????文件?????771584??2011-07-10?18:34??bin\osg80-osgAnimation.dll
?????文件????1389568??2011-07-10?18:28??bin\osg80-osgDB.dll
?????文件?????264704??2011-07-10?18:29??bin\osg80-osgFX.dll
?????文件?????374272??2011-07-10?18:30??bin\osg80-osgGA.dll
?????文件?????368128??2011-07-10?18:33??bin\osg80-osgManipulator.dll
?????文件?????432640??2011-07-10?18:31??bin\osg80-osgParticle.dll
?????文件?????384000??2011-07-10?18:34??bin\osg80-osgPresentation.dll
?????文件?????149504??2011-07-10?18:34??bin\osg80-osgQt.dll
?????文件?????734208??2011-07-10?18:30??bin\osg80-osgShadow.dll
?????文件?????871936??2011-07-10?18:31??bin\osg80-osgSim.dll
?????文件?????349184??2011-07-10?18:30??bin\osg80-osgTerrain.dll
?????文件?????544768??2011-07-10?18:29??bin\osg80-osgText.dll
?????文件????2618368??2011-07-10?18:26??bin\osg80-osgUtil.dll
?????文件?????935424??2011-07-10?18:31??bin\osg80-osgViewer.dll
?????文件?????359936??2011-07-10?18:31??bin\osg80-osgVolume.dll
?????文件?????505856??2011-07-10?18:33??bin\osg80-osgWidget.dll
?????文件??????59392??2011-07-10?18:48??bin\osgarchive.exe
?????文件?????148992??2011-07-10?18:47??bin\osgconv.exe
?????文件?????122368??2011-07-10?19:24??bin\osgdb_earth.dll
?????文件??????90624??2011-07-10?19:28??bin\osgdb_osgearth_agglite.dll
?????文件??????99328??2011-07-10?19:23??bin\osgdb_osgearth_arcgis.dll
?????文件??????55808??2011-07-10?19:23??bin\osgdb_osgearth_arcgis_map_cache.dll
?????文件??????80896??2011-07-10?19:24??bin\osgdb_osgearth_debug.dll
?????文件?????555008??2011-07-10?19:25??bin\osgdb_osgearth_engine_osgterrain.dll
?????文件?????142336??2011-07-10?19:28??bin\osgdb_osgearth_feature_ogr.dll
?????文件?????117760??2011-07-10?19:29??bin\osgdb_osgearth_feature_wfs.dll
?????文件?????174592??2011-07-10?19:23??bin\osgdb_osgearth_gdal.dll
............此處省略400個文件信息
評論
共有 條評論