搬瓦工主机上使用pip安装scipy,出现以下错误:
OSError: [Errno 28] No space left on device
找到以下的问题:
https://stackoverflow.com/questions/28590344/ioerror-no-space-left-on-device-which-device
可能是tmp目录的空间不够。
又找到
https://stackoverflow.com/questions/10617198/pip-creates-build-directories
使用 pip install -b 选项,指定目录,解决了问题。
2017年6月4日星期日
debian 编译安装 Python3
http://drupaland.eu/article/debian-8-python35-and-pip35
上面的链接中,应使用
上面的链接中,应使用
make altinstallhttps://unix.stackexchange.com/questions/332641/how-to-install-python-3-6 上面的链接中,make -j8 会出现编译错误,直接使用make能通过。
2017年6月3日星期六
2017年5月30日星期二
查看IE浏览器保存的密码
IE PassView v1.40
Copyright (c) 2006 - 2016 Nir Sofer
Web site: http://www.nirsoft.net
http://www.nirsoft.net/utils/internet_explorer_password.html
Copyright (c) 2006 - 2016 Nir Sofer
Web site: http://www.nirsoft.net
http://www.nirsoft.net/utils/internet_explorer_password.html
2017年5月27日星期六
将dwg文件放到Google Map的思路
2 将dxf导入ArcGis,赋上坐标系,导出为shape文件;
3 使用ogr2ogr将shape文件转换为json格式;
ogr2ogr -t_srs EPSG:4326 -f "GeoJSON" ttt.json 2.shp
4 使用Python的geojson,获取json格式文件里的坐标点,转为国内地图使用的火星坐标系 ,并输出为json格式。
5 使用ogr2ogr,将json格式转换为kml格式。
ogr2ogr -f "KML" yxl.kml yongxinglu_huoxing.json
6 将kml文件导入Google Map。(在google drive中)
更新:将北京54 120度带的dxf文件转换为kml文件
ogr2ogr -t_srs EPSG:4326 -f "KML" -s_srs EPSG:2437 2.kml lhk.dxf
-t_srs 输出文件重新投影或者转换
-f 输出文件的格式
-s_srs 指定输入文件的坐标系
最后一个参数是输入文件,倒数第二个参数是输出文件的文件名。
2017年4月2日星期日
Check what Debian version you are running on your Linux system
Check what Debian version you are running on your Linux system
# apt-get install lsb-release
# lsb_release -da No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.7 (wheezy) Release: 7.7 Codename: wheezy
订阅:
博文 (Atom)