﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Manifold Community Site: MS SQL Coordinate System problem - Projection Problem</title><link>http://forum.manifold.net/forum/t83711</link><description>Manifold Community Site thread</description><image><url>http://forum.manifold.net/forum/images/img-feedhead.png</url><title>Manifold Community Site: MS SQL Coordinate System problem - Projection Problem</title><link>http://forum.manifold.net/forum/t83711</link></image><item><title>RE: MS SQL Coordinate System problem - Projection Problem</title><link>http://forum.manifold.net/forum/t83711#83712</link><description>&lt;P&gt;I have problem when i export data from Manifold to MS SQL Spatial database. I have using my coordinate system definition.&lt;/P&gt;&lt;P&gt;Picture1: Coordinate system which i am using&lt;/P&gt;&lt;P&gt;Picture2: Projection which i have when i try to export to MS SQL Spatial&lt;/P&gt;&lt;P&gt;Picture 3: Version of Manifold i am using&lt;/P&gt;&lt;P&gt;Right projection definition is:&lt;/P&gt;&lt;P&gt;&amp;lt;!--               .ElementLayer { margin:0px; padding:0px 0px 0px 30px; text-indent:-30px }               .CompoundElementTitle { font-style:italic; cursor:hand }               .SimpleElementTitle { font-style:italic }               a:visited { color:blue }               a:hover { color:red }             --&amp;gt;&amp;lt;!--               function OnElementTitleClick()               {                 var eventElement = window.event.srcElement;                 var contentChildNodes = eventElement.parentNode.childNodes;                 if (contentChildNodes.length == 2 &amp;amp;&amp;amp; contentChildNodes[0].tagName == &amp;quot;EM&amp;quot; &amp;amp;&amp;amp; contentChildNodes[1].tagName == &amp;quot;DIV&amp;quot;)                 {                   var contentStyle = window.event.srcElement.parentNode.lastChild.style;                   if (contentStyle != null)                   {                     if (contentStyle.display == &amp;quot;&amp;quot;)                     {                       eventElement.innerText = &amp;quot;+&amp;quot; + eventElement.innerText.substring(1);                       contentStyle.display = &amp;quot;none&amp;quot;;                     }                     else                     {                       eventElement.innerText = &amp;quot;-&amp;quot; + eventElement.innerText.substring(1);                       contentStyle.display = &amp;quot;&amp;quot;;                     }                   }                 }               }                            --&amp;gt;&lt;P&gt;&lt;EM&gt;- Spatial Reference Information: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;- Horizontal Coordinate System Definition: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;- Planar: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;- Map Projection: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;Map Projection Name: &lt;/EM&gt;Transverse  Mercator&lt;/P&gt; &lt;P&gt;&lt;EM&gt;- Transverse Mercator: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;Scale Factor at Central Meridian: &lt;/EM&gt;0.9999&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Longitude of Central Meridian: &lt;/EM&gt;18&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Latitude of Projection Origin: &lt;/EM&gt;0&lt;/P&gt; &lt;P&gt;&lt;EM&gt;False Easting: &lt;/EM&gt;6500000&lt;/P&gt; &lt;P&gt;&lt;EM&gt;False Northing: &lt;/EM&gt;0&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt; &lt;P&gt;&lt;EM&gt;- Planar Coordinate Information: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;Planar Coordinate Encoding Method: &lt;/EM&gt;coordinate pair&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Planar Distance Units: &lt;/EM&gt;meters&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt; &lt;P&gt;&lt;EM&gt;- Geodetic Model: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;Horizontal Datum Name: &lt;/EM&gt;Militar-Geographische  Institut modified&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Ellipsoid Name: &lt;/EM&gt;Bessel, 1841&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Semi-major Axis: &lt;/EM&gt;6377397.155&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Denominator of Flattening Ratio: &lt;/EM&gt;299.152815&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;A HREF='#Top'&gt;Go to Top&lt;/A&gt; &lt;HR&gt; &lt;P&gt;&lt;EM&gt;- Metadata Reference Information: &lt;/EM&gt; &lt;P&gt;&lt;P&gt;&lt;EM&gt;Metadata Date: &lt;/EM&gt;20090530&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Metadata Standard Name: &lt;/EM&gt;FGDC Content  Standards for Digital Geospatial Metadata&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Metadata Standard Version: &lt;/EM&gt;FGDC-STD-001-1998&lt;/P&gt; &lt;P&gt;&lt;EM&gt;Metadata Time Convention: &lt;/EM&gt;local  time&lt;/P&gt;&lt;P&gt;How to have this definition in Manifold and for export to MS SQL Spatial?&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;/P&gt;&lt;p class='file'&gt;Attachments:&lt;br&gt;&lt;a href='http://173.11.122.155/Attachments/00/83712/AssignProjection.jpg'&gt;&lt;img src='images/dwn-http.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;a href='ftp://173.11.122.155/attachments/00/83712/AssignProjection.jpg'&gt;&lt;img src='images/dwn-ftp.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;span&gt;AssignProjection.jpg&lt;/span&gt;&lt;br&gt;&lt;a href='http://173.11.122.155/Attachments/00/83712/ManifoldVersion.jpg'&gt;&lt;img src='images/dwn-http.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;a href='ftp://173.11.122.155/attachments/00/83712/ManifoldVersion.jpg'&gt;&lt;img src='images/dwn-ftp.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;span&gt;ManifoldVersion.jpg&lt;/span&gt;&lt;br&gt;&lt;a href='http://173.11.122.155/Attachments/00/83712/WrongProjection.jpg'&gt;&lt;img src='images/dwn-http.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;a href='ftp://173.11.122.155/attachments/00/83712/WrongProjection.jpg'&gt;&lt;img src='images/dwn-ftp.gif' align='absmiddle'&gt;&lt;/a&gt;&lt;span&gt;WrongProjection.jpg&lt;/span&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator>Domagoj</dc:creator><comments>http://forum.manifold.net/forum/t83711#83712</comments><guid>http://forum.manifold.net/forum/t83711#83712</guid><pubDate>Sat, 30 May 2009 07:44:40 GMT</pubDate></item><item><title>RE: MS SQL Coordinate System problem - Projection Problem</title><link>http://forum.manifold.net/forum/t83711#83742</link><description>&lt;P&gt;I have noticed that Sql Server does have a limited set of spatial reference systems that it supports. If you want to check to see that SQL Server supports the system you are interested in, check the view sys.spatial_reference_systems in SQL Server.  If the correct definition is there, then we can deal with this.  If the definition isn't there, then you will have to reproject the data and store in a different coordinate system.&lt;/P&gt;&lt;P&gt;If the definition is there, but manifold doesn't regonise it, then this is a manifold issue of not correlating it's spatial reference system to srids.  I have noticed that Manifold does not support the entire set of sql server spatial reference systems.  This is a pain, but it can be sorted.  When you export, make sure you don't reproject, and go with whatever projection manifold chooses.  It will be wrong, but that doesn't matter.  Once exported, run an update statement in sql server, updating all srids of the geometries to the srid that you want.  I think the statement is something like&lt;/P&gt;&lt;P class='code'&gt;&lt;span class=c&gt;--SQL&lt;/span&gt;&lt;/P&gt;&lt;P class='code'&gt;&lt;span class=k&gt;update&lt;/span&gt;&amp;#160;dbo.&lt;span class=i&gt;[your&amp;#160;table]&lt;/span&gt;&amp;#160;&lt;span class=k&gt;SET&lt;/span&gt;&amp;#160;&lt;span class=k&gt;geom&lt;/span&gt;.StSrid&amp;#160;=&amp;#160;2567&lt;/P&gt;&lt;P&gt;where 2567 is the desired srid of your data and geom is the geometry column.  Then when you link this in manifold, make sure you set the assign projection to the one you want, same as you have shown above.&lt;/P&gt;&lt;P&gt;When you add new shapes or update existing shapes, then manifold may get set the geometry srid wrong, but this should be able to be corrected by running the update statement I have given above.  You could do this automatically by rolling it in a trigger in the database.&lt;/P&gt;&lt;P&gt;I recall Adam W. commenting that the srid projection stuff was in the pipeline for changing in the (hopefully) upcoming version 9 release.&lt;/P&gt;&lt;P&gt;Another option is to reproject into a standard projection, say maybe lat / long and export this to the database.  The when you link the data back, use projected maps in your desired projection to display the data.&lt;/P&gt;</description><dc:creator>jkelly</dc:creator><comments>http://forum.manifold.net/forum/t83711#83742</comments><guid>http://forum.manifold.net/forum/t83711#83742</guid><pubDate>Sun, 31 May 2009 19:47:14 GMT</pubDate></item><item><title>RE: MS SQL Coordinate System problem - Projection Problem</title><link>http://forum.manifold.net/forum/t83711#86246</link><description>&lt;P&gt;Hi Jkelly,&lt;/P&gt;&lt;P&gt;The sys.spatial_reference_systems in SQL Server is ONLY limited for GEOGRAPHY data type. &lt;/P&gt;&lt;P&gt;When you export data from Manifold to SQL Server, Manifold will only export as GEOMETRY data type in SQL Server. And Geometry data type can accept any coordinate systems.&lt;/P&gt;&lt;P&gt;What the problem you are experiecing is:&lt;/P&gt;&lt;P&gt;Manifold considers ALL UTM projections with datum WGS1984. If you coordinate system datum is not WGS 1984, it will have problem. If you projection datum is WGS 1984, it will be fine. &lt;/P&gt;&lt;P&gt;You problem has been discussed on the forum many times. you can search out the posts.&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t83711#86246</comments><guid>http://forum.manifold.net/forum/t83711#86246</guid><pubDate>Tue, 28 Jul 2009 13:47:26 GMT</pubDate></item></channel></rss>