Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
QuestionConversion of object to dataset Pin
Santhosh Raj5-Sep-08 3:01
Santhosh Raj5-Sep-08 3:01 
AnswerRe: Conversion of object to dataset Pin
#realJSOP5-Sep-08 3:17
mve#realJSOP5-Sep-08 3:17 
GeneralRe: Conversion of object to dataset Pin
Santhosh Raj5-Sep-08 18:57
Santhosh Raj5-Sep-08 18:57 
GeneralRe: Conversion of object to dataset Pin
#realJSOP6-Sep-08 2:12
mve#realJSOP6-Sep-08 2:12 
QuestionGPS polygon and calculate of gps position is inside the polygon Pin
rnvrnv5-Sep-08 2:59
rnvrnv5-Sep-08 2:59 
AnswerRe: GPS polygon and calculate of gps position is inside the polygon Pin
DaveyM695-Sep-08 4:00
professionalDaveyM695-Sep-08 4:00 
AnswerRe: GPS polygon and calculate of gps position is inside the polygon Pin
Simon P Stevens5-Sep-08 4:09
Simon P Stevens5-Sep-08 4:09 
AnswerRe: GPS polygon and calculate of gps position is inside the polygon Pin
Colin Angus Mackay5-Sep-08 5:44
Colin Angus Mackay5-Sep-08 5:44 
Look for the SQL Server 2008 Feature Pack - It contains a bunch of assemblies so you can use the new types in your .NET application (you don't need SQL Server to use the assemblies). Find the new SqlGeography object, create a polygon with it (It is OGC Standards compliant) and then perform an STIntersects with another SqlGeometry that represents your GPS point. It will tell you if your point is in the polygon or not. It also takes into account the curvature of the earth.

Something like this:
SqlGeometry polygon = SqlGeometry.STGeomFromText("POLYGON(( <polygon definition here> ))");
SqlGeometry point = SqlGeometry.STGeomFromTest("POINT( <point definition here> )");
if (polygon.STIntersects(point))
{
    // Point in polygon
}
else
{
    // Point NOT in polygon
}



Questiondrag and drop Pin
aiswaryasekhar5-Sep-08 1:48
aiswaryasekhar5-Sep-08 1:48 
AnswerRe: drag and drop Pin
Thomas Stockwell5-Sep-08 3:29
professionalThomas Stockwell5-Sep-08 3:29 
QuestionDelete all rows from datagridview Pin
NewToAspDotNet5-Sep-08 1:40
NewToAspDotNet5-Sep-08 1:40 
AnswerRe: Delete all rows from datagridview Pin
C1AllenS5-Sep-08 4:06
C1AllenS5-Sep-08 4:06 
GeneralRe: Delete all rows from datagridview Pin
NewToAspDotNet5-Sep-08 4:21
NewToAspDotNet5-Sep-08 4:21 
Questionnunit-console doesnt stop after test summary output Pin
buchstaben5-Sep-08 1:37
buchstaben5-Sep-08 1:37 
GeneralRe: nunit-console doesnt stop after test summary output Pin
buchstaben5-Sep-08 2:55
buchstaben5-Sep-08 2:55 
QuestionPlease help me.. Pin
vinay_K5-Sep-08 1:35
vinay_K5-Sep-08 1:35 
AnswerRe: Please help me.. Pin
Ashfield5-Sep-08 1:41
Ashfield5-Sep-08 1:41 
GeneralRe: Please help me.. Pin
vinay_K5-Sep-08 1:50
vinay_K5-Sep-08 1:50 
AnswerRe: Please help me.. Pin
Guffa5-Sep-08 1:48
Guffa5-Sep-08 1:48 
GeneralRe: Please help me.. Pin
vinay_K5-Sep-08 1:53
vinay_K5-Sep-08 1:53 
GeneralRe: Please help me.. Pin
Mbah Dhaim5-Sep-08 3:48
Mbah Dhaim5-Sep-08 3:48 
QuestionCan't open section of a Word Document Pin
pcjd635-Sep-08 1:20
pcjd635-Sep-08 1:20 
AnswerRe: Can't open section of a Word Document Pin
Ashfield5-Sep-08 1:37
Ashfield5-Sep-08 1:37 
GeneralRe: Can't open section of a Word Document Pin
pcjd635-Sep-08 1:58
pcjd635-Sep-08 1:58 
QuestionHow genrate a help file using HTML HELP WorkShop Pin
Amit Battan Ror5-Sep-08 1:15
Amit Battan Ror5-Sep-08 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.