zhyiwww
用平实的笔,记录编程路上的点点滴滴………
posts - 536,comments - 394,trackbacks - 0

查看道路分级如下:

mapdb=# select distinct pathclass from rbeijing;
 pathclass
-----------
 0
 15
 2
 3
 4
(5 rows)

使用子查询实现道路分级

  CONNECTIONTYPE postgis
  PROCESSING "CLOST_CONNECTION=DEFER"
  CONNECTION "user=map password=postgres dbname=mapdb host=192.168.1.11 port=5432"
  DATA "the_geom from  (select * from rbeijing where pathclass='3') as subquery using unique gid USING SRID=4326"









分级前的查询代码
  CONNECTIONTYPE postgis
  PROCESSING "CLOST_CONNECTION=DEFER"
  CONNECTION "user=zhangyi password=postgres dbname=zydb host=192.168.10.166 port=5432"
  DATA "the_geom from rbeijing using unique gid USING SRID=4326"                                                  
  #DATA "the_geom from  (select * from rbeijing where pathclass='3') as subquery using unique gid USING SRID=4326"

分级前的效果







|----------------------------------------------------------------------------------------|
                           版权声明  版权所有 @zhyiwww
            引用请注明来源 http://www.blogjava.net/zhyiwww   
|----------------------------------------------------------------------------------------|
posted on 2009-08-19 17:51 zhyiwww 阅读(497) 评论(0)  编辑  收藏 所属分类: linuxgis

只有注册用户登录后才能发表评论。


网站导航: