<?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>Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/64281/bentley-map-enterprise-ss2-and-oracle-11g</link><description>I have been playing around with Bentley Map Enterprise v8i (SS2) with our Oracle Server. The tables on my Oracle server are built from MapInfo TAB files (using MapInfo EasyLoader Utility), and a script is run to fix the SRID and USER_SDO_GEOM_METADATA</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161945?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2011 00:26:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2914b192-c2dc-402d-823c-98bf5e1c58ad</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;I think that would be the best approach, or even if it defaulted to polygons but the user had the ability to change the geometry type in the GDI when it can&amp;#39;t be discovered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161759?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2011 17:58:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:65a98ced-91a7-49e6-a602-ebd742cda4a6</guid><dc:creator>Martin Roy</dc:creator><description>&lt;p&gt;Glad to hear you made it work. In any case, a geometry-specific index cannot be bad. I took note that it would be better to let users define the geometry type in GDI when it can&amp;#39;t be discovered automatically. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161671?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2011 01:18:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:59d2bec9-d962-4fb6-8511-cdc6b6d28666</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;Thanks Martin and Jerry,&lt;/p&gt;
&lt;p&gt;In this case I was going directly from BM and not using the GSA, when you go from BM you don&amp;#39;t have the ability to specify the geometry type (as pointed out by Jerry). &amp;nbsp;In this case I wanted to open the data directly from BM because it is not maintained by any of our Bentley products, and therefore I didn&amp;#39;t want to include it in a GSA model.&lt;/p&gt;
&lt;p&gt;I have also had some issues (with Bentley Water) not recognizing features when they have been registered with the GSA. &amp;nbsp;And I have had to run through the registration process multiple times to get it to work. &amp;nbsp;Unfortunatley, I haven&amp;#39;t been able to consistantly re-create the problem, so I have no idea what it could be.&lt;/p&gt;
&lt;p&gt;Again, thanks for your help. &amp;nbsp;I have modified my scripts that upload my data to this Oracle server, and now the GTYPE is being included in the creation of the spatial index and this has fixed my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161605?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 18:59:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:031658e4-33d1-427d-a32d-6d8aefccd581</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;Yea, but if he is not going thru the GSA and registering the features, then I beleive he will have to update the spatial index. I can&amp;#39;t really tell from his screen shot if this is the case, but it looks like he is doing a direct connect and not going thru a project.&lt;/p&gt;
&lt;p&gt;But I agree if Ian is going thru the GSA, to register features this would be a option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161603?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 18:51:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9fe5fc74-a779-4788-b119-5cf039949dbc</guid><dc:creator>Martin Roy</dc:creator><description>&lt;p&gt;Ian, just as a side note, I did a quick test and as far as I can see Map SS2 should ask you to specify the geometry type of a class in the register features wizard if it cannot automatically detect it. You should be able to specify the type there instead of changing your indexes if you prefer to leave them as they are.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161514?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:30:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7f7cfc58-ec82-449f-b6c8-77ef73b6af0f</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;Fantastic !!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161513?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:28:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:196fefa6-134c-4bbd-93cc-6ebe5eb3f819</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;OK, it looks like BM is using the index for the geometry type.&lt;/p&gt;
&lt;p&gt;I changed my index (on one table to start with) and specified the geometry type in the index:&lt;/p&gt;
&lt;p&gt;SQL&amp;gt; create index sewermain_sx on sewermain(geoloc) indextype is mdsys.spatial_index parameters (&amp;#39;layer_gtype=LINE&amp;#39;);&lt;/p&gt;
&lt;p&gt;Index created.&lt;/p&gt;
&lt;p&gt;SQL&amp;gt; commit;&lt;/p&gt;
&lt;p&gt;Commit complete.&lt;/p&gt;
&lt;p&gt;SQL&amp;gt;&lt;/p&gt;
&lt;p&gt;And now BM recognises this as a line.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://communities.bentley.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Discussions-Components-Files/5924/3821.LINE.jpg" border="0" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, based on this I am guessing that I need to go and change my scripts to specify the geometry types on the indexes of the files&amp;nbsp;being uploaded.&lt;/p&gt;
&lt;p&gt;Cheers Ian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161509?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:16:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:10ea1a92-e162-44e2-89f6-db2143e8f8d6</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;So just drop and recreate them as I have posted above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161508?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:14:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bf624f4b-77f5-4bee-870f-c2d40630d046</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;Fantastic ! Now look at the Spatial Index as Martin has suggested. For the different feature types we typically set them as follows:&lt;/p&gt;
&lt;p&gt;Point&lt;/p&gt;
&lt;p&gt;CREATE INDEX VAULT_GEOM_SIDX ON VAULT_GEOM(OGC_GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS(&amp;#39;layer_gtype=point&amp;#39;);&lt;/p&gt;
&lt;p&gt;Linear&lt;/p&gt;
&lt;p&gt;CREATE INDEX CONDUIT_ROUTE_GEOM_SIDX ON CONDUIT_ROUTE_GEOM(OGC_GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS(&amp;#39;layer_gtype=curve&amp;#39;);&lt;/p&gt;
&lt;p&gt;Polygon&lt;/p&gt;
&lt;p&gt;CREATE INDEX L_SUBMAP_SIDX ON L_SUBMAP(OGC_GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS(&amp;#39;layer_gtype=polygon&amp;#39;);&lt;/p&gt;
&lt;p&gt;Jerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161506?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:11:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:eab9dbc8-41af-4f87-8e71-b82be82c80ef</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;Martin,&lt;/p&gt;
&lt;p&gt;No we don&amp;#39;t specify the geometry type in the spatial index.&lt;/p&gt;
&lt;p&gt;The SQL to build the index is simply&lt;/p&gt;
&lt;p&gt;CREATE INDEX &amp;quot;ASSET&amp;quot;.&amp;quot;SEWERMAIN_SX&amp;quot; ON &amp;quot;ASSET&amp;quot;.&amp;quot;SEWERMAIN&amp;quot; (&amp;quot;GEOLOC&amp;quot;) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; INDEXTYPE IS &amp;quot;MDSYS&amp;quot;.&amp;quot;SPATIAL_INDEX&amp;quot; ;&lt;/p&gt;
&lt;p&gt;Cheers Ian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161505?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2011 00:08:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:21668aba-a6ea-46e7-b60f-3336dbec28b1</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;Hi Jerry,&lt;/p&gt;
&lt;p&gt;I have run your query&lt;/p&gt;
&lt;p&gt;&amp;quot;select p.geoloc.sdo_gtype, count(*) from asset.sewermain p group by p.geoloc.sdo_gtype;&amp;quot;&lt;/p&gt;
&lt;p&gt;And the result I get is:&lt;/p&gt;
&lt;p&gt;GEOLOC.SDO_GTYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; COUNT(*) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;---------------------- ---------------------- &lt;/p&gt;
&lt;p&gt;2002 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6473 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;1 rows selected&lt;/p&gt;
&lt;p&gt;Cheers Ian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161391?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2011 18:20:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:86c71eff-8512-4180-82ae-4e3fd69b25e2</guid><dc:creator>Martin Roy</dc:creator><description>&lt;p&gt;Does your spatial index on that geometry column specify a geometry type or is it &amp;quot;collection&amp;quot; ? Not sure, but we may infer the geometry type from the index type. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161305?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2011 06:05:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:150a27d3-63ae-4b6a-9ef8-ebf99fad9439</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;The Bentley Map help file suggest using this query instead, slightly different than yours.&lt;/p&gt;
&lt;p&gt;select p.geometry.sdo_gtype, count(*) from &amp;lt;your_table&amp;gt; p group by p.geometry.sdo_gtype;&lt;/p&gt;
&lt;p&gt;Jerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161301?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2011 05:28:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fc951dd3-0f24-410c-afe6-9d97521840cf</guid><dc:creator>IanTidy</dc:creator><description>&lt;p&gt;Hi Jerry,&lt;/p&gt;
&lt;p&gt;I have checked the GTYPE in the tables, and the are correct. &amp;nbsp;The example below is the SEWERMAIN table.&lt;/p&gt;
&lt;p&gt;SQL&amp;gt; SELECT a.geoloc.get_gtype() from asset.sewermain a group by a.geoloc.get_gtype();&lt;/p&gt;
&lt;p&gt;A.GEOLOC.GET_GTYPE()&lt;/p&gt;
&lt;p&gt;--------------------&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;SQL&amp;gt;&lt;/p&gt;
&lt;p&gt;As you can see, this table has a GTYPE of 2 (which is a LINE or CURVE - See &lt;a rel="nofollow" target="_new" href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_objrelschema.htm#i1004087"&gt;download.oracle.com/.../sdo_objrelschema.htm&lt;/a&gt; for details) and there is only one GTYPE for this table, but as you can see from my original post BM says this is a Polygon.&lt;/p&gt;
&lt;p&gt;Any other ideas?&lt;/p&gt;
&lt;p&gt;Thanks Ian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Bentley Map Enterprise (SS2) and Oracle 11g</title><link>https://communities.bentley.com/thread/161282?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2011 03:29:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3c2c6320-ec84-4f61-9f5a-04b8f0b212d1</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;From my experience, this is a issue with the gtype in the tables. It looks like all are defined as polygon. Also note that there can only be one gtype in a table, else the Oracle Spatial interface will not correctly register it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>