geometry - SQL server display two different spatial columns at once -
i have 2 tables geometry column each, 1 different districts , 1 bank agencies. im trying display both spatial columns @ once can see in district each of bank agencies are. possible geometry type? right now, can see them in spatial results tab 2 distinct columns, im trying overlap them.
im using sql server 2008 btw.
query example:
select a.geometria, a.nombre, d.geometriad dbo.agenciabancaria join dbo.distrito d on a.iddistrito = d.id d.nombre = 'carmen'
afaik, sql server management studio's spatial results tab can display 1 spatial column @ time.
if want overlap geometries 2 columns, might have create union or intersection in query, , display that; example:
select a.geometria.stintersection(d.geometriad) intersection dbo.agenciabancaria join dbo.distrito d on a.iddistrito = d.id d.nombre = 'carmen' -- above query demonstration purposes; possibly need -- optimization run faster, such fast intersection test in clause.
or graphical example of displaying results of stintersection
, stunion
:
Comments
Post a Comment