Wednesday, 12 September 2018

coordinate system - Is it possible to reproject spatial data using SQL Server?


SQL Server takes an SRID when creating spatial data, but is it possible to retrieve with a different SRID translating the coordinates?


For example, let's say I have a bunch of spatial polygons using SRID 4258, but I'd like to use alongside some pre-existing data that has an SRID of 4326 -- are there built in conversions, or do I have to handle this conversion myself?


The SQL-MM method, which PostGIS implements is ST_Transform. How do I do that in SQL Server?



Answer



No.



Transform - ability to transform from one spatial ref to another: No - need 3rd-party tools, Geometry can use any SRID between 0 and 999999. Spatial Tools free CLR add-on does provide limited transform support.




Source: http://www.bostongis.com/PrinterFriendly.aspx?content_name=sqlserver2008r2_oracle11gr2_postgis15_compare


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...