Quantcast
Channel: SQL Server Spatial forum
Browsing all 364 articles
Browse latest View live

Exporting table containing GEOGRAPHY data type using SSMS in SQL Server 2008

Has there been an updates / work arounds to the problem of not being able to Import/Export tables containing the geog or geom data types using the wizzard? Thanks.

View Article


Spatial Index doesn't work with OR operator in where clause

I am using SQL geometric types. I have a query which works fine if I have one polygon or multiple polygon with AND operator. Doesn't work and gives me the error if I have multiple Polygon with OR...

View Article


SQL2012 Merge Polygons and optimize result

I have two adjacent polygons (simple squares of identical size) stored in GEOGRAPHY and wish to merge themWhen I use UnionAggregate I get what looks like a proper result (a rectangle) but STNUMPoints...

View Article

Find the distance between two locations - Stored Procedure

I am creating a stored procedure that returns the distance between two locations.I am getting the latitude and longitude from the user, as well as the distance(5,10,15,or 20 miles. I cannot figure out...

View Article

Is it possible to create SSRS Maps by passing Spaital Data using XML?

Can Anyone please help that how do we pass spatial data type [i.e. polygon (strored in Db table as Datatype geometry) ] in XML and configure this xml as datasource for generate ssrs maps on the...

View Article


How to create a LineString or Polygon from Points?

 I have several geography Points.  What's the best way to create a LineString or Polygon out of them?  It seems like there should be a MultiPoint.ToLineString() or MultiPoint.ToPolygon methods.  I've...

View Article

Nearest Neighbor spatial index hint not working...

Hi,Long time reader, first time poster.  Thanks for all the great advice/solutions.I'm trying to implement a nearest neighbor query posted by Alistair Aitchison here:...

View Article

SQL 2K8R2: Any performance hints for bulk loading data from spatial/GIS db...

I need to denormalise a number of GIS tables to materialise spatial hierarchies for use in a data warehouse but the performance is killing me.for example.I have a table with 500,000 points as a...

View Article


STIntersects with different results in SQL Server 2008 and 2012

In the SQL reference the following example is given:DECLARE @g geometry; DECLARE @h geometry; SET @g = geometry::STGeomFromText('LINESTRING(0 2, 2 0, 4 2)', 0); SET @h =...

View Article


SQL Server Spatial Training Courses

Does anyone know if there are training courses available that cover the following topics:Introduction to SQL Server Spatial. How to anaylse spatial data through spatial queries (including how to create...

View Article

How to interpret the alpha-numeric string in a geography field?

Hello,Can someone tell me how to interpret the alpha numeric string that appears in my geography field. I know it contains lat, long and elevation data but, I am not sure how to interpret the string....

View Article

I 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 Article

Dynamic SQL, Spatial Intersects, Stored Proc - 1st run - slow; Next runs -...

dear Readers,thankyou for taking the time to read this post.   i had to write a stored procedure where names of tables, (non-spatial) column names to be compared and resulting intersecting acres are...

View Article


SSRS Maps are not reload in IE while it's work perfect in google chrome......

Dear All,I have developed one GIS based rdl using sql geometry for generating maps.this report having both the features like drilldown & selection based.but when we browse this report in IE the Map...

View Article

how do we match geometry column value from two tables? Error Shows Invalid...

Dear All,Let me know that how do we match that Record Exists or not Exists based upon geometry coloumn value between two tables becauseif i am writing Query like----SELECT geom from Table1 Where EXISTS...

View Article


sql server spatial beginner, using ST functions

i am new to sql server. as an exercise, i have a shapefile which i loaded in sql server. it is an administrative boundary polygon named brgy (loaded into sde.dbo). i would like to try perform a simple...

View Article

Combining 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 Article


Geography 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 Article

Lat 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 Article

Geometry 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 Article
Browsing all 364 articles
Browse latest View live


Latest Images