SqlGeography.Equals always returns false
Hi,We have a generic code in our C# application which does bunch of comparisions between two databases and Stored Procedures. Recently we are hitting issue with...
View ArticleGeography / Distinctions between Contains, Within, Intersects (and related)
Despite several hours of searching and reading numerous questions and answers on this forum and others, I have been unable to find definitive and complete explanations for the behaviors of several of...
View ArticleSpatialDataTypes accessed remotely (linked server).
We have a database of common data used across many applications. We've recently added spatial datatypes. We are using a linked server so when applications move and servers are replaced we don't break...
View Articleget Spatial image
Dears,I have simple question, i need to get the image that created from spatial result.ex: i need to send mail with the (ex. "PIE" chart) from sql statement... so if you have any idea or suggestion...
View ArticlePolygon not a valid geography instance
I am trying to create and insert data from ESRI shape files. This is one of the many features in the shape file, you can copy paste it and try it yourself:DECLARE @g geography; SET @g =...
View Article1 record per X mile Radius
My table setup. -------------------------- lat (float) lon (float) location (varchar) GeoLocation (geography)The GeoLocation column above is set as: ---------------------------------------- SET...
View ArticleSplit a complex LINESTRING & calculate distance
Hi(using MS SQL 2008 R2)Would it be possible to split a complex LINESTRING at a known intersection point on the linestring & then calculate distance on the half that contain the original starting...
View ArticleGet the bounding box from a DbGeography MULTIPOINT?
Sorry if the question is not 100% related to SQL Server itself. But I thought it matches the topic close enough to post it here.I'm using Entity Framework in my ASP.NET Web API project. While creating...
View ArticleLatitude values must be between -90 and 90 degrees.
Hi All:I was using GEOGRAPHY::STPointFromText and ran into the following problem:A .NET Framework error occurred during execution of user-defined routine or aggregate "geography":...
View ArticleCalculate distance between point and nearest point intersecting an area
Hi,I am trying to find a way to get the distance between the start of a line and the point where that line intersects an area.I am using the geography data type and SQL 2008R2I have found various ways...
View ArticleCombining multiple geography fields from multiple rows into a single...
Hey there! I'm hoping some big-brained person might be able to help point me in the right direction...We have a query that returns multiple records, each record with its own geography data type. What...
View ArticleGeography type SQL Server R2 - Query to populate a new Geography Field with...
I love the idea that a special GEO type will make it easier and faster to find PLACES in my data table that are in a radius of a given lat/long..So I am thinking that a I should be able to write a...
View ArticleLat and Long data from Geography Column
I was provided a table with a geography column. The table name being CTJ with the column name being geoloc. What would my command look like if I wanted to get the latitude and longitude information...
View ArticleGeometry from Oracle 10g into SQL server 2012
I'm building a service(C#) which selects a number of geometries from a system that stores its geometries in an Oracle 10g, and then save a copy of those into a SQL Server database for use by another...
View ArticleI need to find 10 locations that are closest to a users location on a...
I have a webservice that will return currently all address's in the database. That database has[Location]Geography column, a Lat decimal column and a Long decimal column. Along with typical address...
View ArticleSqlGeography.Equals always returns false
Hi,We have a generic code in our C# application which does bunch of comparisions between two databases and Stored Procedures. Recently we are hitting issue with...
View ArticleGeography / Distinctions between Contains, Within, Intersects (and related)
Despite several hours of searching and reading numerous questions and answers on this forum and others, I have been unable to find definitive and complete explanations for the behaviors of several of...
View ArticleSpatialDataTypes accessed remotely (linked server).
We have a database of common data used across many applications. We've recently added spatial datatypes. We are using a linked server so when applications move and servers are replaced we don't break...
View ArticlePolygon not a valid geography instance
I am trying to create and insert data from ESRI shape files. This is one of the many features in the shape file, you can copy paste it and try it yourself:DECLARE @g geography; SET @g =...
View Article