Select to view content in your preferred language

Efficiently create Polyline

1905
2
07-21-2010 08:26 AM
deleted-user-pYdfRjvSAbTJ
Deactivated User
Hello,
I have a huge SQL Server table with 210 millions of rows (yes... millions, 10 GB of disk space): recorded GPS positions with lat/lon.
every row as a foreign key that refers to a field track (425.000 tracks), so every track has thousands of GPS points that defines its geometry (a polyline).
I have to import all this data in a geodatabase file with a procedure in ArcGIS Desktop.
the real problem that is very time consuming is the Polyline creation starting from a List of double pair (lat and lon).
I found only a way: create a PolylineClass, cast it to IPointCollection, then, for every lat/lon pair, create a PointClass and adding it to the IPointCollection.
computation time in this way is literally dramatic.
Is there a way to efficiently create a Polyline starting from a huge number of double pairs?
0 Kudos
2 Replies
KirkKuykendall
Deactivated User
Maybe try IGeometryBridge2.InsertPoints (or AddWKSPoints).
0 Kudos
deleted-user-pYdfRjvSAbTJ
Deactivated User
Thanks for your advice on IGeometryBridge2, I dind't use the method you suggested: I found more efficient IGeometryBridge2.SetWKSPoints: the performance boost was awesome
0 Kudos