GE Smallworld开发(006坐标系统设置)

来源:互联网 发布:python判断字符串查找 编辑:程序博客网 时间:2024/05/16 15:20

001坐标系统设置方法

1、在Smallworld Application Manager界面中,选择Administration;
2、选择Coordinate Systems,然后双击打开设置界面;
3、选择相应的数据集(Dataset),然后选择"List..."按钮,从列表中选择合适的坐标系统,
然后勾选"User visible?"选择框;
4、最后点击"Update"按钮。
5、提交对数据集的更改。

注意,请确认数据集可写,改完后记得保存。

v << gis_program_manager.cached_dataset(:gis)
$
print(v.user_visible_coordinate_systems) 
$

 v.switch(:write)
 
#需要加载map_projections_catalogue 模块

 v.create_coordinate_systems()

 v.world.set_coordinate_system_by_name(:world_miller_wgs84_cm)
 v.commit()

如果建库时,数据库坐标定义都是一样,而加载地图数据集后,显示的坐标比原来正确的地图数据集大或者小,
则需要在register_application方法中增加参数,如下:
:default_application_coordinate_system_name, :world_miller_wgs84_cm,
#:default_application_coordinate_system_name, :world_longlat_wgs84_degree,
:application_coordinate_system_unit, :cm

 

0 0
原创粉丝点击