<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>AWLRS: export is showing error: OGR Error. Attempt to write feature failed.</title><link>https://communities.bentley.com/products/assetwise/exor/w/wiki/56894/awlrs-export-is-showing-error-ogr-error-attempt-to-write-feature-failed</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>AWLRS: export is showing error: OGR Error. Attempt to write feature failed.</title><link>https://communities.bentley.com/products/assetwise/exor/w/wiki/56894/awlrs-export-is-showing-error-ogr-error-attempt-to-write-feature-failed</link><pubDate>Fri, 08 Apr 2022 11:52:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cb09d1ba-8448-43c0-a5ff-fe43b39fa824</guid><dc:creator>Pano Voudouris</dc:creator><comments>https://communities.bentley.com/products/assetwise/exor/w/wiki/56894/awlrs-export-is-showing-error-ogr-error-attempt-to-write-feature-failed#comments</comments><description>Current Revision posted to ALIM | Exor - Wiki by Pano Voudouris on 4/8/2022 11:52:45 AM&lt;br /&gt;
&lt;!--mce:protected %3C%21--%20header%20table%2C%20paste%20at%20very%20top%20of%20article%27s%20HTML%20code%20--%3E--&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;AWLRS&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.2.x.x&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Other&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;!--mce:protected %3C%21--%20End%20of%20header%20table%20--%3E--&gt;
&lt;h1&gt;Error or Warning Message&lt;/h1&gt;
&lt;p&gt;A user&amp;nbsp;cannot export some layers to shapefile. Please see below the error message&lt;/p&gt;
&lt;p&gt;.&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-44/export_5F00_geometry-error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1&gt;How to Avoid&lt;/h1&gt;
&lt;p&gt;It looks like some assets have incorrect geometry type records. You can find it using steps below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;in Exor form go to Launchpad&amp;gt;exor&amp;gt;GIS Data&amp;gt;GIS Layer Tool, click on Asset Layer under Asset Manager, in Asset tab chose the exported asset type and click on &amp;quot;Get Themes&amp;quot; button and note the name of spatial table.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;By running script below make sure that spatial table contains different geometry type records. Do not forget to change the table_name to the name of spatial table from step 1. &lt;br /&gt;&lt;br /&gt;select s.geoloc.sdo_gtype, count(*) from table_name s &lt;br /&gt;group by s.geoloc.sdo_gtype;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;If step 2 came back with more that one entry. Then most probably one of these records has geometry type value -point 3301. The following script will help to find such entries&lt;br /&gt;&lt;br /&gt;select * from table_name t&lt;br /&gt;where t.ne_id in (select i.ne_id from table_name i where i.geoloc.sdo_gtype=3301)&lt;br /&gt;order by t.ne_id &lt;br /&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;!--mce:protected %3C%21--%20Footer%20table%2C%20paste%20at%20end%20of%20article%20--%3E--&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;NT&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;!--mce:protected %3C%21--%20End%20of%20footer%20table%20--%3E--&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: AWLRS&lt;/div&gt;
</description></item><item><title>AWLRS: export is showing error: OGR Error. Attempt to write feature failed.</title><link>https://communities.bentley.com/products/assetwise/exor/w/wiki/56894/awlrs-export-is-showing-error-ogr-error-attempt-to-write-feature-failed/revision/1</link><pubDate>Thu, 18 Nov 2021 10:30:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cb09d1ba-8448-43c0-a5ff-fe43b39fa824</guid><dc:creator>NT</dc:creator><comments>https://communities.bentley.com/products/assetwise/exor/w/wiki/56894/awlrs-export-is-showing-error-ogr-error-attempt-to-write-feature-failed#comments</comments><description>Revision 1 posted to ALIM | Exor - Wiki by NT on 11/18/2021 10:30:17 AM&lt;br /&gt;
&lt;!--mce:protected %3C%21--%20header%20table%2C%20paste%20at%20very%20top%20of%20article%27s%20HTML%20code%20--%3E--&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;AWLRS&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.2.x.x&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Other&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;!--mce:protected %3C%21--%20End%20of%20header%20table%20--%3E--&gt;
&lt;h1&gt;Error or Warning Message&lt;/h1&gt;
&lt;p&gt;A user&amp;nbsp;cannot export some layers to shapefile. Please see below the error message&lt;/p&gt;
&lt;p&gt;.&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-44/export_5F00_geometry-error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1&gt;How to Avoid&lt;/h1&gt;
&lt;p&gt;It looks like some assets have incorrect geometry type records. You can find it using steps below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;in Exor form go to Launchpad&amp;gt;exor&amp;gt;GIS Data&amp;gt;GIS Layer Tool, click on Asset Layer under Asset Manager, in Asset tab chose the exported asset type and click on &amp;quot;Get Themes&amp;quot; button and note the name of spatial table.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;By running script below make sure that spatial table contains different geometry type records. Do not forget to change the table_name to the name of spatial table from step 1. &lt;br /&gt;&lt;br /&gt;select s.geoloc.sdo_gtype, count(*) from table_name s &lt;br /&gt;group by s.geoloc.sdo_gtype;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;If step 2 came back with more that one entry. Then most probably one of these records has geometry type value -point 3301. The following script will help to find such entries&lt;br /&gt;&lt;br /&gt;select * from table_name t&lt;br /&gt;where t.ne_id in (select i.ne_id from table_name i where i.geoloc.sdo_gtype=3301)&lt;br /&gt;order by t.ne_id &lt;br /&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;!--mce:protected %3C%21--%20Footer%20table%2C%20paste%20at%20end%20of%20article%20--%3E--&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;NT&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;!--mce:protected %3C%21--%20End%20of%20footer%20table%20--%3E--&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: AWLRS&lt;/div&gt;
</description></item></channel></rss>