05th 10 2008, Musicman

Openlayers 2.7 is released.

http://www.openlayers.org/

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

03rd 10 2008, Classicning

GeoCommons

Take a look first:
http://maker.geocommons.com/maps/571
翻遍我手上的数据,也就闭幕式那天人肉出来的奖牌分布数据有点价值,赶紧发上来共享。

一个结合数据共享、数据发布和制图的网站。用户可以在finder部分发布自己的数据(支持KML Shp和CSV等格式),同样可以搜索查询已经存在的各种有趣的数据。在maker部分,用户可以用已经存在的数据自己定义一张overlay图,并将其发布。

更值得一提的是geocommons的服务器是Mongrel,可以推断它是RoR架构的。

Posted by Classicning
under ClassicningDailyLog-SunNing No Comments »

20th 9 2008, Musicman

Draw me, dear Lord.

Draw me, dear Lord;

Draw me today.

From everything else, dear Lord;

Draw me away.

 

O Lord, this whole world

Seems to weigh me down 

All the cares, the strife, the sin

Within me and all around.

 

But, Lord, I want to set my heart,

And Lord I want to stay with You,

‘Cause only when You’re near to me

Is everything ok.

 

Draw me, dear Lord;

Draw me today.

From everything else, dear Lord;

Draw me away.

 

And though everything may fall apart

Or everything go my way,

It doesn’t really matter, Lord,

As long as I gain You, today.

PS: Every friday night, I will do church work with sisters and brothers, I enjoy this sorts of life. God is simple, God is beautiful (from Max, my roommate.)

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

20th 9 2008, Musicman

推荐:Create a map from a published Google Spreadsheet

Create a map from a published Google Spreadsheet

we could treate the Google Spreadsheet as the database. Even if it is a lot difficult to store spatial data in to spreadsheet. at least, we can store the longlat or xy data. thay makes sense.

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

15th 9 2008, Musicman

没有负担的蜗牛——谈谈SpatiaLite

没有壳壳的蜗牛

要说空间数据库SpatiaLite就要先讲SqLite。这几年,SqLite越来越流行。不光是因为它的速度和功能,更多的是,它满足了人们对特定功能的专项需求。就像大家很喜欢用lighttpd做web服务器一样。SQLite是一款轻型的数据库,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。它能够支持Windows/Linux/Unix等等主流的操作系统,同时能够跟很多程序语言相结合,比如Tcl、PHP、Java等,还有ODBC接口,同样比起MySQL、PostgreSQL这两款开源世界著名的数据库管理系统来讲,它的处理速度比他们都快。同时它还支持事务处理功能等等。也有人说它象Microsoft的Access,有时候真的觉得有点象,但是事实上它们区别很大。比如SQLite支持跨平台,操作简单,能够使用很多语言直接创建数据库,而不象Access一样需要Office的支持。如果你是个很小型的应用,或者你想做嵌入式开发,没有合适的数据库系统,那么现在你可以考虑使用SQLite。目前它的最新版本是 3.2.2,它的官方网站是:http://www.sqlite.org,能在上面获得源代码和文档。同时因为数据库结构简单,系统源代码也不是很多,也适合想研究数据库系统开发的专业人士。

在SpatiaLite官网上搜到了一个SqLite和MySQL, PostgreSQL对比

DBMS

Binary size

Brief description

PostgreSQL
PostGis

25 MB
1.5 MB

It claims to be “The world’s most advanced open source database”, and that’s simply the truth.
The PostGIS add-on on its own implements a full set of Spatial features (OGC certified); whatever kind of GIS operation you need, PostGIS can support you in an useful way and without dimensional limits.

MySQL Spatial

42 MB

It claims to be “The world’s most popular open source database”, and this too is simply the truth.
MySql’s Spatials enable you to manage in a very effective way GIS data; it’s a pity that you can create a spatial index only if you are using MyISAM tables, that aren’t neither transactional nor ACIDs. You can use Spatial data in InnoDB tables as well (full ACIDs), but in this case you cannot have spatial indexes.

SQLite
SpatiaLite

200 KB
150 KB

A very light weighted DBMS; it doesn’t pretends to be, but perhaps it is “The world’s smallest and simplest database”.
As the aforementioned two tends to be vast and complex, as SQLite tends to be simple. But simplicity does not always means incompleteness; not in this case, at least.
SpatiaLite offers you the option to enable the SQLite DBMS to support a decent and standard-conformant environment for Spatial data as well.
It doesn’t pretends at all to be better, or fastest, or most powerful than others; most humbly, it just pretends to be simple, light weighted and reasonably useful.
SpatiaLite does not implements any kind of spatial index, mainly because SQLite in its own does not supports R-trees, but only B-trees. Please note well that this one may be a severe limitation, if you need to fastly access a very large data set by using some spatial selection criterion; but if yours data sets are not too large [less than 10.000 rows, just to fix an arbitrary limit] lacking of any kind of spatial index may be practically unnoticed.
If you are looking for an elementary simple-to-manage GIS environment, without frills and undue complexity, and if your have to manage only small- or medium-sized GIS data, SQLite and SpatiaLite can make you feel very happy [I hope so, at least ...]

 对数据库的对比真是见仁见智,总的看来,SqLite的特性是,它的事务操作是原子,一致,孤立,并且持久的,即使在系统崩溃和电源故障之后。零配置(不需要安装和管理),实现了绝大多数SQL92标准。但是Sqlite的大小真的是无人能及。先不论这点,基于Sqlite的SpatiaLite在空间功能上可以满足用户最专项的需求。
以前老师讲长尾理论和吴国平老师讲计量地理学的时候,总是强调一点,我们在日常工作中80%的时间都在做设计一门知识或者功课20%难度的东西。我想,SpatiaLite的推出,正是基于这种考虑。首先,我承认,PostGIS+PostgreSQL功能着实强大,它结合了多个开源地理类库,最突出的一点,PostGIS可以支持地图投影变换,而SpatiaLite是不支持投影变换的。对于MySQL的spatial extension我没有用过,以前只是看到MySQL关于Spatial Extension的document,看完了document我对MySQL就已经没有了任何兴趣,在Geospatial方面, MySQL和PostGIS相比只是刚刚起步。
细读了SpatiaLite的Document,tutorial以及相关的文献。总的来看,由于捆绑了GEOS,所以对于基本的Spatial Analysis SpatiaLite可以完全胜任,这点和PostGIS很类似。只是说,SpatiaLite在地图投影的支持方面没有PostGIS那么强大,但是仔细一想,只要是WGS84的投影一般地图应用都会支持,并且这种数据投影转换的需求在实际使用中并不是很多。如果需要什么类型的投影可以使用Proj4在后台转换。SpatiaLite预留了SRID的定义,有利于使用Proj.4进行转换。同时SpatiaLite还支持数据检索,基于R-tree,这点对于地理数据这种数据量比较大的数据类型会有极快速的操作体验。
对我来说,SqLite的强大在于它的跨平台性能,和类似Access的文件管理,同时他很小,方便携带,要使用一个数据库只需要将其拷贝携带。SpatiaLite有强大的地理空间性能是大多数数据库无以匹敌的,同时可以将SptiaLite进行嵌入式开发、同时可以配合各种语言使用。
参考文献
1. PySqlite简明教程
2. http://www.phpsqlite.com.cn/
3. http://www.gaia-gis.it/spatialite-2.0/index.html
4. http://www.gaia-gis.it/spatialite-2.0/SpatiaLite2-tutorial.html#t1.2
5. http://www.gaia-gis.it/spatialite-2.0/spatialite2_sql.html
6. http://www.gaia-gis.it/spatialite-2.0/SpatiaLite-manual.html
7. http://zh.wikipedia.org/wiki/SQLite
(sqlite in C#)
9. http://blog.sina.com.cn/s/blog_49d619a301009kqj.html
10. http://lordhong.javaeye.com/blog/114055
11. http://www.diybl.com/course/4_webprogram/asp.net/netjs/2007101/75691.html
SQLite管理客户端
SQLite亦可以作为桌面数据库使用,以下为第三方SQLite的GUI软件。例如,
1. SQLite Manager, 以 火狐浏览器的扩展形式提供的SQLite客户端。
2. SQLiteSpy

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

14th 9 2008, Musicman

天堂之光——游圣奥古斯汀记

by Bo Zhao. travel in St.Augustine.

 

亚特兰蒂斯的深蓝色,

Ocarina吹奏着海盐和细沙,

从灯塔眺望你,

远在十六世纪的San Marcos城堡,

重读用贝壳书写着爱与恨。

 

那来自三重天外的光柱,

God speeds

温暖的红色,

触在你的脸上,

赞美主——

Hallelujah!

灯塔

 

my shadow and the equips

先人用贝壳做的墙

reflection

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

13th 9 2008, Classicning

今天在百合GIS版上回的帖


所以我觉得arcgis还是要学的,但是应该是在大一最晚大二就学了,而且侧重也应该不同。我们常做栅格计算,领域分析之类的,看着书点点对话框,点个确定就成功了,但是很少说为什么这么做,这么做的理论依据是什么。

其实就是我最近一直在想的,gis的技术不是不成熟,而是相对它的应用来说已经很成熟了,但是关键是我们不知道用它来做什么,怎么做。大家都认同了其实gis就是一个tool,而我们现在大部分的时间就是在埋头做tool本身,却很少思考我们到底拿这个tool来干什么。给领导看看而已吗?这也许是短期之内的营生手段,但永远不会是gis发展的途径。我们学习arcgis的时候,比如网络分析,我们只能关注到给定成本,找出最短路径,但是我们找到最短路径干什么呢?针对某个行业常常遇到的场景来说呢,是否是最短的就是最有效的,除了路径上的成本,还有没有其它的影响因素呢,这些不是坐在实验室里可以想出来的,需要其它领域的实践和知识。所以作为一个tool,我觉得gis要想有大的发展,仅仅专注于自己是没有意义的。而是应该关注到某些具体的领域和行业中,把我们gis的已经有的理论和技术结合到行业的具体应用中去,针对特定的行业得出特定的理论,让我们的tool具有intelligence。这样理论和技术都成熟后,我们可以为行业的大客户做基于3s技术和空间分析理论的地理信息解决方案,比如我们可以得出这样的结论:应用我们的技术,客户可以对业务进行空间上的重构,可以节约成本多少多少,gis是定量的,这些都是可以计算出来的。这才是gis商用、gis赚钱、gis发展的途径和gis真正应该存在的价值。

补充:我不是说我们要放弃基础的算法研究,要投身到赚钱的事业中去。我的意思是说,我们基础的所谓地理信息科学的研究应该具体到某些场景上,与实际的应用结合,才是靠谱的gis技术。否则,这一切都应该归到数学中去,而不是gis。

Posted by Classicning
under ClassicningDailyLog-SunNing 1 Comment »

09th 9 2008, Musicman

Naomi, give another pieces of Gavotte.

to cheer me up to do my assignment…

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

09th 9 2008, Musicman

China rank high among acquiring the Ph.D. in U.S Universities.

美国政府对全国博士普查通过对2006年度全美45596名研究型博士学历背景的分析显示,当今“出产”美国博士最多的三所学校是清华大学571人,北京大学507人,加州大学伯克利分校427人。随后是韩国首尔国立大学、康奈尔大学、密歇根大学安阿伯分校、德克萨斯大学奥斯汀分校、杨百翰大学、加州大学洛杉矶分校、佛罗里达大学(10th)、伊利诺伊大学香槟分校。中国紧追而上的还有,复旦大学和中国科技大学(163人),南京大学(155人),南开大学(147人),上海交通大学(144人)。
“头号博士培养学校现在来自中国”,今年7月,美国《科学》以此为题载文,开头便写道:“夏季奥运会下个月才开幕,可中国的大学已经在一项全球高校的重要竞赛中领到了金牌和银牌。”
以2006年在美获得博士学位的本科毕业生数量计算,最多的十所中国高校依次是:清华大学、北京大学、台湾大学、复旦大学、中国科技大学、南京大学、南开大学、上海交通大学、浙江大学、武汉大学。除了台大之外,台湾没有一所大学的数量超过50人。香港大学、香港中文大学、香港科技大学总数仅为39人。
世界第二人口大国印度,向来被视为对美“出口”留学生较多的国家。该国仅有两所大学的“出口”数量超过百人——孟买大学153人,德里大学105人。
若以国家和地区统计,最多的是中国大陆4236人,韩国1510人,印度1479人,中国台湾609人,加拿大533人,土耳其430人,日本240人,泰国217人,墨西哥201人,英国198人,罗马尼亚191人,俄罗斯183人,巴西157人。一名北美的清华校友认为,本科毕业生中的博士学位获得者数量体现了“学术追求”。他乐观地指出:“清华学生在美国的学术追求走势喜人,如果这个势头能坚持10~20年,那么在美国学术界将可能有一席之地。”根据博士普查,2000年~2005年间,中国大陆(含香港)17763名留美学生获得博士学位后,倾向于继续留在美国的比例为全球之最。2000~2001年达91.4%,2002~2005年为90.4%。而在同期所有非美国公民的博士中,倾向于留在美国的平均比例约为70%。全世界只有伊朗、保加利亚、罗马尼亚的调查数字与中国的接近。
据教育部官方统计数据,1978年到2004年底,中国各类出国留学人员总数达81.5万人,留学回国人员总数达19.8万人。以留学生身份出国、选择留在国外的,有61.7万人,比例超过75%。教育部国际合作与交流司司长助理、出国留学工作处处长张宁说,2007年有4.4万人留学回国,这是“历史新高”。
参考文献:
http://edu.qq.com/a/20080908/000012.htm

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »

07th 9 2008, Musicman

没处藏身撩——用Google街景地图找到你

where can I hide myself in this google world? Google Street View digs you out whereever you are.Google Street View provides panoramic 360 degree views from designated roads throughout the coverage area for Google Maps.Use of the Street View Panorama object requires support for the Flash plugin on the client’s browser.How to use this component? just follow the steps below,

  1. Create a container (usually a <div> element) to hold the Street View Flash? viewer.
  2. Create a GStreetviewPanorama object and place it within the container.
  3. Initialize the Street View object to refer to a specific location and display an initial “point of view” (POV).
  4. Handle unsupported browsers by checking for the 603 error value.

And then, google street view uses a view system named POV(Street View Points of View), which defines the placement of the camera locus for an image, but it does not define the orientation of the camera for that image. For that purpose, the GPov object literal defines three properties:

  1. yaw defines the rotation angle around the camera locus in degrees relative from true north. Yaw angles are measured clockwise (90 degrees is true east).
  2. pitch defines the angle variance “up” or “down” from the camera’s initial default pitch, which is often (but not always) flat horizontal. (For example, an image taken on a hill will likely exhibit a default pitch that is not horizontal.) Pitch angles are measured with negative values looking up (to -90 degrees straight up and orthogonal to the default pitch) and positive values looking down (to +90 degrees straight down and orthogonal to the default pitch).
  3. zoom defines the zoom level of this view (effectively proscribing the “field of view”) with 0 being fully zoomed-out. Different Street View locations may provide higher or lower zoom levels.

By default, these values are all 0 and define a flat horizontal view directly north with the widest possible field of view.
I use Street View to display where I am. to access the streetview , goto http://plaza.ufl.edu/bo/where.htm. and here is the code below,

 var myPano = new GStreetviewPanorama(document.getElementById("pano"));
      spanishtrace = new GLatLng(29.647343, -82.341644);
      myPOV = {yaw:345,pitch:-10};
      myPano.setLocationAndPOV(spanishtrace, myPOV);
      GEvent.addListener(myPano, "error", handleNoFlash);
    }
 
    function handleNoFlash(errorCode) {
      if (errorCode == 603) {
        alert("Error: Flash doesn't appear to be supported by your browser");
        return;
      }

Posted by Musicman
under Geoinfomatics-ZhaoBo No Comments »