<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Adding Spatial Data to Existing Records</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/90603/adding-spatial-data-to-existing-records</link><description>Hi all, 
 We have a requirement where we need to be able to query table records (with a spatial data column) that don&amp;#39;t yet have any spatial data. Then to a specific record, then post the spatial data for this record either from existing dgn elements</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Adding Spatial Data to Existing Records</title><link>https://communities.bentley.com/thread/261209?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2013 12:41:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6515f24c-ea89-4364-bb54-ef5b629af5d9</guid><dc:creator>J R</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;My apologies for being a little quiet. Thanks for the pointers, I was hoping it may be a case of writing a custom SQL &amp;#39;update&amp;#39; query on the feature &amp;#39;create&amp;#39; operation of the XFM feature, but it looks like it may be a little more involved than that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I correct in thinking there is no way to do this via an sql update with the geometry with an xfm create command is issued?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pseudo:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;code&gt;UPDATE cadastre SET GeomCol = &amp;lt;created_xfm_element&amp;gt; WHERE lot_id = &amp;lt;some_xfm_property&amp;gt;;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;m yet to get my hands dirty with the BM api, but it looks like this may be an opportunity to have a look at it. The steps you&amp;#39;ve detailed make sense.&lt;/p&gt;
&lt;p&gt;The way I envision it working is into a listbox dump all the non-graphic feature instances for the user to select one. With a row selected, and an element selected a button pressed would associate the geometry to the record, and hopefully a post operation will post the record(s) with the amended graphical feature.&lt;/p&gt;
&lt;p&gt;many thanks,&lt;/p&gt;
&lt;p&gt;Jim&lt;/p&gt;
&lt;p&gt;edit: Any chance of getting this functionality included in the product. I would have thought that this would be useful to most organisations that are maintaining a spatial database. Either as a way to initially create geometry, or to update/replace geometry. The only real piece missing from the software is the ability to &amp;#39;browse&amp;#39; the data-source by non-graphical means (view, fence, etc). I would have thought that the actual query in the background is probably returning the records without geometry anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Adding Spatial Data to Existing Records</title><link>https://communities.bentley.com/thread/260473?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2013 17:32:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3ff33b58-90c4-4f45-9b76-b9d45aa9f9ca</guid><dc:creator>Lorys</dc:creator><description>&lt;p&gt;doesnt the promote feature &amp;nbsp;do this to a dgn element so its now &amp;nbsp;feature ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Adding Spatial Data to Existing Records</title><link>https://communities.bentley.com/thread/258957?ContentTypeID=1</link><pubDate>Sat, 14 Sep 2013 03:48:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6a395421-89c6-49b1-a593-3608f5f0fe74</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;As Jerry correctly comments, there is currently no out-of-the-box way to accomplish using standard Bentley Map functionality. This workflow&amp;nbsp;can however be accomplished with some customization that makes use of the Bentley Map API. The basic approach is as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Using the Bentley Geospatial Administrator add a graphical source connection and register feature classes.&lt;/li&gt;
&lt;li&gt;In custom code, define query criteria that includes all required business properties but excludes the geometry property.&lt;/li&gt;
&lt;li&gt;Perform the spatial query of feature instances from the registered graphical source connection. Please note the resulting XFM feature instances will not have a graphical representation but will be queried into the design file.&lt;/li&gt;
&lt;li&gt;Using custom code perform an XFM locate operation to search for the non-graphic feature instances.&lt;/li&gt;
&lt;li&gt;Set the geometry property of the feature and/or sub-features to the appropriate MicroStation elements.&lt;/li&gt;
&lt;li&gt;Write the updated XFM feature instances back to the design file.&lt;/li&gt;
&lt;li&gt;Perform a &amp;quot;Post&amp;quot; command using the Bentley Map Interoperability application.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If interested in learning more, please let me know and we can discuss additional details offline.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Adding Spatial Data to Existing Records</title><link>https://communities.bentley.com/thread/258836?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2013 12:38:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cc507992-c0fc-4598-b234-227fd2d38b33</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;I can not think of any way out of the box to do this. You may need some customization. Basically:&lt;/p&gt;
&lt;p&gt;1. Select the record from the table.&lt;/p&gt;
&lt;p&gt;2. Select the existing graphic.&lt;/p&gt;
&lt;p&gt;3. Create feature instance from both.&lt;/p&gt;
&lt;p&gt;4. Set the change tracker to modified feature instead of new feature.&lt;/p&gt;
&lt;p&gt;4. Post the changes.&lt;/p&gt;
&lt;p&gt;If the Spatial system is Oracle, then you could use the DGN2SDO tool to place the geometry into the spatial database. You would still have to link the geometry , now in the spatial db to the business attributes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>