(NetLogo:重新)将Turtle xcor/ycor转换为现实世界的坐标 [英] (NetLogo: re-) transformation of turtle xcor/ycor to real-world coords

查看:389
本文介绍了(NetLogo:重新)将Turtle xcor/ycor转换为现实世界的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通用的城市环境中,我从shapefile加载的行人运行良好的NetLogo模型-包括投影/变换(请参见下面的选定代码行).

I have a well functioning NetLogo model of pedestrians in a generic, urban environment loaded from shapefiles - including projection/transformation (See selected code lines below).

如何将乌龟的xcor和ycors导出到投影/转换成原始投影系统的文本文件中?

How do I export the xcor's and ycors of turtles to text files, projected/transformed into the original projection system?

预先感谢

代码示例...

gis:load-coordinate-system (word "../data/testLines_2.prj") 
set ODLines gis:load-dataset "../data/testLines_2.shp" 
setUpEnvelopeExtented ODLines 10

推荐答案

也许您可以使用gis:store-dataset dataset file

您需要执行两个步骤:

  1. 使用代理创建数据集
  2. 中导出数据集

您可以使用

to export-turtles
  gis:set-world-envelope [-90 90 -90 90 ]
  gis:store-dataset gis:turtle-dataset turtles "bugs"
end

这篇关于(NetLogo:重新)将Turtle xcor/ycor转换为现实世界的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆