<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connecting Alteryx server to SQL database and losing spatial objects in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/709559#M8165</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1824"&gt;@WKiehn&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might find&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-to-Write-Spatial-Data-to-PostgreSQL/ta-p/677170" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-to-Write-Spatial-Data-to-PostgreSQL/ta-p/677170 &lt;/A&gt;of interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that if you are using PostGIS there will be different steps and there should be shortly an article covering them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 09:59:15 GMT</pubDate>
    <dc:creator>madler_alteryx</dc:creator>
    <dc:date>2021-01-27T09:59:15Z</dc:date>
    <item>
      <title>Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/298869#M2193</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I connected&amp;nbsp; Alteryx Server to a Postgres database and then loaded data from the postgres database via MyGallery into Alteryx Designer. It works but the type of all spatial objects was changed to string. On the other hand it isn't possible to write spatial object into the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I directly connect Alteryx Designer to a Postgres database it works. I can upload and write spatial objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same ODBC driver for connecting Alteryx to the Postgres database and Alteryx Designer and Alteryx Server are on the same machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 07:06:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/298869#M2193</guid>
      <dc:creator>WKiehn</dc:creator>
      <dc:date>2018-09-05T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/299824#M2208</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1824"&gt;@WKiehn&lt;/a&gt;&lt;/P&gt;&lt;P&gt;The Spatial Object actually is a string.&amp;nbsp; For example, I can change SpatialObj to V_String with the Select tool and vice versa.&amp;nbsp; Text should look like this:&lt;BR /&gt;{ "type": "Point", "coordinates": [&amp;nbsp; -80.844401, 35.273093 ] }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as your issue with not being able to write spatial objects with Alteryx Server, my first thought is something permissions related.&amp;nbsp; I'm not experienced in Postgres but maybe there are some log files to review?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:06:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/299824#M2208</guid>
      <dc:creator>David-Carnes</dc:creator>
      <dc:date>2018-09-07T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/301562#M2242</link>
      <description>&lt;P&gt;Thank you for your support, David. We use the select tool to export spatial object as WKT or geojson.&lt;/P&gt;&lt;P&gt;Another software should have access to the SQL database, too and it needs spatial objects therefore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the select tool is a good idea for building a workaround. Changing spatial object into WKT, write it into the SQL database and write a "Post create&amp;nbsp; SQL statement" to change WKT in spatial objects in the database. If it works, it would help for the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First we checked permissions. They are okay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 11:07:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/301562#M2242</guid>
      <dc:creator>WKiehn</dc:creator>
      <dc:date>2018-09-13T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/708040#M8137</link>
      <description>&lt;P&gt;Solution for the first problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to convert the geometries to geojson in the Postgresql-Database. In Alteryx you can then use the Input Data tool and the Select tool to convert the column to the Alteryx Spatial format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 21:48:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/708040#M8137</guid>
      <dc:creator>jm99</dc:creator>
      <dc:date>2021-01-22T21:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/709559#M8165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1824"&gt;@WKiehn&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might find&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-to-Write-Spatial-Data-to-PostgreSQL/ta-p/677170" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-to-Write-Spatial-Data-to-PostgreSQL/ta-p/677170 &lt;/A&gt;of interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that if you are using PostGIS there will be different steps and there should be shortly an article covering them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 09:59:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/709559#M8165</guid>
      <dc:creator>madler_alteryx</dc:creator>
      <dc:date>2021-01-27T09:59:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/709701#M8169</link>
      <description>&lt;P&gt;To upload geodata via Alteryx server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Alteryx I would convert the geoformat to V-String (= geojson) and use Post Create SQL statement in the Postgresql to convert it to the PG geofomat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Post Create SQL statements&amp;nbsp;&lt;/SPAN&gt;points:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT AddGeometryColumn ('public','table_name','geom',4326,'POINT',2);&lt;BR /&gt;update table_name set geom = ST_GeomFromGeoJSON(geojson);&lt;BR /&gt;ALTER TABLE table_name DROP COLUMN geojson;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in some cases it is necessary to adjust the connect_string of the Postgresql connection in the server - parameter MaxLongVarcharsize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 16:01:27 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/709701#M8169</guid>
      <dc:creator>jm99</dc:creator>
      <dc:date>2021-01-27T16:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Alteryx server to SQL database and losing spatial objects</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/785767#M9087</link>
      <description>&lt;P&gt;Is this solution required even if Alteryx Designer can read the data as spatial data automatically, as described in the initial post?&lt;BR /&gt;&lt;BR /&gt;We have the same issue here where when Designer connects directly it reads it in as spatial data, whereas Designer using the same connection through the Gallery instead reads the data as peculiar looking strings.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:35:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Connecting-Alteryx-server-to-SQL-database-and-losing-spatial/m-p/785767#M9087</guid>
      <dc:creator>JonathanAllenby</dc:creator>
      <dc:date>2021-07-13T13:35:48Z</dc:date>
    </item>
  </channel>
</rss>

