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

Create a grid of square cells and find the central lat/long of each

Hi,Currently using sql server 2012.I am looking to query a table of lat/longs to find the greatest number of points in a 200m radius. I believe that using the Geography capabilities in sql I can...

View Article


How to Get the Bounding Rectangle of a Geography

I realise that a geography is not flat, and therefore a bounding rectangle doesn't mean what it says, but I would be happy with being able to find the max and min long and lat of a polygon contained in...

View Article


ReorientObject and EnvelopeAngle not working

Two things.1. The ReorientObject () method seems not working for multi-polygon. Is there any workaround?2. The sample use EnvelopeAngle > 90 to determine if a polygon needs to be Reoriented. But it...

View Article

SQL Server Support for the new Australian GDA2020 Datum

We currently utilise SQL Server 2016 to store and manipulate masses of spatial data for our Local Government entity, and have found that SQL Server 2016 does not recognise the 'new' Australian spatial...

View Article

Add geometry from Autocad Map 3D create a CURVEPOLYGON on SQL Server geometry...

On SQL Server 2017 we want to have only POLYGON geometries in the geometry field.When we add a new geometry to the SQL table with Autocad Map 3D, we find that automatically this new feature is of a...

View Article


upload to database is not working

when i click upload to database button after upload the file and selecting the table it doesnot work.I am using 2017 managment studio and 2017 sql server.

View Article

T-sql spatial query to update a column in a point table where the point...

Hi,I have a two spatial tables in a database called residential - the tables are belowMelbprojects - a point table which contains residential sites and which has a postcode field that I want to update...

View Article

Query

When I try to save a doc on my USB, it suddenly says:  YOU CANNOT SAVE HERE. PLEASE USE ANOTHER LOCATION. How can I put the Saving Mode back to normal?   Thank you

View Article


Efficient use of EnvelopeAggregate

Hi there! I need to compute the bounding box of a large table of polygons. i.e. the aggregate bounding box that encloses all geometries in the table. The polygons are stored in a Geometry column in a...

View Article


Why the STArea() result get a huge figure in square meters?

I have a regular digitized coordinates of a polygon like below 'POLYGON ((-110.94201 31.37911, -110.94175 31.37894, -110.94215 31.37855, -110.94237 31.37874, -110.94201 31.37911))'and want to calculate...

View Article

DB geography type not working

I am facing below error while running this query.select a.LocationID,'B', c.RegionID,getdate()from dbo.LocationBookingSource a innerjoin dbo.RegionLatLongString c on...

View Article

CompoundCurve to LineString

We have several tables on SQL Server with geometry data, but the problem is that objects are saved as CompoundCurve also if they are simple LineString.Is there a method to convert these objects from...

View Article

Is there any way to get the middle point of a line in T-SQL?

Hi guys, I have a problem with getting the middle point of a line by distance. Example I have a linestring with only 2 coordinates start and end. Let it be 6,7km long, the middle of it is 3,35km far...

View Article


Geometry in varbinary

Hi,I have a table with a column name Geometry (datatype varbinary (max)) and it contains geom of certain Area, table also have other columns e.g. Area (values A, B, C), Zone (values 1, 2, 3).Another...

View Article

Convert KML to Simple XML

Greetings All Is there a way to convert KML To simple XML using the XLS Transformation, i noticed that there are different style sheets and not sure which one to use any advice?thank you 

View Article


How to import Shapefile with Shape2SQL or with Safe FME Desktop?

Hi I would like to make an application where I check GeoCoordinates against postal code polygons of the country of Denmark.I have found a file which I hope contains the data I need to import:...

View Article

More geo STDistance questions

I'm working on a simple stored proc to calculate the distance between two points.  Greatly simplified, here is the relevant code and result set.  Obviously I don't understand all I know about SQL...

View Article


Bug - STConvexHull returns non-convex hull

Where do we go to report bugs now that Connect is gone? I have a very complicated geometry that when calling STConvexHull return a non-convex polygon.  STIsValid = 1. STGeometryType = Polygon....

View Article

OLE DB Provider "Stream" for linked server "(null)" returned message...

Hello, I am using a Synonym which calls a Remote procedure inside one procedure. Synonym is defined as Linked ServerODBC connection with Multi Subnet Failover enabled. When i Execute the proc with...

View Article

Spatial Results Tab window not showing up in Microsoft Visual studio(SSDT)

I cannot see the 'spatial results' tab window when i execute the query below.When i run a normal query i can see 2 tabs showing 'results' and 'message' but not the 'spatial results' tab. I am using...

View Article
Browsing all 364 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>