简体   繁体   English

SAS中的空间分析?

[英]Spatial analysis in SAS?

Is there a way to do spatial analysis (NOT just graphics) in SAS? 有没有办法在SAS中进行空间分析(不仅仅是图形)? What I really want is the ability to geographic queries like one can do in PostGIS or SpatialLite in PROC SQL. 我真正想要的是能够像在PostGIS或PROC SQL中的SpatialLite中一样进行地理查询的功能。

I asked this on the SAS-L list and got nothing. 我在SAS-L清单上问了这个,却一无所获。

Thanks! 谢谢!

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. 如果您有纬度/经度数据,则可以通过基于纬度/经度值选择where子句条件来进行详细信息和汇总查询。

Incidentally, you might want to check out http://runsubmit.com for another stackoverflow style site with a more concentrated population of sas users. 顺便说一句,您可能想查看http://runsubmit.com,以获得另一个具有更多sas用户集中的stackoverflow风格的网站。

I'm not familiar with PostGIS or SpatialLite, but SAS has some procedures dedicated to GIS specific tasks. 我对PostGIS或SpatialLite不熟悉,但是SAS有一些专门用于GIS特定任务的过程。 This link says 这个连结

SAS/GIS software enables you to do more than simply view your data in its spatial context. SAS / GIS软件使您不仅可以在空间上下文中查看数据,还可以做更多的事情。 It also enables you to interact with the data by selecting features and performing actions that are based on your selections. 它还使您能够通过选择功能并根据选择执行操作来与数据进行交互。

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. 我不知道proc sql是否能够轻松复制这些功能,但是一旦数据进入SAS数据集中,我就不明白为什么您至少不能进行一些基本查询。

SAS also has some examples data and code working with spatial data here . SAS 在这里还有一些示例数据和代码与空间数据一起使用。

The answer seems to be No, SAS doesn't support spatial datatypes and operators like spatialite or postgis. 答案似乎是否定的,SAS不支持空间数据类型,也不支持空间运算符或postgis等运算符。

(I am answering my own question to close the discussion, but thanks to all!) (我正在回答自己的问题以结束讨论,但谢谢大家!)

Actually, when you consider that the SQL queries in Spatialite/PostGIS are just being translated into a specific method of calculation. 实际上,当您考虑将Spatialite / PostGIS中的SQL查询仅转换为一种特定的计算方法时。 It can actually be done. 实际上可以做到的。

So to answer your question, can it be done in SAS in an easy way like spatialite (ie simple queries?), No 因此,要回答您的问题,是否可以在SAS中以诸如spacealite(即简单查询?)之类的简单方式完成,否

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. 但是您可以使用Base SAS编写功能来完成所需的工作,我发现SAS是用于快速数据分析的最佳语言之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM