Creates a single Point. This will be a geometry or geography point depending on the class used.
--Explicit constructor DECLARE @gm1 GEOMETRY = GEOMETRY::Point(10,5,0) DECLARE @gg1 GEOGRAPHY = GEOGRAPHY::Point(51.511601,-0.096600,4326) --Implicit constructor (using WKT - Well Known Text) DECLARE @gm1 GEOMETRY = GEOMETRY::STGeomFromText('POINT(5 10)', 0) DECLARE @gg1 GEOGRAPHY= GEOGRAPHY::STGeomFromText('POINT(-0.096600 51.511601)', 4326) --Implicit constructor (using WKB - Well Known Binary) DECLARE @gm1 GEOMETRY = GEOMETRY::STGeomFromWKB(0x010100000000000000000014400000000000002440, 0) DECLARE @gg1 GEOGRAPHY= GEOGRAPHY::STGeomFromWKB(0x01010000005F29CB10C7BAB8BFEACC3D247CC14940, 4326)
Read Articlehttps://develop.horje.com/learn/1434/reference