简体   繁体   English

派生列SSIS中的几何

[英]Geometry in Derived Column SSIS

I have a Spatial file (*.shp) with 30 million records which I am reading using SSIS and has a column POINT(Lat,long). 我有一个空间文件(* .shp),其中包含我正在使用SSIS读取的3000万条记录,并且具有POINT(Lat,long)列。

While reading the file I want to convert this column(POINT) into Geometry using STGeomFromText. 在读取文件时,我想使用STGeomFromText将此列(POINT)转换为Geometry。 I can't use this function in derived column or Script so I have to update the column using the below sql. 我无法在派生列或脚本中使用此功能,因此必须使用以下sql更新列。

Update table
set mygeom_Column = geometry:STGeomFromText(Point,0);

Is there any way I can directly convert the column into geometry while reading? 有什么方法可以在阅读时直接将列转换为几何? Or use some function in Derived column to convert into Geometry? 还是使用“派生”列中的某些函数转换为“几何”?

no as far as i know you can't do that in SSIS. 据我所知,您无法在SSIS中做到这一点。 SSIS is only use to copy large data and it does this very fast. SSIS仅用于复制大数据,并且这样做非常快。 In terms of logics SQL is faster. 在逻辑方面,SQL更快。 So the faster way is to use the update into SQL 所以更快的方法是使用更新到SQL

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

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