Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9010343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:25:52+00:00 2026-06-16T02:25:52+00:00

Is there any way I can define a 3D solid within SQL Server using

  • 0

Is there any way I can define a 3D solid within SQL Server using the spatial data type?

If so, can I see an example of how this would be done? say, just a 1x1x1 simple cube?
Would I have to define 6 polygons (1 for each face of the cube) and use those together somehow?

Everything I have read online tends to show examples purely with 2D shapes. I do know the Point type can handle X,Y,Z (and M) – So spatial 3D is possible, but I am finding it hard to get good examples. Especially of polygons / solids.

I guess if this is possible, it leads onto my next question: I would love to use some of the spatial methods that are available: STIntersection(), STContains() etc. Against these 3D objects. And because we are in 3D, a STVolume() function would be fantastic! But that is something I would have to roll myself I guess.

Perhaps there is a library full of SQL CLR Types and Spatial Extension methods that I am in need of?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:25:53+00:00Added an answer on June 16, 2026 at 2:25 am

    3D spatial objects have been requested (on Connect: Provide support for 3D Geo-Spatial Data) as far back as 2008.

    As you mentioned, it is possible to utilise X,Y,Z and M to represent points with elevation, but there is no direct support for manipulating 3D objects yet.

    The following example creates a Point instance with Z (elevation) and
    M (measure) values and uses Z to fetch the Z value of the instance.

    DECLARE @g geometry;
    SET @g = geometry::STGeomFromText('POINT(1 2 3 4)', 0);
    SELECT @g.Z;
    

    Ref.

    There was no mention of this or other 3D features in New Spatial Features in SQL Server 2012

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can define how a DateTime should be serialized/deserialized using
Is there any way to define a variable that can be used in multiple
Is there any way we can fetch X509 Public Cetrificates using c# from AD
Given that one can define a class in VB Script, is there any way
Is there any way by which I can define functions my_list , my_cons ,
Is there any way that I can define a destructor for an object in
Is there any way can declare a bean in just like JSP UseBean in
Is there any way I can set a formatter on models that will convert
Is there any way I can use JPA or hibernate annotations to specify the
Is there any way I can do Select TableName.SomeColumn As SomeAlias FROM TableName In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.