•Use the new geography data type to store geodetic spatial data and perform operations on it
•Use the new geometry data type to store planar spatial data and perform operations on it
•Take advantage of new spatial indexes for high performance queries
•Use the new spatial results tab to quickly and easily view spatial query results directly from within Management Studio
•Extend spatial data capabilities by building or integrating location-enabled applications through support for spatial standards and specifications
DECLARE @g GEOMETRY
SET @g = 'LINESTRING ( 69 26, 69 23, 69 21, 67 20, 65 20,
63 18, 58 17, 52 17, 51 17, 49 17, 45 18, 44 20,
44 21, 42 26, 42 29, 42 32, 42 35, 43 35, 47 38,
50 41, 55 42, 58 42, 65 44, 66 44, 67 44, 68 45,
69 47, 70 48, 70 50, 71 51, 70 56, 68 60, 68 63,
66 65, 65 66, 63 68, 60 71, 59 71, 57 71, 55 71,
51 69, 45 65, 44 63, 42 62, 41 59, 41 57, 41 56,
41 54, 42 53 ,67 77 ,44 88)'
insert into location values(2,'renju',null,@g);
declare @p geometry
set @p= 'POLYGON ((30 30, 40 30, 40 40, 30 40, 30 30))'
insert into location values(3,'renju2',null,@p);
http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx
0 comments:
Post a Comment