Geography polygon stored as text performance anomaly
I have database with geography polygons stored as text, for various reasons. I understand that this is not optimal for performance reasons (and this is fine), but it was surprising to me how much...
View ArticleSQL spatial join and STDistance results do not match ArcMap Spatial Join -...
I have two spatial files one point and one polyline both are projected in the same (Albers - meters). I have completed a spatial join using ArcMap (Target file point - Join file - line, match option...
View ArticleHow do you create a buffer of a geometry in SQL Server 2012?
Hello,I am new to SQL Server 2012 and spatial data. I built a geometry object of coordinates from a polygon that I stored in a database. The code is below: DECLARE @digb GEOMETRY; SET @digb =...
View ArticleInsert using Spatial Index fails when called from PHP
I have a stored procedure that inserts into a table with a spatial index on one of its fields.When I run the procedure from SQL Server Management Studio it runs just fine.When I run it from PHP, it...
View ArticleSelect on table with 1800 rows is slow
I have a table with 1800 rows. Each entry has a geometry position and a geometry polygon around the position. I am using the polygon to detect which (other) entries are near the current entry. In the...
View ArticleIs there a way to apply a precise value of how round the STBuffer() applies...
Hello,I am attempting to work on moving my data into SQL Server spatial geography. I have a valid geography and am able to apply a buffer of (150 feet or 0.3048 meters) as shown below. My question is...
View ArticleConvert Polygon to Multipolygon
A vendor we are working with wants shape information provided in WKT but in multipolygon instead of polygon format. I can see examples of going from multipolygon t polygon but not the reverse. Is...
View ArticleSpatio-Temporal
Hi I read about SQL Server "Spatial" and it's facilities. But if SQL Server has "Spatio-Temporal" facilities too? Thanks
View ArticleEsri Shape-File to Geo-Spatial Image Search
Dear AllI am developing a c# desktop application in which user have to provide a Shape-File for geo-spatial image search. I have a back-end database in SQL server 2012 in which I am saving metadata of...
View ArticleSend Shapefile to SQL server 2012
how can i send shapefile to sql server table? i have searched and find a tool ShapetoSQL but I am developing a c# windows application so want an open source solution. ThanksEngr. Mudassar Ali Software...
View ArticleDistance calculation and circle
Hey,I have data Id int, name nchar (40), coordinates geography. I use SQL Server 2012.I want to calculate the distance between any location. I'd like to have a distance in one table that looks like...
View ArticleHow to check a line geometry whether it is inside of another boundary or not
Hello All,I have a question related to SQL Spatial. I have a pipeline geometry which is LineGgLocation and a system boundary which is SysGgLocation. First check I have to do is whether the line...
View ArticleGeometry to Application Data Types
I am not a SQL Database Administror or programmer but work with the GIS data recently added to a SQL Spatial Server.The data had been on an ArcGIS SDE 9.x server which was being used by the ArcGIS...
View ArticleCalling UDF From Cursor
I have a table in which there is a xml data type column for storing xml data. I want to call my function foreach xml data record from a SQL query and when result returned then check intersection of two...
View ArticlePolygon strangeness (seems to cover entire Earth?)
Hi,Firstly let me state I'm not really a spatial guy so the reasoning for my problem might be obvious to a guru.In our SQL Server 2012 DataWarehouse, I am attempting to add geography columns...
View ArticleIterative Query for Spatial Recordrs
HelloI have a xml column in SQL Server 2012 table in which I have xml files that consists of lat/long of a polygone. I have each separate row for each new polygone. The xml format is as...
View ArticleGeography polygon stored as text performance anomaly
I have database with geography polygons stored as text, for various reasons. I understand that this is not optimal for performance reasons (and this is fine), but it was surprising to me how much...
View ArticleSQL spatial join and STDistance results do not match ArcMap Spatial Join -...
I have two spatial files one point and one polyline both are projected in the same (Albers - meters). I have completed a spatial join using ArcMap (Target file point - Join file - line, match option...
View ArticleAnalysis/Visualisation tools that natively support sql server spatial data types
Does anyone know of any analytical tools that will allow me to visualise the spatial data (polygons) held in sql server geometry fields?Something that'll let me add layers based on an sql query.. Just...
View ArticleHow do you create a buffer of a geometry in SQL Server 2012?
Hello,I am new to SQL Server 2012 and spatial data. I built a geometry object of coordinates from a polygon that I stored in a database. The code is below: DECLARE @digb GEOMETRY; SET @digb =...
View Article