﻿<?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: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050</link><description>Manifold Community Site thread</description><image><url>http://forum.manifold.net/forum/images/img-feedhead.png</url><title>Manifold Community Site: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050</link></image><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66051</link><description>&lt;P&gt;I've ran into an issue while testing SQL Server 2008 with Manifold.&lt;/P&gt;&lt;P&gt;It seems that if I import geometry data based on a query into Manifold, the geometry column becomes a binary column.&lt;/P&gt;&lt;P&gt;Here are the steps I took:&lt;/P&gt;&lt;P&gt;1 - Open the Database Console (menu Tools | Database Console)&lt;/P&gt;&lt;P&gt;2 - Connect to a SQL Server 2008 data source&lt;/P&gt;&lt;P&gt;3 - Type a query in the bottom textbox: SELECT * FROM  any table that has a geometry field.&lt;/P&gt;&lt;P&gt;4 - Click on the Import Query icon and close the Database console.&lt;/P&gt;&lt;P&gt;Now if you double click on the imported query in the project pane, you will see that the geometry column is now a binary column.&lt;/P&gt;&lt;P&gt;When I tried the same steps with Oracle11g, the geometry column was imported as a geometry.&lt;/P&gt;&lt;P&gt;Is this a bug?&lt;/P&gt;</description><dc:creator>jenerdba</dc:creator><comments>http://forum.manifold.net/forum/t66050#66051</comments><guid>http://forum.manifold.net/forum/t66050#66051</guid><pubDate>Fri, 06 Jun 2008 08:06:12 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66063</link><description>&lt;P&gt;I think this is expected. I do not have Oracle so can't comment on that, but I believe this is is the way it has always worked. I have 8.0.6.0 (64bit).  The way I import data from SQL 2008 is thru Import-Drawing-Datasource.  Unless I just need a quick bit from the database console then I can import the query (like you do above) and then turn the resultant table (the one with the binary column) into a drawing via import-this project- tabels with geometry column.&lt;/P&gt;</description><dc:creator>csb</dc:creator><comments>http://forum.manifold.net/forum/t66050#66063</comments><guid>http://forum.manifold.net/forum/t66050#66063</guid><pubDate>Fri, 06 Jun 2008 10:02:53 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66064</link><description>&lt;P&gt;If I do import-this project-tables with geometry picking that query, the result drawing is totally wrong.  I get only a little circle.  Definitely a problem.&lt;/P&gt;</description><dc:creator>jenerdba</dc:creator><comments>http://forum.manifold.net/forum/t66050#66064</comments><guid>http://forum.manifold.net/forum/t66050#66064</guid><pubDate>Fri, 06 Jun 2008 10:09:42 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66067</link><description>&lt;P&gt;You are right! I just tested it and it does not work.   I thought I had done this very thing a few months ago.   Sorry.  Import drawing does work for me...&lt;/P&gt;</description><dc:creator>csb</dc:creator><comments>http://forum.manifold.net/forum/t66050#66067</comments><guid>http://forum.manifold.net/forum/t66050#66067</guid><pubDate>Fri, 06 Jun 2008 10:46:20 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66068</link><description>&lt;P&gt;Yes, import drawing always work. &lt;/P&gt;&lt;P&gt;It could well be a problem with the SQL Server 2008 client software, after all it is still a CTP.&lt;/P&gt;</description><dc:creator>jenerdba</dc:creator><comments>http://forum.manifold.net/forum/t66050#66068</comments><guid>http://forum.manifold.net/forum/t66050#66068</guid><pubDate>Fri, 06 Jun 2008 10:54:39 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#66151</link><description>&lt;P&gt;Importing or linking a drawing or a table with geometry values from SQL Server 2008 should always work no matter what. Importing or linking an explicit server-side query (like the one you specify in Database Console) should never work.&lt;/P&gt;&lt;P&gt;There currently are no means to retrieve geometry values (ok, spatial data, since this applies to both GEOMETRY and GEOGRAPHY types) from SQL Server 2008 without going through some sort of a conversion process. Importing or linking a drawing or a table lets Manifold write its own queries which do the conversion. Importing or linking an explicit query forces Manifold to use the query exactly as it is and so unless the query does its own conversion there is no way to get geometry values from the resulting records - and in many cases there is no way to get any records at all because the connection layer (OLE DB) can not deal with geometry values as well.&lt;/P&gt;&lt;P&gt;The situation with Oracle is different in that Oracle provides means to retrieve geometry values via OCI. Because of that importing or linking an explicit query that returns geometry values will still work.&lt;/P&gt;</description><dc:creator>adamw</dc:creator><comments>http://forum.manifold.net/forum/t66050#66151</comments><guid>http://forum.manifold.net/forum/t66050#66151</guid><pubDate>Sat, 07 Jun 2008 04:21:48 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#69970</link><description>&lt;P&gt;ADAMW,&lt;/P&gt;&lt;P&gt;BUT WE DO NEED THIS FOR CREATING AOI (By Query) LINKING TO IMS MAP.&lt;/P&gt;&lt;P&gt;Since current Version of IMS doesn't Support Dynamic AOI for IMS map loading, we need to create query and then link drawing from THIS PROJECT-&amp;gt;TABLE WITH GEOMETRY COLLUMN.   The query can be a dynamic AOI by replacing the select *. while the IMS is being browsing and searching.&lt;/P&gt;&lt;P&gt;Geometry columns of Oracle and postGIS are persisted in query resultant of Manifold and this function can be used. But geometry column of SQL Server is TURNED TO BINARY and linking to TABLE WITH GEOMETRY COLLUMNS can not be used for this purpose. &lt;/P&gt;&lt;P&gt;I have been searching for solution for this problem but I am really sad to read your message from here. Based on your posts, i thought you were from Manifold. This is the end of my searching for the solutions?&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t66050#69970</comments><guid>http://forum.manifold.net/forum/t66050#69970</guid><pubDate>Thu, 21 Aug 2008 15:47:06 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#69985</link><description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;To import geometry data based on a query resulting in a View from MySQL into Manifold I do this:&lt;/P&gt;&lt;P&gt;1. File - Link - Drawing&lt;/P&gt;&lt;P&gt;2. In the data source box confirm the linkage to the database, in your case, to SQL Server&lt;/P&gt;&lt;P&gt;3. In the link drawing box, in TYPE select the TABLE WITH GEOMETRY COLUMN&lt;/P&gt;&lt;P&gt;4. after, in SOURCE select the VIEW that you have created&lt;/P&gt;&lt;P&gt;5. In GEOMETRY TYPE select the correct one&lt;/P&gt;&lt;P&gt;6. In VERSION select the correct column (usually the VERSION or the OID)&lt;/P&gt;&lt;P&gt;7. Click ok&lt;/P&gt;&lt;P&gt;8. Open the drawing and confirm the projection and ... &amp;quot;voil&amp;#225;&amp;quot;&lt;/P&gt;&lt;P&gt;This is the methodology that I use to open geometry data based on a query into Manifold in a relation with MySQL. I can use the Database console to open correctly original drawings but to open geometry data based on a query in MySQL that results in a view, I have to use that methodology.&lt;/P&gt;&lt;P&gt;I hope this helps in your case.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;</description><dc:creator>mapasPT1</dc:creator><comments>http://forum.manifold.net/forum/t66050#69985</comments><guid>http://forum.manifold.net/forum/t66050#69985</guid><pubDate>Fri, 22 Aug 2008 01:25:14 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#69998</link><description>&lt;P&gt;To complet my last message:&lt;/P&gt;&lt;P&gt;I have to do my queries first, inside the MySQL and create a view with the result and link it inside the Manifold like I described, because, in the way you - jenerbda - want, by using a query in the  Database Console, I received a error message. I think it's because with MySQL I have to connect to the databases in a OLE DB Data Source way.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description><dc:creator>mapasPT1</dc:creator><comments>http://forum.manifold.net/forum/t66050#69998</comments><guid>http://forum.manifold.net/forum/t66050#69998</guid><pubDate>Fri, 22 Aug 2008 09:59:30 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#70002</link><description>&lt;P&gt;I now solved this problem by restoring the drawing table to SQL Server with Geometry in Manifold format. The steps are:&lt;/P&gt;&lt;P&gt;1. Import or Link &amp;quot;Drawing1&amp;quot; into Manifold.&lt;/P&gt;&lt;P&gt;2. Create a Query &amp;quot;Query1&amp;quot; with &amp;quot;Select * from [Drawing1 table]&amp;quot;&lt;/P&gt;&lt;P&gt;3. Run Query1, the resultant will include a column &amp;quot;Geom(I)&amp;quot;&lt;/P&gt;&lt;P&gt;4. Export the Query Result as Table to SQL Server. This table will have a column &amp;quot;GeomI&amp;quot;&lt;/P&gt;&lt;P&gt;5. Create Linked Query &amp;quot;Query2&amp;quot; from the Table in SQL Server (Step 4).&lt;/P&gt;&lt;P&gt;6. Link &amp;quot;Drawing2&amp;quot; from &amp;quot;Query2&amp;quot; (Table with Geometry Column, Geometry &amp;quot;GeomI&amp;quot;)&lt;/P&gt;&lt;P&gt;7. Click the Drawing2, Drawing will show as normally.&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t66050#70002</comments><guid>http://forum.manifold.net/forum/t66050#70002</guid><pubDate>Fri, 22 Aug 2008 11:57:21 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#70009</link><description>&lt;P&gt;in Step 4, Export to Access.MDB or SQL Server 2005.&lt;/P&gt;&lt;P&gt;then Import again to SQL Server 2008. (This is to avoid the GeomI in Manifold format being transfered into SQL Server2008 format).&lt;/P&gt;&lt;P&gt;You can also add the GeomI column to your orignal Drawing in SQL Server 2008, then remove the generated table.&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t66050#70009</comments><guid>http://forum.manifold.net/forum/t66050#70009</guid><pubDate>Fri, 22 Aug 2008 14:38:56 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#70011</link><description>&lt;P&gt;another method:&lt;/P&gt;&lt;P&gt;When Exporting the table, Use OLEDB connection instead of SQL Server to export data to SQL Server 2008.&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t66050#70011</comments><guid>http://forum.manifold.net/forum/t66050#70011</guid><pubDate>Fri, 22 Aug 2008 15:56:27 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#70068</link><description>&lt;P&gt;you can do a query in the databse console that directly snap the geometry with this (works in SQLServer2005Express):&lt;/P&gt;&lt;P&gt;SELECT *, [Geometry] from &lt;I&gt;Drawing&lt;/I&gt; WHERE &lt;I&gt;column &lt;/I&gt;= xxx&lt;/P&gt;&lt;P&gt;maybe you need this before:&lt;/P&gt;&lt;P&gt;OPTIONS CoordSys(&amp;quot;&lt;I&gt;Drawing&lt;/I&gt;&amp;quot; AS COMPONENT)&lt;/P&gt;</description><dc:creator>volker</dc:creator><comments>http://forum.manifold.net/forum/t66050#70068</comments><guid>http://forum.manifold.net/forum/t66050#70068</guid><pubDate>Sun, 24 Aug 2008 12:21:14 GMT</pubDate></item><item><title>RE: SQL 2008 and Manifold 8.0.7 - Not importing geometry from table</title><link>http://forum.manifold.net/forum/t66050#70188</link><description>&lt;P&gt;volker,&lt;/P&gt;&lt;P&gt;SQL 2005 have no spatial datatype. The [geomtry] is presented as image. There is no problem in SQL 2005.&lt;/P&gt;&lt;P&gt;In SQL 2008. Geomtry is present as GeometryType. The work around is to convert the GeomtryType to Image Type.&lt;/P&gt;</description><dc:creator>Kenneth</dc:creator><comments>http://forum.manifold.net/forum/t66050#70188</comments><guid>http://forum.manifold.net/forum/t66050#70188</guid><pubDate>Tue, 26 Aug 2008 14:50:18 GMT</pubDate></item></channel></rss>