<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Forgot to include the mailing-list - sorry.</p>
<p>-------- Original Message --------</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Subject:</th>
<td>RE: [Qgis-user] QGIS DB Manager geometry columns issue with PostGIS 2.0</td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Date:</th>
<td>2016-02-08 15:32</td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">From:</th>
<td>"Neumann, Andreas" <a.neumann@carto.net></td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">To:</th>
<td>Chris Buckmaster <chris.buckmaster@runnymede.gov.uk></td>
</tr>
</tbody>
</table>
<p> </p>
<!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hi Chris,</p>
<p>Ah yes - sorry. Forgot about that.</p>
<p>Here are the instructions:</p>
<p>In FME, if you add a writer for a Postgis database have a look into the "Parameters" dialogue. In there you find a checkbox labeled "Create Generic Spatial Columns". --> make sure you uncheck this checkbox.</p>
<p>Then if you add a new Feature type you will find a drop-down box in the "General" tab labeled with "Geometry". There you can select the geometry type, such as "postgis_point" or "postgis_linestring".</p>
<p>Can you please let me know if this works for you?</p>
<p>Andreas</p>
<p>On 2016-02-08 15:24, Chris Buckmaster wrote:</p>
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;"><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 -->
<div class="WordSection1">
<p class="MsoNormal"><span style="color: #1f497d;">Hi Andreas<!-- node type 8 --></span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><!-- node type 8 --> </span></p>
<p class="MsoNormal"><span style="color: #1f497d;">I have tried to find where I can do this in FME but still seem unable to – if it isn't too much work are you able to point me in the right direction please?<!-- node type 8 --></span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><!-- node type 8 --> </span></p>
<p class="MsoNormal"><span style="color: #1f497d;">Thank you, Chris<!-- node type 8 --></span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><!-- node type 8 --> </span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><!-- node type 8 --> </span></p>
<div>
<div style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="MsoNormal"><strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif'; color: windowtext; mso-fareast-language: EN-GB;">From:</span></strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif'; color: windowtext; mso-fareast-language: EN-GB;"> Andreas Neumann [mailto:a.neumann@carto.net] <br /><strong>Sent:</strong> 05 February 2016 16:21<br /><strong>To:</strong> Chris Buckmaster; qgis-user@lists.osgeo.org<br /><strong>Subject:</strong> Re: [Qgis-user] QGIS DB Manager geometry columns issue with PostGIS 2.0<!-- node type 8 --></span></p>
</div>
</div>
<p class="MsoNormal"><!-- node type 8 --> </p>
<p class="MsoNormal" style="margin-bottom: 12.0pt;">Hi Chris,<br /><br /> This explains it.<br /><br /> You need to define as "geometry(WKBTYPE,srid)", e.g. "geometry(POLYGON,21781)" for QGIS. FME has an option to do that. I just don't have at hand. I could send you instructions on Monday, if you want.<br /><br /> Andreas<!-- node type 8 --></p>
<div>
<p class="MsoNormal">On 05.02.2016 17:11, Chris Buckmaster wrote:<!-- node type 8 --></p>
</div>
<blockquote style="margin-top: 5.0pt; margin-bottom: 5.0pt;">
<p class="MsoNormal"><span style="color: #1f497d;">Hi Andreas</span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;"> </span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;">Yes it does exist in the geometry column view but the type is listed as GEOMETRY.</span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;"> </span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;">This table is being created from a non-spatial SQL Server table, and we use a vertex creator transformer in FME to create the spatial table – we cannot seem to explicitly specify the geometry that the spatial table should be as it is not a spatial layer when imported?</span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;"> </span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;">Chris</span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;"> </span><!-- node type 8 --></p>
<p class="MsoNormal"><span style="color: #1f497d;"> </span><!-- node type 8 --></p>
<div>
<div style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="MsoNormal"><strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif'; color: windowtext; mso-fareast-language: EN-GB;">From:</span></strong><span style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif'; color: windowtext; mso-fareast-language: EN-GB;"> Qgis-user [<a href="mailto:qgis-user-bounces@lists.osgeo.org">mailto:qgis-user-bounces@lists.osgeo.org</a>] <strong>On Behalf Of </strong>Andreas Neumann<br /><strong>Sent:</strong> 05 February 2016 12:43<br /><strong>To:</strong> <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br /><strong>Subject:</strong> Re: [Qgis-user] QGIS DB Manager geometry columns issue with PostGIS 2.0</span><!-- node type 8 --></p>
</div>
</div>
<p class="MsoNormal"> <!-- node type 8 --></p>
<p class="MsoNormal" style="margin-bottom: 12.0pt;">Hi Chris,<br /><br /> That's true - starting from Postgis 2.0, geometry_columns is a view in the public schema.<br /><br /> Did you check if that view exists and if the view contains an entry for your spatial table?<br /><br /> Also make sure, when importing from FME, that you restrict your geometry type to either POINT, POLYGON, LINESTRING, COMPOUNDCURVE or the MULTI versions. QGIS likes a single geometry type per table, while Postgis would permit to store mixed geometry types in the same geometry column.<br /><br /> Maybe you did not specify this geometry type restriction when importing your data with FME.<br /><br /> Andreas<!-- node type 8 --></p>
<div>
<p class="MsoNormal">On 05.02.2016 13:33, Chris Buckmaster wrote:<!-- node type 8 --></p>
</div>
<blockquote style="margin-top: 5.0pt; margin-bottom: 5.0pt;">
<p class="MsoNormal">Hi<!-- node type 8 --></p>
<p class="MsoNormal"> <!-- node type 8 --></p>
<p class="MsoNormal">I have been using FME to load some data into PostGIS and view it in QGIS 2.12.3.<!-- node type 8 --></p>
<p class="MsoNormal"> <!-- node type 8 --></p>
<p class="MsoNormal">I am finding that when accessing the data in DB Manager, I get a warning that says 'There is no entry in geometry_columns!'.<!-- node type 8 --></p>
<p class="MsoNormal"> <!-- node type 8 --></p>
<p class="MsoNormal">On asking another user they mentioned that the geometry columns table was removed in PostGIS 2.0, so my question is, is this a known issue / bug within QGIS, or is it the way in which I am storing my data? Just wondering if this will be looked at in future QGIS versions.<!-- node type 8 --></p>
<p class="MsoNormal"> <!-- node type 8 --></p>
<p class="MsoNormal">Thanks, Chris<!-- node type 8 --></p>
<p class="MsoNormal"><span style="font-size: 12.0pt;"><br /><br /><br /><br /></span><!-- node type 8 --></p>
<pre>_______________________________________________<!-- node type 8 --></pre>
<pre>Qgis-user mailing list<!-- node type 8 --></pre>
<pre><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><!-- node type 8 --></pre>
<pre>List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><!-- node type 8 --></pre>
<pre>Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><!-- node type 8 --></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size: 12.0pt;"> </span><!-- node type 8 --></p>
</blockquote>
<p class="MsoNormal"><span style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; mso-fareast-language: EN-GB;"><!-- node type 8 --> </span></p>
</div>
</blockquote>
<p> </p>
<div> </div>
<div> </div>
</body></html>