在上篇笔记https://blog.csdn.net/shijie_nihao/article/details/100148559里,记录了ArcMap创建企业地理数据、连接数据库、
往里存数据,这篇笔记就记录下怎么使用“ST函数”和ST_Geometry数据类型。
Esri的帮助文档里详细记录了ST函数和ST_Geometry,有时会打开得很慢,在这里记录下个人使用过的ST函数。
http://desktop.arcgis.com/zh-cn/arcmap/latest/manage-data/using-sql-with-gdbs/a-quick-tour-of-sql-functions-used-with-st-geometry.htm
假如已经往Oracle里面道路的ArcMap里的空间数据,“ArcMap数据”的shape属性就可以当做ST_Geometry类型。
1、统计长度
st_length,select sde.st_length(shape) from tableName
2、统计面积
st_area,select sde.st_area(shape) from tableName
。。。。。。
ST函数和数据库里的一般函数结合使用,可以节省很多工作。。。