Quantcast
Channel: SQL Server Spatial forum
Viewing all articles
Browse latest Browse all 364

create a polygon via SQL

$
0
0

I have an existing spatial/polygon table in my database. I want to join it to a view and load the join into a new spatial enabled polygon table. In case you are wondering the join is very slow. I am new to SQL Server spatial and cant find anything describing how to do this. Ultimately I will use SSIS to perform these steps for me. I have been able to do this with point data but not polygon. The existing polygon coordinates are in a Shape field and will load into another field of the same name. Here is the query I have built so far:

select name, geography::Polygon(Shape, 4326) as Shape
FROM View as c inner join ExistingPolygonTable as v
on C.Name = v.Name

Thanks in advance.


Scott


Viewing all articles
Browse latest Browse all 364

Trending Articles



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