Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Why Make valid function removes the measure attribute of an geometry ?

$
0
0

Hi folks,

I just want to use the MakeValid() method of MSSQL spatial library.

But the method removes the z and m attributes of the geometry.

Can you please help me to resolve that, i am in need to use makevalid() method with z and m attributes

Example

DECLARE 
@g geometry;

set @g = 'LINESTRING (1 1 null 0, 1 1 null 5, 1 1 null 10, 2 2 null 1, 1 1  null 2, 1 1  null 05,   0.49 0.49  null 20,  1.5 1.6  null 2,  3 3  null 23, 4 4  null 10, 1 1  null 200, 1 1  null 0, 1 1  null 0)';


SELECT @G.MakeValid().ToString();


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>