merge - gdal_merge.py not working after gdal and it python bindings have been installed -


i installed python 3.4.0 64 bit , gdal file release-1400-x64-gdal-1-11-1-mapserver-6-4-1.zip http://www.gisinternals.com/release.php. found binding http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal , filename gdal-1.11.2-cp34-none-win_amd64. install these files , import gdal. however, when run following command within python ide merge files 1 2 , 3, got error

 >>> gdal_merge.py -o out.tif 1.tif 2.tif 3.tif   file "<console>", line 1    gdal_merge.py -o out.tif 1.tif 2.tif 3.tif                    ^  syntaxerror: invalid syntax 

i check see if can import gdal_merge below

>>> import gdal_merge 

and ok. appreciate if issue.

gdal_merge.py part of gdal utilities executed command line, not within python ide or python script.

just open command line (cmd) , type:

python gdal_merge.py -o out.tif 1.tif 2.tif 3.tif 

depending on environment variables , whether included gdal in path variable might need specificy full path gdal_merge.py and/or can leave out python @ beginning of call.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -