question

DharmanDave avatar image
DharmanDave asked

How to Scale Geometry Data in SQL Server 2008 r2 ?

I am having Geometry Data type in two different tables, the scale of co-ordinates is different in both the tables. I need to consolidate the data into a single table with the same scale. What is the best way to do it ?
sql-server-2008-r2geometry
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Grant Fritchey avatar image
Grant Fritchey answered
[Here's a function][1] that should do what you you're looking for. [1]: http://www.spatialdbadvisor.com/sql_server_blog/
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DharmanDave avatar image DharmanDave commented ·
Thanks Grant ! The Problem with this is : there's an inbuilt tokenizer function required which returns two values. for sql 2008: the tokenizer function provided on the same site is an older version which returns only the token and not the delimiter. for sql 2012 and Denali: the tokenizer is a proper function but the lead() in built function is not there in 2008 R2.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.