1、Python中__name__在这个模块被import时,这个变量值为该模块名,如果是运行时,则__name__值是__main__2、字典就是键值对,创建字典方法:方法一:>>> dict1 = {}>>> dict2 = {'name': 'earth', 'port': 80}>>> di...
分类:
编程语言 时间:
2014-10-14 01:59:37
阅读次数:
334
题意:
平面上有一些圆 要求用最少的圆将1、2、3点连通 这三点上的圆必须使用
思路:
如果两圆可以连通 则用边把它们圆心相连 然后问题转化为图论模型 那么我们只需要从1、2、3求出到其他点的最短路 再枚举中间点分别到这三个点距离和即可
为什么这样找中间点是对的?? 因为虽然可能存在x->1和x->2的最短路经过y 但是如果y真的存在 那么最小值一定是y提供的 就算我们...
分类:
其他好文 时间:
2014-10-05 12:26:58
阅读次数:
137
与上一讲无本质区别,主要用lod。首先查看google earth,在视角海拔高度649公里,显示陕西省,西安市。384公里显示其他的市,显示全国各级地名的话需要有数据。数据提供在builder\data\label\kmz文件夹中,kmz即为全国各省地名,不包括台湾,kmz格式可以解压,解压后是k...
分类:
其他好文 时间:
2014-09-29 12:13:20
阅读次数:
184
第八讲 程序 debug 会出问题,release 不会出问题在调用geos.dll时出错查看osgearth生成时的cmake目录,会发现GEOS_LIBRARY_DEBUG目录选的是019.Earth/builder/runtime/geos3.3.2/bin/geos_i.lib 选错了 应该...
分类:
其他好文 时间:
2014-09-26 22:11:08
阅读次数:
199
墙一天比一天高。神通广大的goaent似乎也变得不流畅了。不过googel对中国大陆的链接启用了https的支持。这样一来,墙除了封IP之外只能干瞪眼了。所以,现在只要找到没有被封锁的google IP就能流畅地用google了。有了IP,直接加在host文件了就行。不过IP的获取也不是一件简单的事...
分类:
其他好文 时间:
2014-09-26 18:39:58
阅读次数:
219
获取shp文件国家基础地理信息系统http://nfgis.nsdi.gov.cn/nfgis/chinese/c_xz.htm china.shp----》目前此网站不可用 360云盘->001.shpData019.Earth\builder\runtime\osgearth\data\ -> ...
分类:
其他好文 时间:
2014-09-25 19:32:57
阅读次数:
199
原始文件: builder->data->image->globe->globel.tif builder->data->heightfield->30m.tif创建文件: builder->earthfile->china-simple.earth 在其中写入xml格式语句创建缓存: o...
分类:
其他好文 时间:
2014-09-25 16:53:19
阅读次数:
246
Description
The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was...
分类:
其他好文 时间:
2014-09-15 16:02:04
阅读次数:
208
给出经纬度,算球面距和圆弧的弦长
我的做法:
设好三维坐标系,利用投影算出两点坐标
利用余弦定理算出圆弧对应圆心角,再算出球面距
我的代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespac...
分类:
其他好文 时间:
2014-09-09 13:30:28
阅读次数:
229
There cheap ghd hair straighteners has never been anyone else like you on the earth nor will there ever be again. And unless you are the identical twi...
分类:
其他好文 时间:
2014-09-02 15:27:04
阅读次数:
271