SQL2008 Spatial data types--Euclidean geometry 2 classes and methods

Source: Internet
Author: User

In the previous blog, I said that geometric data types (dots, the definition of lines, faces, and sets), since geometric data types are extended through the CLR, learning C # knows that there are attributes and methods under an object, and the geometry data types have their properties and methods. The following diagram reflects the class relationships of these geometric objects.

Because I myself to C # more familiar (in fact, other languages are not how to do), here I follow the C # way to say.

The first thing to do is function. Functions are divided into several: constructors, static functions, and functions under instances.

2.1 First say constructor:

There are several constructors for constructing geometry objects and their following child objects: By being familiar with text wkt constructs, by knowing binary WKB constructs and through GML constructs. The following statement constructs a geometry object by wkt.

DECLARE @g geometry;

SET @g = Geometry::stgeomfromtext (' point (1 2) ', 0);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.