Not able to import shape file in sql 2012
I am working with spatial data type in sqlserver 2012 64 bit on windows server 2008 R2.I am trying to load .shp files with shapetool loader in my database but giving error of dllnotfoundexception...
View ArticleView spatial data in SQL Server 2014
Hi,This is my first attempt to use SQL Server to query/view a spatial data. I've uploaded an ESRI multiple-polygon shapefile to my database in SQL Server 2014 using an open source tool, "Shape2Sql"....
View ArticleDoes SQL Server Spatial support annotation\text objects?
Folks,I'm looking for an informed confirmation or denial of SQL's ability to store text objects as geometry types.The context is the storage of AutoCAD data in SQL. CAD objects such as lines polygons...
View ArticleList of points in a polgygon
HiWe have a requirement to work out all the properties that live within a polygon.The data is held as follows:a) A list of (100,000+) properties in a table with the following attributes - Property_ID,...
View ArticleFind the locations near me via SSRS
Sorry this might not have complete details.. looking for some ideas to achieve this..Enter the address: 139 Cooks Street postal code 23456 Button : Find PlacesShould return me the Restaurants near me...
View ArticleList of points in a polygon
HiWe have a requirement to work out all the properties that live within a polygon.The data is held as follows:a) A list of (100,000+) properties in a table with the following attributes - Property_ID,...
View ArticleHow to STUnion Multiple Geographies
I have a table of polygons and I'd like to union some of them. The eventual aim is to get the envelope (that bit I can do).Intuitively, I'm thinking of a recursive CTE, but it's not obvious to me how...
View ArticleSTIntersection() throws COMException: Error HRESULT E_FAIL
Hi,I have two geometries, when i try to get STIntersection from these two geometries, sql server return output of Exception.Msg 6522, Level 16, State 1, Line 6 A .NET Framework error occurred during...
View ArticleGeography Data - How to add a new SRID
Hi all Geo Experts,am I newbie to SQL Server spatial data processing an I have side by side questions:I would like to add a new SRID/EPSG definition to SQL Server. I have the EPSG definition which look...
View Articleneed check lat and lon with polygon
i have geomaster table with geo boundry column defined as follow format of data, stored as varchar valueSRID=4326;POLYGON((-79.6919040913008 43.5905928537878 0,-79.6918978370142 43.5905700000015...
View ArticleWhat exactly does MakeValid do?
The documentation of MakeValid is not very thorough. For non-simple polygons does MakeValid follow the odd-even rule or the non-zero winding rule? An explanation of approach similar to the detail...
View ArticleCan I use [table].STIntersects to find customers from Spatial Data?
I Created a geometry field in a table to hold my Business regions: Grids and inserted a Polygon.INSERTINTOGridsVALUES(1,'Palmer','POLYGON ((-105.086 39.184, -104.726 39.184, -104.726 39.046, -104.900...
View ArticleCreate polygons in view on GPS-logging results table
In SQL Server 2008 i've got a Results-table in which GPS-logging results are stored. I want to make a view on that table which contains polygons. Some remarks:The column 'ScanID' contains the order of...
View ArticleSTIntersects returning only Contained areas
While <g class="gr_ gr_10 gr-alert gr_tiny gr_spell gr_run_anim ContextualSpelling multiReplace" data-gr-id="10" id="10">i</g> do STIntersects on 2 geometry objects, it gives out result...
View ArticleSpatial and alwayson
Hello,Is there any problem in implemnting Always ON on database contains spatial objects?We have database with a lot of gemoemtry and geography objects and there is loss of conections to the second...
View Articlegeom.Reduce(0.01) returns exception
Whenever i am trying to execute my query which as "geom.Reduce(0.01)" returns following exception:A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":...
View ArticleFind Lat, Long values given STdistance and a point value
DECLARE @pointA geography; DECLARE @pointB geography; SET @pointA = geography::Parse('POINT('+ CAST(119.93289251 AS VARCHAR) +' '+ CAST(-22.44282786 AS VARCHAR) +')') ; SET @pointB =...
View ArticleI want to nest an STBuffer within an STIntersect
I cannot seem to get the code right to perform an intersect on a buffer. I can create the Buffer as a view and then intersect on that, but I want only one view.Here is the Buffer code simplified to one...
View Article3d Support in geography and geometry
Hi AllAny news on what is going on with true support for 3d in the geography and geometry types. I know that we can define a z coordinates, but what about 3d library functions like 3d intersect or...
View ArticleWeird results with STBuffer and small negative distance (SQL 2012 and SQL 2016)
Hi there,We've come up with some weird results with trimming a shape with STBuffer and I'm wondering if anyone has any thoughts on it.With 2008 we can add a buffer around a geometry and then remove it...
View Article