Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dr Greg Low Working with SQL Server Spatial Data DAT33 3.

Similar presentations


Presentation on theme: "Dr Greg Low Working with SQL Server Spatial Data DAT33 3."— Presentation transcript:

1

2 Dr Greg Low (greg@greglow.com) Working with SQL Server Spatial Data DAT33 3

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25 SELECT GEOMETRY::STGeomFromText ('POLYGON ((10 10, 10 20, 20 10, 10 10))',0);

26

27

28

29

30

31 CREATE TABLE CustomerLocations ( CustomerID INT PRIMARY KEY, Latitude FLOAT, Longitude FLOAT, Location AS GEOGRAPHY::Point(Latitude,Longitude,4326) PERSISTED );

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48 CREATE SPATIAL INDEX IX_Shapes_Shape ON Shapes(Shape) USING GEOMETRY_GRID WITH (BOUNDING_BOX=(0,0,512,512), GRIDS =(LOW,LOW,LOW,LOW), CELLS_PER_OBJECT = 32);

49

50

51

52

53

54

55 Continue your Ignite learning path Visit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/ Head to the TechNet Eval Centre to download trials of the latest Microsoft products http://Microsoft.com/en-us/evalcenter/

56


Download ppt "Dr Greg Low Working with SQL Server Spatial Data DAT33 3."

Similar presentations


Ads by Google