SAS 中的空间分析?
有没有办法在 SAS 中进行空间分析(不仅仅是图形)?我真正想要的是能够像在 PROC SQL 中的 PostGIS 或 SpatialLite 中那样进行地理查询。
我在 SAS-L 名单上询问了这个问题,但什么也没得到。
谢谢!
Is there a way to do spatial analysis (NOT just graphics) in SAS? What I really want is the ability to geographic queries like one can do in PostGIS or SpatialLite in PROC SQL.
I asked this on the SAS-L list and got nothing.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不确定您的问题是否足够具体地说明您想要做什么,以便有人给您一个好的答案。
如果您有纬度/经度数据,则可以通过根据纬度/经度值选择 where 子句条件来执行详细查询和聚合查询。
顺便说一句,您可能想查看 http://runsubmit.com 来查看另一个 stackoverflow 风格的网站,该网站的人口更集中SAS 用户。
I'm not sure whether your question is specific enough about what you're wanting to do, for someone to give you a good answer.
If you've got lat/long data, you could do detail and aggregate queries by choosing where clause criteria based on the lat/long values.
Incidentally, you might want to check out http://runsubmit.com for another stackoverflow style site with a more concentrated population of sas users.
我不熟悉 PostGIS 或 SpatialLite,但 SAS 有一些专用于 GIS 特定任务的程序。 此链接说
我不知道 proc sql 是否能够轻松复制这些功能,但是一旦数据位于 SAS 数据集中,我不明白为什么您不能至少执行一些基本查询。
SAS 还提供了一些使用空间数据的示例数据和代码此处。
I'm not familiar with PostGIS or SpatialLite, but SAS has some procedures dedicated to GIS specific tasks. This link says
I don't know if proc sql will be able to easily replicate those features, but once the data is in SAS data sets, I don't see why you couldn't at least do some basic querys.
SAS also has some examples data and code working with spatial data here.
答案似乎是否定的,SAS 不支持空间数据类型和操作符,如 Spatialite 或 Postgis。
(我正在回答我自己的问题来结束讨论,但感谢大家!)
The answer seems to be No, SAS doesn't support spatial datatypes and operators like spatialite or postgis.
(I am answering my own question to close the discussion, but thanks to all!)
实际上,当你考虑到 Spatialite/PostGIS 中的 SQL 查询只是被转换为特定的计算方法时。实际上是可以做到的。
所以回答你的问题,它可以在SAS中以一种简单的方式完成,比如spatialite(即简单查询?),不,不,
但是你可以编写一个函数来使用Base SAS来做你需要做的事情,我发现SAS是最好的之一用于快速数据分析的语言。
Actually, when you consider that the SQL queries in Spatialite/PostGIS are just being translated into a specific method of calculation. It can actually be done.
So to answer your question, can it be done in SAS in an easy way like spatialite (i.e simple queries?), No
But you could write a function to do what you need using Base SAS, i find SAS to be one of the best languages to use for quick data analysis.