tsql - SQL Server 2005 Point In Polygon -
I have polygon structure in a sql2005 db described below.
create table [dbo]. [Polygon] [[polygon] [int] identification (1,1) no null, [polygonname] [virar] (255) no tap, [polygon collar] [warar] (7) tap, [polygonrul id] [intel] Make [DBO] [Polyline] ([lineid] [int] identification (1,1) No tap, [line x1] [float] no tap, [line1] [float] no tap, [line x2] [ Float] no null, [line 2] [float] no tap, [polygone id] [intnot tap] I now retrieve the whole line for application and all Public Static Bull Point Infolagon (Float Point X, Float Point, Polylineclollection Polygon) {int nvert = polygon.Count (); Int i, j = For 0; Bool c = false; (i = 0, j = nvert-1; i But I need to move this function to SQL Server. But there are no native spatial functions in SQL 2005 and I do not want to use any of the extra spatial functionality libraries. How can I close this function to T-SQL? :) Or is anyone different solution for PointInPolygon? Thanks
SQL Server 2005 allows you to write native functions for SLR That can execute server side. You can read the MSDN introduction to allow it to be implemented as an additional to SQL Server and run on NetCat Speed.
Comments
Post a Comment