Quantcast
Channel: OpenCities Map Wiki
Viewing all 1284 articles
Browse latest View live

Bentley Map Mobile

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Jeff Bielefeld on 10/5/2020 4:29:13 PM

View, search and redline Bentley Map and MicroStation project data in the field.

Bentley Map Mobile provides powerful 2D/3D vector and raster viewing along with redlining and mark-up capabilities. It provides fast, efficient access to infrastructure data sets for field personnel of all types, including engineers, inspectors, maintenance crews, construction personnel and others. With Bentley Map Mobile, field workers can be kept up to date with the latest infrastructure data, reducing errors and improving service outcomes.

Bentley Map Mobile is GPS-enabled which simplifies the location of facilities in the field. If a network connection is available, then an interface to Google Maps (on Android and Windows) or Apple Maps (on iOS) will produce driving directions to the selected facility. The view display can be simplified by toggling features off and on, applying scale based visibility. A list of business properties values for all visible features can be easily generated for review. Free text search can be used to quickly locate text annotations or features.

Bentley Map Mobile is currently available in the Google Play Store for use on Android tablets, in the Apple App Store for iPads and iPhones, and on the Bentley Software Downloads site for 64-bit Windows 7, 8 and 10 desktops, notebooks and touch enabled tablet devices. Bentley Map Mobile requires the use of Bentley Map Mobile Publisher to publish next generation i-models from Bentley Map Enterprise, Bentley Map, Bentley OpenUtilities Designer, Bentley's communications and other Bentley Map based products.

Bentley Map Mobile requires a Bentley CONNECT login and Bentley CONNECTIONS Passport for use.

See Also

Bentley Map Mobile - Quick Start Guide

Bentley Map Mobile - Frequently Asked Questions

Bentley Map Mobile - What's New?

Bentley Map Mobile Publisher - Frequently Asked Questions

External Links

Bentley Homepage

Bentley Technical Support KnowledgeBase

Bentley LEARN Server

Bentley Map Mobile Publisher

Bentley Map Mobile

Bentley Map

Tags: Bentley Map Mobile Publisher, Bentley Map Mobile, Android, iPad, mobile, ios, Bentley Map, Map, Field, GIS

Advanced Map Finishing

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 10/14/2020 2:45:16 PM

Bentley Map V8i provides Map Finishing tools which were formerly available in a product called CADscript. To access the Map Finishing tools in Bentley Map V8i, initialize your DGN in the msgeo_mapfinishing workspace.  The following is a tool comparison between Map Finishing and CADscript.

Note:  The Map Finishing tools are not available in OpenCities Map CONNECT Edition.  To maintain a CADScript or Advanced Map Finishing environment, it's recommended that you also install the V8i (SELECTseries 10) edition of Map to gain access to the most current Map and Map Finishing tools.  You can then return to using the CONNECT edition to continue your geospatial work.  In this case, the same license is used meaning that you can run Map V8i (SELECTseries 10) and Map CONNECT simultaneously without incurring additional license fees.

[[- iFill output]]

[[- Ordering element display]]

[[- Printing directly to a Windows printer]]

[[- Set Functions]]

[[- Using Map Finishing in a Map workspace]]

- Using the MapIndex tool

Tags: CADscript, Bentley Map, Advanced Map Finishing

- CONNECT Edition FAQ

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 10/26/2020 1:27:38 PM

Bentley Map refers to the V8i product line.

OpenCities Map refers to the CONNECT Edition product line.

QuestionAnswer
How can I upgrade from V8i to CONNECT Edition?

There are three possibilities to upgrade from V8i to CONNECT Edition:

1. If you own Bentley Map PowerView V8i or Bentley Map V8i or Bentley Map Enterprise V8i:

  • Then you can upgrade to CONNECT Edition at no cost.  The same license will work for both V8i and CONNECT Edition.

2. If you own MicroStation V8i and Bentley Map for MicroStation V8i you have two choices:

  • You can decide to exchange your Bentley Map for MicroStation V8i  license for a OpenCities Map CONNECT Edition license.  There is no cost for this license exchange however the price of SELECT will increase.
  • Or, you can decide to exchange both the MicroStation V8i and Bentley Map for MicroStation V8i licenses for one license of OpenCities Map Enterprise CONNECT Edition.  There is no cost for this exchange, however the price of SELECT will increase.

3. If you own MicroStation V8i and want to purchase Bentley Map for MicroStation V8i:

  • Bentley Map for MicroStation is available once again.  You may purchase Bentley Map for MicroStation V8i.  Also, for the price of Bentley Map for MicroStation V8i, the upgrade path to CONNECT is to exchange your MicroStation V8i license to a OpenCities Map Enterprise CONNECT Edition license.   

For pricing information, please contact your account manager.

Where can I find the  "for MicroStation" version for Map SELECTseries 10?

Bentley Map for MicroStation is was added back as a purchasable item in May 2020.

Previous versions of Map included a layered option to install on an existing seat of MicroStation. This “For MicroStation” layered option was discontinued for a while, but is now available once again. The three available products are: Map V8i (SELECTseries 10) Standalone, Map For MicroStation V8i (SELECTseries 10), and the OpenCities Map CONNECT Edition.

If you own MicroStation V8i and Bentley Map for MicroStation V8i you have two choices:

  • You can decide to exchange your Bentley Map for MicroStation V8i  license for a OpenCities Map CONNECT Edition license.  This can be done at any time, no need to wait for a portfolio balancing date. Simply speak with your Bentley Account Manager, or file a Service Request with the Bentley Contracts office asking for the exchange. There is no cost for the exchange however the price of SELECT will increase.

  • Or, you can decide to exchange both the MicroStation V8i and Bentley Map for MicroStation V8i licenses for one license of OpenCities Map Enterprise CONNECT Edition.  This can be done at any time, no need to wait for a portfolio balancing date. Simply speak with your Bentley Account Manager, or file a Service Request with the Bentley Contracts office asking for the exchange. There is no cost for the exchange however the price of SELECT will increase.

     

Map stand-alone contains both Map and MicroStation commands found in the layered application.

 

Will OpenCities Map V8i for MicroStation work with MicroStation CONNECT Edition?No. The 32-bit architecture of Bentley's V8i products is incompatible with MicroStation CONNECT Edition's 64-bit architecture.
When can a OpenCities Map for MicroStation CONNECT Edition be expected?OpenCities Map will not be available as a layered product in the CONNECT Edition release. As with all CONNECT Edition products, OpenCities Map CONNECT is a standalone product.
When will I have access to Bentley's Cloud Services, that are integrated seamlessly with MicroStation CONNECT Edition?Bentley Cloud Services became available in Bentley Map V8i (SELECTseries 4).
When was OpenCities Map CONNECT Edition released?The initial release of OpenCities Map CONNECT Edition was spring of 2018.
Can I install Map CONNECT Edition on the same machine that has Map V8i?

Yes, but be sure to install it in a different folder.

Where can I find information about expiring support for older versions of Bentley Map?

Please refer to Bentley Support Policy.

Where can I find more information on the changes to workspaces and configuration in the CONNECT Edition? 

There are a number of pages dedicated to the configuration changes.  Please refer to the following links: 

What version of Map uses Subscription Entitlement Service (formerly CONNECT Licensing)?

Subscription Entitlement Service (formerly CONNECT Licensing) was introduced with OpenCities Map CONNECT Edition Update 2 (10.02.00.18) and Bentley Map V8i (SELECTseries 10). 

Subscription Entitlement Service does not use activation keys. To enhance security, the licensing requires users become registered in User Management and then sign in with those credentials to access the application. Please refer to the following links: 

When I download OpenCities Map, I only get a small .exe file.  When I run the exe, it downloads installation files.  How can I keep those installation files so that I can distribute them to my users? 

To distribute installation files to your users, you'll need to create a deployment image.  Please refer to the following article for further details:

My users don't have an internet connection.  How can they install OpenCities Map products?

You'll need to create a deployment image as described in the following article:

Are there any resources for a CAD Manager for help with migrating to CONNECT?

Yes, please refer to link in the CAD Managers Guide to CONNECT Edition .

I have third-party add-ons for Bentley Map V8i.  Will they work in OpenCities Map CONNECT Edition?

OpenCities Map CONNECT Edition is a 64-bit application. While the DGN file format has not changed, the following will need attention.

  • MDL and native code applications will need to be recompiled.
  • VBA applications may require some modification.
  • MicroStation BASIC macros will no longer function and will have to be rewritten in another supported language.

Note: If you are running third-party applications in Bentley Map V8i, then please contact the authors directly to ask if they have plans to port their application to OpenCities Map CONNECT Edition.

Tags: CONNECT Edition, v8i, Bentley Map Enterprise, Bentley Map PowerView V8i, Bentley Map for MicroStation, Bentley Map

- Learning Resources

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Jeff Bielefeld on 11/14/2020 3:53:34 PM

The following resources may be of help when learning programming for Bentley Map:

  • The Standard Operation Library delivered with Bentley Map. It is called xfmStdOpsLib.mvba and is located in the .../Maps/vba installation folder. This mvba file contains serveral working examples that you can use and study. 

  • Another VBA example is example.mvba which can be found in  .../geo_example/designer/vba. The VBA project file is designed to be used within the workspaces geo_example_designer and geo_example_dialogs. The schema is located in  .../geo_example/xml/schema.

- OpenCities Map CONNECT Edition vs Bentley Map V8i

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Sanket Butala on 11/18/2020 1:52:02 PM

The following table illustrates the current differences between the OpenCities Map CONNECT Edition and Bentley Map V8i and is subject to change without notice.

ThemeOpenCities Map Ultimate CONNECT EditionBentley Map Enterprise V8i
Reality Mesh ProcessingY-
Reality Mesh ClassifiersY-
Importing, Querying and Posting in PostGISY-
Publishing to iModel 2.0Y-
Alternate Coordinate SystemYY
Grids and GraticulesYY
FME IntegrationYY
Cartographic StylesYY
Topology Creation and Topology CleanupYY
Export Map Manager features to MicroStation ElementsYY
Advanced Map Finishing-Y
Bentley Cadastre-Y
Reference File Index (Seamless Mapping)-Y
Tags: CONNECT Edition, comparison, v8i

- OpenCities Map products

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Sanket Butala on 11/18/2020 1:55:27 PM

Important Note:  Beginning with the CONNECT Edition,  OpenCities Map is now a standalone product and is not available as a layered application for MicroStation.  For further information, please refer to the question How can I upgrade from Bentley Map V8i to OpenCities Map CONNECT Edition? in the CONNECT Edition FAQ

---

The OpenCities Map CONNECT Edition product line includes the following:

OpenCities Map PowerView -  For users that primarily need to view and perform light 2D feature acquisition and editing. OpenCities Map PowerView can query from spatial databases.

OpenCities Map Advanced- Designed for users that need to create, edit, manage, and analyze spatial databases. OpenCities Map Advanced can query, edit and post to spatial databases.

OpenCities Map Ultimate- Is designed for users that need all the functionality of OpenCities Map Advanced as well as the ability to execute advanced reality data processing with Bentley Descartes, and/or long transactions with a two-tier connection to Oracle Spatial.  Bentley Descartes  is included with OpenCities Map Ultimate. OpenCities Map Ultimate also supports full 3D editing.

ThemeOpenCities Map UltimateOpenCities Map AdvancedOpenCities Map PowerView
Reality Data Processing (Raster, STM, Point Cloud and Reality Meshes)Y--
3D Placement and Editing ToolsY--
Animation CreationY--
XFM 3D Smart EditingY--Update 3
XFM Textures EditingFuture--
Export to LumenRTY--Update 5
3D BufferY--Update 5
3D Split / MergeY--Update 5
Promote to CityGMLY--Update 5 (Tech Preview)
CityGML EditingY--Update 5 (Tech Preview)
Posting to Spatial Data Sources (Oracle, SQLServer, FGDB, PostGIS)YY-
Posting to Spatial Data Sources (ArcGIS Server and ArcGIS Online)YY-Update 4
Exporting Geospatial Data (SHP, MIF, TAB, GML, FGDB)YY-
Export to MicroStation Elements from Map ManagerYY-
CityGML Import / ExportYY-Update 5 (Tech Preview)
Publishing to iModelYY-
Geographic Coordinate System Management and EditingYY-
Buffers and Overlays AnalysisYY-
FME IntegrationYY-Update 3
Enhanced Analyze ToolYYYUpdate 5
AutoPromoteYYYUpdate 5
Free support of Bing MapYYY
Display of Reality Meshes, Point Clouds, TexturesYYY
Querying from Spatial Data Sources (Oracle, SQLServer, WFS, FGDB, PostGIS, ArcGIS Server and ArcGIS Online)YYY
Importing from Spatial Data Sources (Oracle, SQLServer, WFS, FGDB, PostGIS, ArcGIS Server and ArcGIS Online)YYY
Importing Geospatial Files (SHP, MIF, TAB, GML)YYY
Publishing to Map MobileYYY
Data BrowserYYY
Data Capture and MaintenanceYYY
Map Management and Thematic MappingYYY
Tags: OpenCities Map Advanced, OpenCities Map PowerView, OpenCities Map, OpenCities Map Ultimate, Bentley Map Enterprise, Bentley Map, OpenCities Map Enterprise, Bentley Map PowerView

Version Information

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Sanket Butala on 11/18/2020 1:59:13 PM

This page contains information about Map V8i and Map CONNECT Editions: version numbers, release dates, Subscription Entitlement Services, V8i dependencies and V8i prerequisites.  The Map V8i Editions of Bentley Map have been renamed as OpenCities Map.

CONNECT Edition generation:

The following table lists OpenCities Map CONNECT Editions which are built with the Power Platform. Power Platform is the MicroStation core application that underlies the CONNECT Edition products that are based on MicroStation.  Once a feature or fix is added to the Power Platform, it's available to all the applications based on Power Platform.  This has increased consistency between applications, is fundamental to Bentley's update strategy and is part of an ongoing plan to unify similar tools and functions across Bentley applications.

Important note regarding OpenCities Map for MicroStation:  Beginning with the CONNECT Edition, OpenCities Map is now a standalone product and is not available as a layered application for MicroStation CONNECT.  For Map V8i (SELECTseries 10) the For MicroStation edition has been returned as available to purchase and download. For further information, please refer to the question How can I upgrade from V8i to CONNECT Edition? in the Map CONNECT Edition FAQ

Important note regarding licensing:  Starting with OpenCities Map CONNECT Edition x64 10.02.00.xx, licensing is handled with Subscription Entitlement Service which does not use activation keys. Products with Subscription Entitlement Service is indicated with (SES). To enhance security, the licensing requires that you become registered in User Management and then sign in with those credentials to access the application. For more information on licensing, please refer to Subscription Entitlement Service (formerly CONNECT Licensing). For detailed instructions on the user registration and sign-in process, refer to Bentley User Registration and Sign-in.

Dates are in Year-Month-Day format. 

DateRelease

Power Platform

Version

Descartes for

Map Ultimate

Notes
2020-06-23OpenCities Map CONNECT Edition x64 (SES) 10.06.00.05 Update 610.14.00.10910.14.00.109Resolved Issues
2020-04-14OpenCities Map CONNECT Edition x64 (SES) 10.05.00.51 Update 510.14.00.10510.14.00.105Resolved Issues
2019-11-04OpenCities Map CONNECT Edition x64 (SES) 10.04.00.42 Update 410.13.00.4810.13.00.48-
2019-09-27OpenCities Map CONNECT Edition x64 (SES) 10.04.00.41 Update 410.13.00.4810.13.00.48Resolved Issues
2019-08-23OpenCities Map CONNECT Edition x64 (SES) 10.04.00.35 Update 410.13.00.4810.13.00.48Resolved Issues
2019-04-16OpenCities Map CONNECT Edition x64 (SES) 10.03.00.26 Update 310.12.00.4010.10.00.40-
2019-03-25OpenCities Map CONNECT Edition x64 (SES) 10.03.00.23 Update 310.12.00.4010.10.00.40Resolved Issues
2018-11-22OpenCities Map CONNECT Edition x64 (SES) 10.02.00.18 Update 210.11.00.3810.09.00.38Resolved Issues
2018-07-31OpenCities Map CONNECT Edition x64 10.01.00.22 Update 110.10.00.2410.08.00.23Resolved Issues
2018-03-16OpenCities Map CONNECT Edition x64 10.00.00.3010.08.00.41N/A

V8i generation:

The following tables lists the Bentley Map V8i versions with their corresponding MicroStation versions they were released with.  

It's important to combine the Bentley Map V8i (SELECTseries) "For MicroStation" edition with its corresponding MicroStation version.  This allows you to take advantage of changes that were introduced into each product during the update cycle.  V8i (SELECTseries) generation products should be installed together.  However, within (SELECTseries) product release, newer versions of Bentley Map are compatible with older versions of MicroStation.  In some cases, older versions of Bentley Map are compatible with newer versions of MicroStation.  To maintain the integrity and supported functionality, the corresponding version of MicroStation should be installed at the same time.

Dates are in month/day/year format. 

*Important Note - The updated version of Bentley Map V8i (SELECTseries 10) provides new flexibility for organizations that require Windows 10 Readiness and privacy and security compliance while they sequence their upgrade to the CONNECT Edition.

Bentley Map V8i (SELECTseries 10) is a simple and transparent installation for Bentley Map V8i users with no file format change with complete fidelity of existing workspaces and MDL customizations. Bentley Map V8i(SELECTseries 10) consolidates all enhancements and updates of previous SELECTseries releases and offers an extended support period for V8i users:

  • Full Support will be provided until January 1, 2021.
  • Expiring Support will be provided until January 1, 2022 at which time full support will be discontinued.

This version only includes Subscription Entitlement Service (formerly known as CONNECT Licensing) for users who have chosen to delay upgrading to the latest OpenCities Map CONNECT Edition.  Subscription Entitlement Service is not supported by SELECT activation key(s). Subscription Entitlement Service  features new behavior to enhance your organization's user administration and security with mandatory user sign-in via CONNECTION Client to access the application. If you are already signed in to the CONNECTION Client, you have met this prerequisite. If you have not, please refer to the Administrator's Resource Center and/or contact your administrator for assistance in the registration and sign-in process.

We recommend that you install the latest version of OpenCities Map CONNECT Edition (*). But, if your organization needs more time to sequence your CONNECT Edition upgrade, Bentley Map V8i(SELECTseries 10) provides additional flexibility and ensures you can continue to use supported software. Bentley Map V8i(SELECTseries 10) offers these capabilities:

  • Windows 10 Readiness
  • All previous V8i enhancements and updates
  • Subscription Entitlement Service
  • Extended support

 

 Bentley Map V8i (SELECTseries 10) was initially only available as a stand-alone product. Beginning in May 2020 the product may once again be purchased and downloaded for use For MicroStation. 

The available products are now: Map V8i (SELECTseries 10) Standalone, Map V8i (SELECTseries 10) For MicroStation, and the Map CONNECT edition.

The policy of trading-in a license is no longer necessary, but may be beneficial to some Users:

If you own MicroStation V8i and Bentley Map for MicroStation V8i you have two choices:

You can decide to exchange your Bentley Map for MicroStation V8i  license for a OpenCities Map Advanced CONNECT Edition license.  There is no cost for this license exchange however the price of SELECT will increase.

Or, you can decide to exchange both the MicroStation V8i and Bentley Map for MicroStation V8i licenses for one license of OpenCities Map Ultimate CONNECT Edition.  There is no cost for this exchange, however the price of SELECT will increase

Map stand-alone contains both Map and MicroStation commands found In the layered application.

(*) The CONNECT Edition of Bentley Map has been renamed to OpenCities Map.

Dates are in Year-Month-Day format. 

Date

ReleaseNotesDependenciesPrerequisites
2020-06-24

Bentley Map For MicroStation V8i (SELECTseries 10) (SES) 08.11.09.923

-MicroStation 08.11.09.919Included
2020-05-08

Bentley Map For MicroStation V8i (SELECTseries 10) (SES) 08.11.09.920

-MicroStation 08.11.09.919Included
2020-04-05

Bentley Map V8i (SELECTseries 10) (SES) 08.11.09.920

---
2019-12-19

Bentley Map V8i (SELECTseries 10) (SES) 08.11.09.914

---
2019-07-08

Bentley Map V8i (SELECTseries 10) (SES) 08.11.09.908

---
2018-04-13

Bentley Map V8i (SELECTseries 4) 08.11.09.882 Update 10

Resolved IssuesMicroStation 08.11.09.867Included
2017-08-18

Bentley Map V8i (SELECTseries 4) 08.11.09.862 Update 8

Resolved IssuesMicroStation 08.11.09.862Included
2017-04-21

Bentley Map V8i (SELECTseries 4) 08.11.09.836 Update 7

Resolved IssuesMicroStation 08.11.09.862Included
2017-03-07

Bentley Map V8i (SELECTseries 4) 08.11.09.834 Update 6

Resolved IssuesMicroStation 08.11.09.867Included
2016-12-01

Bentley Map V8i (SELECTseries 4) 08.11.09.805 Update 5

Resolved IssuesMicroStation 08.11.09.862Included
2016-07-18

Bentley Map V8i (SELECTseries 4) 08.11.09.763 Update 4

Resolved IssuesMicroStation 08.11.09.838Included
2016-03-24

Bentley Map V8i (SELECTseries 4) 08.11.09.713 Update 3

Resolved IssuesMicroStation 08.11.09.829Included
2015-12-11

Bentley Map V8i (SELECTseries 4) 08.11.09.666 Update 2

Resolved IssuesMicroStation 08.11.09.752Included
2015-05-04

Bentley Map V8i (SELECTseries 4) 08.11.09.615 Update 1

Resolved IssuesMicroStation 08.11.09.714Included
2014-11-13

Bentley Map V8i (SELECTseries 4) 08.11.09.503

MicroStation 08.11.09.614Included
2012-09-17

Bentley Map V8i (SELECTseries 3) 08.11.09.107

MicroStation 08.11.09.35708.11.09.03
2012-05-31

Bentley Map V8i (SELECTseries 3) 08.11.09.91

MicroStation 08.11.09.35708.11.09.03
Product ID's Changed
2011-04-13

Bentley Map V8i (SELECTseries 2) 08.11.07.434

MicroStation 08.11.07.44308.11.07.03
2010-05-25

Bentley Map V8i (SELECTseries 1) 08.11.07.113

MicroStation 08.11.07.17108.11.07.03
2009-12-18

Bentley Map V8i (SELECTseries 1) 08.11.07.87

MicroStation 08.11.07.17108.11.07.03
2009-03-16

Bentley Map V8i 08.11.05.49

MicroStation 08.11.05.1708.11.05.05
Tags: OpenCities Map Advanced, OpenCities Map, OpenCities Map Ultimate, Edition, MicroStation, version, Bentley Map

- Connect to ESRI File Geodatabase

$
0
0
Revision 6 posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/3/2020 3:07:38 PM

You can connect to an Esri File Geodatabase (FileGDB) from the Map Interoperability dialog. The Esri File Geodatabase support is available in all OpenCities Map and Bentley Map V8i (SELECTSeries 4) and above editions of the product. 

Inside the Map Interoperability dialog, select the Connections tab.

Right-click on the Connections folder and select the New Esri Geodatabase Connection… option.


A new dialog will open, where you are prompted to browse for the .gdb directory.

Select the directory where the Geodatabase files are stored and select OK to continue.  The New Connection Parameters dialog will open.

  

Right-click on Current Session to access a list of options, including to Check All or None of the features and to choose how the features will be shown.

 

Edit General, Connection Parameters, Feature Parameters and Feature Symbology as desired. 


Select ‘Connect’ to establish the connection.


Note: OpenCities Map & Bentley Map currently support version 10.x of the File Geodatabase and previous versions cannot be opened. You can also connect to an ESRI File Geodatabase by using a registered connection (created in Bentley Geospatial Administrator), by opening a saved XML file (.gbdx) or by importing .gdb file from the Imports tab of the Map Interoperability dialog.

Tags: OpenCities Map, Esri File Geodatabase, Interoperability, Bentley Map

- Domain list initial values

$
0
0
Revision 7 posted to Bentley Map | OpenCities Map Wiki by Sanket Butala on 12/4/2020 12:19:25 PM

The initial value of a domain list property can be set to include customized text such as Select Land Use by editing the Initial Value field of the definition.

However, if the Read Only option is enabled, the Initial Value field can not be set since it will be expecting a selection from the domain list.  Enhancement #212460 has been filed to allow you to enter an initial value regardless of the Read Only option status.

Additionally, if you turn on Add blank entry to list, and enable the Read Only option, you will get a blank value selected automatically. And based on your workflow, it might be important since some value at the time of feature placement might be unknown.

 

This is for XFM.  For registered features for Oracle and SQL,  these settings are defined in the database, but the functionality explained above remains the same.

 

 

Tags: initial value, default value, Domain list, GSA

- Create XFM DGN file using Import from database

$
0
0
Revision 4 posted to Bentley Map | OpenCities Map Wiki by Sanket Butala on 12/4/2020 2:31:09 PM

Using OpenCities Map to import spatial data from Oracle (read-only), SQL Server (read-only), WFS (read-only), and Esri File Geodatabase (read-only)  creates a self-contained DGN file with XFM features.

This allows you to work in a disconnected environment meaning that you're not connected to the source database.  The feature table information is replaced with  XML fragments on the graphic elements and are stored in the DGN file.  XFM DGN files can be edited using OpenCities Map tools without the need for a database connection.

To access the data within the database in a disconnected mode,  select Imports\Exports dialog from Interoperability tab under Map workflow. Create a New import option to import data from database.

Important Note:  In this setup, you would not intend to post additions, deletions and changes back to the database.

Import/Export

The Connection Information for a feature queried from a spatial database.  In this example, the database is SQL Server:

The Connection Information for a feature imported from a spatial database.  In this example, the database is SQL Server (read-only).  Notice the absence of information.  This is a good indicator that the design is a XFM DGN.

 

Tags: read-only, XFM, Interoperability, Bentley Map

What's New in OpenCities Map CONNECT Update 5

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 3:21:46 PM

See what's new in the latest release of OpenCities Map:

communities.bentley.com/.../WhatsNewInOpenCitiesMapUpdate5v2_5F00_720.mp4

Save time

  • Split and Merge 3D polygons. 10-times faster and in a single-step. This feature is only available in OpenCities Map Enterprise.

3D Layers Creations

  • 3DBuffer – Automatically create a 3D building layer from legacy 2D building footprints and height information. This layer can then be converted as CityGML LOD 1, which increases the value of the legacy 2D data by creating a 3D layer from it which shares the same semantic information. This feature is only available in OpenCities Map Enterprise.

Enhanced Interoperability of CAD and GIS Data

  • CAD to GIS: Auto-Promote – With AutoPromote, any DGN elements created on reserved levels will automatically be promoted as XFM features. These XFM features are ready to be written to spatial databases, which serve as points of integration with OpenCities Planner.
  • GIS to CAD: With the “Export to DGN,” the XFM information is translated to a standard DGN using "Item Types" to store semantics information. With this DGN, it is easier to share GIS assets with BIM applications and is a point of interoperability with other Bentley solutions.
  • CAD to GIS: A solid or smart solid can now be promoted to a 3D polygon collection.

New Features and Capabilities

  • 3D models can be exported to LumenRT software to visualize and add animations to your design. The LumenRT tool is in the "Visualization" workflow. This feature is only available with OpenCities Map Enterprise. For additional information, see the LumenRT page.
  • Defined views in PostGIS are now discoverable when registering features in the Geospatial Administrator.
  • When creating a Print Model, the list of available layers is now synchronized with the Map Manager in the Legend Options dialog.
  • The key-in FENCE STROKE has been restored.

Technology Preview Features

  • Support for CityGML data including:
    • A delivered sample schema named "CityModel".
    • Importing and exporting CityGML data via the "Interoperability" dialog.
    • Promote to CityGML
    • CityGML Editing
    • CityGML settings for Split Polygon.
    • 3D Smart Editing for CityGML data.
  • Labeling has several enhancements, including : specifying label frequency, specifying area type to label, trimming labeled elements to the view, containing labels within a closed element, and setting the maximum label size factor.
  • Label Collision Detection to detect and resolve text conflicts.

Download links: NOTE: Map & Map Enterprise were renamed in 2020, to Map Advanced and Map Ultimate.  Map PowerView name remains the same

OpenCities Map PowerView: https://softwaredownloads.bentley.com/en/ProductDetails/1940 
OpenCities Map: https://softwaredownloads.bentley.com/en/ProductDetails/1941 
OpenCities Map Enterprise: https://softwaredownloads.bentley.com/en/ProductDetails/1942

Tags: OpenCities Map PowerView, OpenCities Map, update 5, CityGML, LumenRT, OpenCities Map Enterprise

- Buffer and Overlay require 2D

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 3:27:53 PM

The OpenCities Map Buffer and Overlay tools are disabled when working in a 3D model.  To take advantage of these tools, export the model to 2D using File > Export > 2D.

Tags: Buffer, Overlay Analysis, 3D, 2D

- Contour generation from DEM data

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 3:29:55 PM

The following content requires the use of Scalable Terrain Models which is only available with Bentley Descartes or OpenCities Map Ultimate.

In a 3D design file, ensure a valid Geographic Coordinate System has been attached.

Select File > Scalable Terrain Model

Select the New button and create the STM file in a folder of your choice. The New STM Settings dialog will open.

In the Calculated Features Display pane, turn on the Contours and turn off the Triangles and Draped Rasters.

The new STM is added to the Scalable Terrain Model dialog and the STM Elevation Source Editor opens.

In the Source Editor, add your DEM:

 

When all of the source elevation data has been added, generate the STM.  Note that this may take some time depending on the volume of data to process.

If needed, fit the view to see the contours

Contour symbology and spacing can be edited via the Element Information dialog.

First select the STM, then choose the Element Information tool.

Expand and edit each node to obtain the desired results.

Note:  An alternate workflow is to attach the DEM via the Raster Manager.  Then select Utilities > Scalable Terrain Model from the Raster Manager menu.

Tags: DEM, MicroStation, 3D, Contours

- Extruding 3D Manholes

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 4:10:09 PM

The 3D manhole extruder tool allows OpenCities Map users to display 3D manholes based on 3D points having proper property information allowing defining the manhole dimensions.

This tool is offered as an example of what can be done with the OpenCities Map API OpenCities Geospatial API and comes without any guarantee or support.

Extruded 3D Manhole Surfaces (above position)

Extruded 3D Manhole Surfaces (under position)

Note : This tool requires XFM data contained in a 3D design file and does not work with 2D features.

 3d_manhole_extrude - help_document.pdf

 3d_manhole_extrude.zip

Tags: XFM, 3D, Bentley Map, XFT

- Filters for Create Buffer

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 7:25:42 PM

Spatial Filter can be used to buffer the feature instances within a specified spatial extent.

  1. In Map Manager, right-click on the Layer name and select the Buffer item. The Create Buffer dialog Opens. Click on the Spatial Filter tab to limit the spatial extent of the buffer.
  2. You can choose only one option at a time from the following:
  • None : This option is Selected By Default. Buffers all the feature instances.
  • Fence: This option is activated if a fence is placed. Only buffers feature instances within the fence.
  • Selection Set: This option is available if selection set is active. Only buffers feature instances in the selection set.
  • View : You can choose from the existing Views. Only buffers feature instances in that view.

                

Data Filter is used to buffer feature instances that meet certain criteria.

  1. In Map Manager, right-click on the feature> Buffer > Create Buffer Window Opens> Click on Data Filter tab to limit the buffer based on specific criteria.
  2. Once you the specify a criteria, only the features that meet this criteria will be buffered.

                

 Please refer to the following link for additional information on buffer tool in OpenCities Map:

Creating Buffers

Tags: data filter, Bentley Geospatial Desktop, spatial filter, Buffer, Spatial Analysis, Bentley Map

- Point/Line‐to‐Area Overlay Analysis

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 8:09:01 PM

Overlay shows the relationships between two existing features. OpenCities Map provides tools to perform a variety of overlay operations –you can find points that fall within polygons, lines that overlap polygons, and so forth. The result is a new layer in the Map Manager; a new Feature. When creating an overlay on two layers, a new layer is created containing the resulting graphical elements. In addition, the properties of both contributing layers are copied to the overlay layer. This allows you to edit and report on the overlay features using OpenCities Map tools like the Data Browser.

Only two layers can be overlaid at one time.

When one of the layers to be overlaid is a point layer or a linear layer, the Linear / Point operation section of the Topology Analysis dialog box is activated, as-shown below.

In the Linear / Point operation section, you must select the feature you want to keep in the overlay output layer: the points or lines, or the polygons.

There are three selection criteria for point/ line‐to‐area overlays: Inside, Outside, and Overlap.                                      

                                                     

These criteria may be enabled individually or in combination. Each type of operation will have different results.

                                    

  Criteria

When Keeping Point/Line Layer

When Keeping Area

 

Inside

 

When keeping the points or lines, it returns all points or lines in the point/line layer that are contained entirely within the areas in the polygon

layer.

 

When keeping the areas, it returns all areas in the polygon layer that contain at least one of the points or lines in the point/line layer.

 

 

Outside

When keeping the points or lines, this returns all points or lines in the point/line layer that are entirely outside the areas in the polygon layer.

When keeping the areas, it returns all areas in the polygon layer that do not contain any points or lines in the point/line layer.

Overlap

For Points

 

 

 

 

 

For Lines

 

 

When keeping the points, it returns all points in the point

layer that lie exactly on the boundaries of the areas in the polygon layer

 

When keeping the lines, it returns all lines in the line layer

that overlap the boundaries of the areas in the polygon layer.

 

When keeping the areas, it returns all areas in the polygon layer with boundaries that lie on points in the point layer.

 

 

When keeping the areas, it returns all areas in the polygon layer with boundaries that overlap lines in the line layer.

 

Steps to perform Point/Line to Area overlay analysis:

 1) In the Map Manager, Right-click on the point layer and select Overlay

                                        

2) The Topology Analysis dialog opens, and the selected layer is automatically added to the ‘Layers to be overlaid’ list on the right side of the dialog box. Now use the arrow buttons to select the Polygon layer.

3) Once the Point and Polygon layers are selected, the Linear/Point operation will be activated. In the example shown below, the following options were set:

Keep: Lot_Shapes (Area Layer) – Select the layer for output geometry

 Inside: enabled

 Outside and Overlap: disabled

                                           

4) Type a name for the overlay in the Result field, and select the Ok button. The new Feature is added to the Map Manager Layers list.

                                  

Results are shown in this example – the Overlay Output layer in Grey has returned all the Lot_Shape containing the Block_Centroids.

                                                                          Data Browsers of individual layers                   

                                       

                                               Block_Centroid                                  Lot_Shapes Feature Properties

                                      

                                       After Overlay- Data Browser of the Output Overlay Feature with combined properties

       

communities.bentley.com/.../3288.PointLineToAreaOverlay.pdf

Tags: OpenCities Map Advanced, OpenCities Map PowerView, overlay, OpenCities Map Ultimate, Line to Polygon, Overlay Analysis, Spatial Analysis, Map Manager, Point To Polygon

- Conflict Inspector

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 8:25:05 PM

You can also refer to the OpenCities Map Help documentation : Working with spatial database > Database Considerations > Using Oracle Spatial Versions

 

A conflict occurs only at the time of a Merge. It must be resolved before the merge. A conflict can already occur between 2 versions of the same Oracle user. If the accessed Oracle tables are not in optimistic mode, but are in pessimistic mode, then the last person to commit to a given version will always be successful (i.e.: the edits will overwrite the existing values in the table) and no conflict will be reported.

 

Conflicts allow three states of the same feature instances: ACTIVE, BASE, and CHANGED BASE.

  • ACTIVE: The state of the database from the version that is conflicting.
  • BASE: The database from the Parent version at the time the child version was created, before any edits were made. This can also be a child of LIVE (or deleted, not visible?).
  • CHANGED BASE: The database from the other child version that was created and committed before or simultaneously with the ACTIVE version.

 

Example:

 

Open the Select Version dialog. The version east_city_lots_version2 is in red.
  

To resolve the conflicts open the Conflict Inspector.

   
 

Note: The option Resolve Conflicts is only available w/ a version w/ transaction mode is Optimistic Locking.

 

Resolve the conflicts in the Conflict Inspector. Select the Feature and click Active to use the current Status. The dialog should be empty
  

 

Click close, you will be asked to commit the current conflict session, click Yes to continue.

  

Merge the version East_city_lots_version2 into Live.



Tags: Optimistic Locking, Using Oracle Spatial Versions, Conflict Inspector

- Convert DGNs with MSLinks to MS SQL Server Spatial via FME

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 8:37:09 PM

Note: This process was originally written for Bentley Map V8i.  It works equally well with the OpenCities Map CONNECT Edition.

DGN with MSLinks to MS SQL Server Spatial

This document provides a general description of how to convert DGN data with MSLinks to MSSQL Server Spatial. This is achieved by using Bentley Map (SELECTseries 4) to export the DGN data to ESRI file Geodatabase. The resulting data is then translated to MSSQL Server Spatial via FME from Safe Software Inc. While not tested, it’s presumed that this workflow would also work for Oracle Spatial.

This document is not intended to be a training guide for FME or MSSQL Server Spatial.

The following products were used for this workflow:

  • Bentley Map Enterprise (SELECTseries 4)
  • FME Desktop 2014 SP2 from www.Safe.com
  • Microsoft SQL Server Spatial 2008 R2

 

Step 1 - Export to ESRI File GDB

The following describes the process used to “spatialize” design data by using an intermediate file format: ESRI File Geodatabase.

In Bentley Map, open any design file that contains graphics linked to an RDBMS via MSLinks.

If desired, attach all other files as references, then using the Map Interoperability dialog, export selected features to ESRI File Geodatabase. The export will create a single GDB containing the geometry and attributes for the selected features.

For a successful translation, be aware of the following:

Graphical features must be topologically correct. Invalid geometry can be imported into MSSQL Server Spatial, but may have issues being queried. An example of invalid geometry is as follows:

MSLink Database Type must match the datasource. For example, if an ODBC datasource is used, then the linkage type must be ODBC. If needed, the type can be changed using the Verify Linkages from the Settings menu in either MicroStation or Bentley Map. The following graphic shows both ORACLE and ODBC linkage types in the open design file.

The Bentley Map project schema must match the graphics. Ensure that all features and their properties are defined correctly. A quick check to verify the export was successful is to import the data into an empty design file. The resulting graphics and attributes should duplicate the originating source files. Once successfully exported to GDB, the data can then imported into MSSQL Server Spatial by using FME from Safe Software Inc.

 

Step 2 - FME to push ESRI GDB to SQL Server Spatial

The following describes how to use FME to import the ESRI file geodatabase into MSSQL Server Spatial.  This section is only intended as an overview and not product training. Please contact Safe Software Inc. for training and support on FME.

Open FME Workbench and generate a new workspace. Set the source data to Esri Geodatabase (File Geodb API) and the destination format to Microsoft SQL Server Spatial. Set the database parameters as needed and choose Static Schema. When done, FME will build the translation model showing mapped features similar to the following example.

The Reader and Writer Feature types can be expanded to show the mapped properties. The dataset used for this document included features with MSLinks to an Microsoft Access database, XFM features with user attributes and XFM features without user attributes.

 

Features with Database Attributes:  The Buildings shape feature contains a variety of user defined database attributes.

 

XFM Features with properties:   Blocks are XFM shape features with a single property called Number.

 

XFM Features without properties: The Curbs are simple XFM linear features and have no properties.

FME Workbench provides the ability to edit a wide variety of settings via the Feature Type Properties dialog. The User Attributes tab lists the names and data types for each column that will be created during the translation.   These column properties can be changed prior to translation. For example, the default length for varchar fields is 255 which may be too long in some cases. Using this dialog, that value can be changed to a more manageable number and eliminates the need to modify the column properties after the table has been created in MSSQL Server Spatial.

In the FME Workbench Navigator, verify the translation parameters, and make adjustments if necessary. This may include adding coordinate system to the writer.

Click the Run button and check for errors. As well, note the number of features written to MSSQL Server Spatial are added to the mappings:

The total of these values should match the number of elements in the design files from which the data was exported. The following graphic shows the export results from Bentley Map to ESRI GDB and shows that 26516 features were exported.

As expected, importing this data to MSSQL Server Spatial shows that 26516 elements were written.

Once imported, the FME Data Inspector can be used to visually inspect the data and review the attributes.

The data can also be verified on the Spatial tab in Microsoft SQL Server Management Studio by choosing Select Top 1000 Rows from the tables right click menu or by issuing a simple query such as:

Select * from lots;

Step 3 - Add Primary Key (PKID)

If the data appears correct, a primary key can be added to each table by executing the following two SQL statements.

alter table dbo.tableName

add pkid int identity;

 

alter table dbo.tableName

add constraint pk_tableName

primary key (pkid);

 

Step 4 - Validate Geometry

Although the data appears to be correct, and may import without errors, it’s recommended to convert invalid data to valid data an SQL statement against a selected table. This action is done from Microsoft SQL Server Management Studio. To verify if a table has invalid data, execute this SQL.

 

select PKID, geom.STIsValid()from TableName

Valid geometry is returned with a value of 1, and invalid with a value of 0 as shown.

Instances of invalid geometry need to be converted to valid geometry by using the following SQL command against a selected table. Note that the MakeValid command might cause points in the geometry to shift.

 

Update TableName set geom = geom.MakeValid();

 

 

Step 5 - Optional Database Administration

Bentley Map automatically calculates and displays the Geometry_Area, Geometry_Perimeter and Geometry_Length when querying features.

Queries from MSSQL Server Spatial will automatically generate Database_Area, Database_Perimeter, and Database_Length . For this reason the Geometry attributes imported from Bentley Map can be deleted from the feature tables.    Likewise, SYNTHETIC_OID, OGC_GEOMETRY_Length, OGC_GEOMETRY_Area are generated during the export to ESRI GDB and can be deleted from MSSQL Server Spatial.

 

Step 6 - Bentley Map Geospatial Administrator  

When the ESRI file GDB has been successfully imported and verified, the features are registered in Bentley Map Geospatial Administrator.

In Geospatial Administrator, create a new project schema, define a workspace, a named SQL Server Spatial Connection and register the features that were added to the database.

Perform the other housekeeping tasks which includes: setting the feature symbology including property based symbology, defining the metadata, updating the Command Manager, and defining the workspace. When complete, the project schema can be saved and exported for use with Bentley Map.

Step 7 - Bentley Map

Open Bentley Map (SELECTseries 4), connect to the SQL Server Spatial graphical source and query the features. On some occasions, geometry appears to be valid, but is considered invalid by MSSQL. In this event, querying the spatial features will generate an error similar to the following:

 

If MakeValid in Step 4 above does not correct errors as expected, it may be worthwhile to revisit the original graphics and correct the errors directly in the design files.   Bentley Map provides topology cleanup and creation tools that may assist in this task. When complete, delete the feature table with invalid graphics, and repeat the steps above to populate MSSQL Server with the correct geometry.

Finally, verify the data can be posted back to MSSQL.

- modified Wiki Category, 07/06/2017

 

Tags: OpenCities Map Ultimate, SQL Server Spatial, FME, Interoperability

- Create domain lists in Microsoft SQL Server Spatial or Oracle

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 8:45:19 PM

Introduction

By default, the registering features from of an Oracle or MSSQL spatial table will define properties as Text Properties. To enhance this, the OpenCities Map provides the ability to identify lookup tables in the database and use them as XFM domain lists. This way, properties can be defined as pick lists.

In the following example, the Building feature has two domain lists to control the values for the Heating System and the Usage. The Heating System consists of a single column of values while the Usage contains two.

communities.bentley.com/.../Building-with-two-domain-lists-_2800_Article_2900_.mp4

Configuring database tables for use as domain list is a two-step process.

  • Create a lookup a lookup table, and
  • Define a foreign key to specify the relationship between the lookup table and the parent table. When dealing with OpenCities Map, this would typically be a geometry table to hold your GIS features.

The following script can be used to create the simple table for Building features in SQL Server:

/*Create Building table*/

CREATE TABLE Buildings(

       ID int IDENTITY(1,1) NOT NULL,

       BuildingID int NULL,

       YearBuilt int NULL,

       Usage varchar(24) NULL,

       Heating_System varchar(24) NULL,

       GEOM geometry NULL,

      

CONSTRAINT PK_Buildings PRIMARY KEY CLUSTERED

(

       [ID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];

Step 1 – Create Lookup Tables

 NOTE: At the time of this writing, OpenCities Map supports up to 24 columns in a lookup table.

The following creates a new table called Bldg_Usage with two columns: Usage and Code. Note that the Usage datatype varchar(24) must match the same column in parent table.

 

/****** Create Building Usage Lookup Table for domain list ******/

CREATE TABLE Bldg_Usage(

       Usage varchar(24) NOT NULL,

       Code varchar(24) NULL,

CONSTRAINT PK_Bldg_Usage PRIMARY KEY CLUSTERED

(

       [Usage] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY];

 

 

The following creates a new table called Bldg_Heating_System with one column to specify the Type. Note that the datatype varchar(24) match the Heating_System column in parent table.

 

/****** Create Building Heating System Lookup Table for domain list ******/

CREATE TABLE Bldg_Heating_System(

       Type varchar(24) NOT NULL,

CONSTRAINT PK_Bldg_Heating_System PRIMARY KEY CLUSTERED

(

       [Type] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY];

 

 

 

 

Step 2 – Populate lookup tables with values

 

Values are inserted into the newly create lookup table for Bldg_Usage.

/** Insert values into Usage lookup table.

INSERT Bldg_Usage (Usage, Code) VALUES ('Residential', 'R-303')

INSERT Bldg_Usage (Usage, Code) VALUES ('Business', 'B-304')

INSERT Bldg_Usage (Usage, Code) VALUES ('Educational', 'E-305')

INSERT Bldg_Usage (Usage, Code) VALUES ('Detention', 'D-306')

INSERT Bldg_Usage (Usage, Code) VALUES ('Care', 'H-307')

INSERT Bldg_Usage (Usage, Code) VALUES ('Industrial', 'I1-308')

INSERT Bldg_Usage (Usage, Code) VALUES ('Factory', 'I2-308')

INSERT Bldg_Usage (Usage, Code) VALUES ('Miscellaneous', 'M-309');

 

 

Values are inserted into the newly create lookup table for Bldg_Heating System.

/** Insert values into Heating System lookup table*/

INSERT Bldg_Heating_System (Type) VALUES ('Natural Gas')

INSERT Bldg_Heating_System (Type) VALUES ('Oil')

INSERT Bldg_Heating_System (Type) VALUES ('Electric')

INSERT Bldg_Heating_System (Type) VALUES ('Wood')

INSERT Bldg_Heating_System (Type) VALUES ('Geothermal')

INSERT Bldg_Heating_System (Type) VALUES ('Solar')

INSERT Bldg_Heating_System (Type) VALUES ('Unknown');

 

 

Step 3 – Add Foreign Keys

A foreign key is added to formalize the relationship between the lookup table Bldg_Usage and the parent table Buildings. Note that the column Usage exists in both tables and is the same datatype.

This ensures referential integrity of the database.

/** Add foreign key for Building Usage lookup table */

ALTER TABLE Buildings WITH CHECK

ADD CONSTRAINT FK_Building_Usage

FOREIGN KEY(Usage)

REFERENCESBldg_Usage (Usage);

 

ALTER TABLE Buildings CHECK CONSTRAINT FK_Building_Usage;

A foreign key can also be added to formalize the relationship between the lookup table Bldg_Heating_System and the parent table Buildings. In this case, the column Type in Bldg_Heating_System is the same datatype as the Heating_System column in Buildings table.

/** Add foreign key for Heating System lookup table */

ALTER TABLE Buildings WITH CHECK

ADD CONSTRAINT FK_Building_Heating_System

FOREIGN KEY (Heating_System)

REFERENCESBldg_Heating_System (Type);

 

ALTER TABLE Buildings CHECK CONSTRAINT FK_Building_Heating_System;

Step 4 – Register Features in Bentley Geospatial Administrator

With the tables created, and the foreign keys defined, the features can be registered in the Geospatial Administrator.

On the first page, select both Simple Geometry Features and Nonspatial Features. On the Features to Register page, only select the feature with geometry.

The relationships defined in the database are converted into list domains and are noted in the Domains Registration page

When the registration is complete, the feature properties with domain lists are correctly generated as combo box properties.

The contents of the database lookup tables are added to the Domains node.

NOTE: The contents of domain lists are generated from the lookup table in the database. The columns are displayed in alphabetical order which may not correspond to the table layout.

NOTE: The columns are named Value1, Value2, Value3, … etc, however the feature definition refers to them as col1, col2, col3,… etc.

 

The following content deals specifically with the Bldg_Usage domain list.

The appearance and behavior of domain lists can be further defined in the ComboBox Property definition. For example, the first column in the Bldg_Usage can be named Code, and the second column can be named Usage.

These are entered in the preferred display order in the List Columns section of the ComboBox Property definition page.

NOTE: col1 and col2 are case sensitive.

 

During feature placement, the Usage (col2) column should be shown in the picklist, so it is set as Edit Col Name. The Edit Col Name is used as the display value for PBA, Labeling, XFM Place and Edit Dialog, Analyze, and Element Info.

The Value Col Name is the stored value which will display in the Search dialog, Data Browser, Thematic, Export to file, and Post to database.

In this example, col2 is used for both the Value Col Name and Edit Col Name in the ComboBox Property page:

NOTE: To learn more about setting the Value and Edit Col Names, refer to:

 https://communities.bentley.com/products/geospatial/desktop/w/geospatial_desktop__wiki/21741/--value-col-name-vs-edit-col-name

Step 5 – Verify in Bentley Map

Lastly, the feature metadata is inserted, and the project is exported. When done correctly, the lookup tables will display as a picklists when placing or editing the Buildings feature.

NOTE: The contents of the list is generated alphabetically.

A zip file containing the project schema, SQL Script, and PDF of this article commands are provided for your learning. 

The SQL Scripts were run and tested against Microsoft SQL Server 2014 only.

 It is understood that the script is provided AS IS and should only be run in a scratch or test database.

Bentley Systems, Incorporated assumes no liability for damages direct, indirect, or consequential, which may result from the use of this script. Use at your own risk.

communities.bentley.com/.../Buildings-and-two-domain-lists.zip

Tags: Oracle, OpenCities Map, Geospatial Administrator, SQL Server, Domain list

- Creating Oracle Spatial multi-table views

$
0
0
Current Revision posted to Bentley Map | OpenCities Map Wiki by Dan Weston on 12/10/2020 8:59:41 PM

This article (Creating Oracle Spatial Views) discusses creating an Oracle view to limit the number of property columns displayed by OpenCities Map.   For example, a map reviewer may only need to see 3 or 4 properties while the table may have a dozen or more.  Setting up a view that only reveals the needed parcel properties is an ideal solution in this case.

In another situation, you may have an OpenCities Map spatial table named PARCELS that's maintained by OpenCities Map users and an attribute table named TAXES that's maintained by a data entry clerk.  In reviewing workflows, you find that it would be productive if the OpenCities Map users had access to a few of the properties in the TAXES table.  This would eliminate the data entry clerk from having to correspond with the GIS department in order to update records in the TAXES table.

To set this up, consider the following.

A PARCELS table (spatial)  is created using GID (Graphic ID) as the primary key.  The table also has the following properties: PARCEL_NUM, LAND_TYPE, FIRE_DISTRICT, TOWNSHIP and GEOMETRY.

DROP TABLE PARCELS CASCADE CONSTRAINT;


CREATE TABLE "PARCELS" 
(
  GID NUMBER CONSTRAINT PARCELS_PK PRIMARY KEY,
  Parcel_Num NUMBER,
  Land_Type VARCHAR2(20),
  Fire_District VARCHAR2(20),
  Township VARCHAR2(20),
  Geometry MDSYS.SDO_GEOMETRY);

The spatial metadata is inserted into USER_SDO_GEOM_METADATA:

DELETE FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME='PARCELS';


INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
  VALUES ('PARCELS', 'Geometry',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 2197290.78, 2401264.08, 0.00000005),
    MDSYS.SDO_DIM_ELEMENT('Y', 703310.077, 911592.401, 0.00000005)
),
NULL);

The spatial index is created:

DROP INDEX PARCELS_SIDX;

CREATE INDEX PARCELS_SIDX ON PARCELS(Geometry)
INDEXTYPE IS mdsys.spatial_index
PARAMETERS ('layer_gtype=POLYGON, sdo_indx_dims=2')
;

And three records are added to the newly created PARCELS table:

Insert into PARCELS (GID,PARCEL_NUM,LAND_TYPE,FIRE_DISTRICT,TOWNSHIP,GEOMETRY) values (1001,31013,'Residential','101','Mountain View',MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1), MDSYS.SDO_ORDINATE_ARRAY(2298997.85649565, 814652.663198157, 2298997.85649565, 813840.697843586, 2299884.32058343, 813840.697843586, 2299884.32058343, 814652.663198157, 2298997.85649565, 814652.663198157)));

Insert into PARCELS (GID,PARCEL_NUM,LAND_TYPE,FIRE_DISTRICT,TOWNSHIP,GEOMETRY) values (1002,31014,'Commercial','101','Mountain View',MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1), MDSYS.SDO_ORDINATE_ARRAY(2299884.32058343, 814652.663198157, 2299884.32058343, 814177.9757601, 2301407.54056526, 814177.9757601, 2301407.54056526, 814652.663198157, 2299884.32058343, 814652.663198157)));

Insert into PARCELS (GID,PARCEL_NUM,LAND_TYPE,FIRE_DISTRICT,TOWNSHIP,GEOMETRY) values (1003,31012,'Industrial','367','Wheatland',MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1), MDSYS.SDO_ORDINATE_ARRAY(2301407.54056526, 814652.663198157, 2301407.54056526, 812766.405220614, 2301832.04449462, 812766.405220614, 2301832.04449462, 814652.663198157, 2301407.54056526, 814652.663198157)));

In order to add new records, a sequence is defined.  Note that it starts at 1004 since the table has three records which were previously inserted.

DROP SEQUENCE "PARCELS_SEQ";

CREATE SEQUENCE PARCELS_SEQ 
    START WITH 1004 INCREMENT BY 1;

At this point, the PARCELS table could be registered as a spatial feature and be used in an OpenCities Map project.  Note that OpenCities Map is only seeing the properties from the PARCELS table.

The remainder of this article discusses how to set up the Parcel feature to also see properties from the TAXES table.

The TAXES table (non-spatial) is created with the following properties:  AID (Attribute ID), PARCEL_NUM, TAX_DISTRICT, TAX_VALUE.   

DROP TABLE TAXES CASCADE CONSTRAINT;

CREATE TABLE "TAXES" 
   (
AID NUMBER PRIMARY KEY,
Parcel_Num NUMBER, 
Tax_District VARCHAR2(10), 
Tax_Value NUMBER);

Three records are inserted to correspond with the PARCELS table.  Note that the ID number and PARCEL_NUM match in this case.

INSERT INTO TAXES (AID, Parcel_Num, Tax_District, Tax_Value) 
VALUES (1001, '31013', 'MV-850', '6500');

INSERT INTO TAXES (AID, Parcel_Num, Tax_District, Tax_Value) 
VALUES (1002, '31014', 'MV-850', '6375');

INSERT INTO TAXES (AID, Parcel_Num, Tax_District, Tax_Value) 
VALUES (1003, '31015', 'WL-050', '10185');

Since the TAXES table is non-spatial and is only used to store attribute information, it does not need to be added to USER_SDO_GEOM_METADATA and a spatial index doesn't need to be created. 

Reviewing the tables in Oracle shows the following:

The next step is to create the multi-table view. In this example, all of the columns of the PARCELS table are revealed, but only the TAX_DISTRICT column from the TAXES table is included.  This will allow the Map user to update all properties in the view regardless of the table they reside in.

DROP VIEW PARCEL_TAX_VIEW;

CREATE OR REPLACE VIEW PARCEL_TAX_VIEW AS 
SELECT PARCELS.GID, PARCELS.PARCEL_NUM, PARCELS.LAND_TYPE, PARCELS.FIRE_DISTRICT, PARCELS.TOWNSHIP, PARCELS.GEOMETRY, TAXES.TAX_DISTRICT 
FROM PARCELS, TAXES 
WHERE  PARCELS.GID = TAXES.AID;

OpenCities Map requires a primary key be defined on the spatial table. However you can’t have a primary key on a view. To get around this limitation, a primary key is created and then disabled.

ALTER VIEW PARCEL_TAX_VIEW ADD PRIMARY KEY (GID) DISABLE;

Since the view will be registered as a spatial feature, it will be added to USER_SDO_GEOM_METADATA:

DELETE FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME='PARCEL_TAX_VIEW';


INSERT INTO USER_SDO_GEOM_METADATA 
  SELECT 'PARCEL_TAX_VIEW', COLUMN_NAME, DIMINFO, SRID 
  FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME='PARCELS';

Taking a look at the view in Oracle shows the following:

To accommodate INSERT, UPDATE and DELETE statements, Oracle enables you to define procedures that are implicitly executed against associated tables. These procedures are called database triggers and are defined as follows.  These triggers are required to update the correct tables when new parcels are added, existing parcels are edited or deleted.  

DROP TRIGGER PARCEL_TAX_VIEW_INS;

CREATE OR REPLACE TRIGGER PARCEL_TAX_VIEW_INS
INSTEAD OF INSERT ON PARCEL_TAX_VIEW
BEGIN
  INSERT INTO PARCELS
   VALUES (:new.GID, :new.PARCEL_NUM, :new.LAND_TYPE, :new.FIRE_DISTRICT, :new.TOWNSHIP, :new.GEOMETRY);

  INSERT INTO TAXES (AID, PARCEL_NUM, TAX_DISTRICT) VALUES (:new.GID, :new.PARCEL_NUM, :new.TAX_DISTRICT);

END PARCEL_TAX_VIEW_INS;
/




DROP TRIGGER PARCEL_TAX_VIEW_UPD;

CREATE OR REPLACE TRIGGER PARCEL_TAX_VIEW_UPD
INSTEAD OF UPDATE ON PARCEL_TAX_VIEW
BEGIN
  UPDATE PARCELS SET
   GID = :new.GID, PARCEL_NUM = :new.PARCEL_NUM, LAND_TYPE =  :new.LAND_TYPE, FIRE_DISTRICT = :new.FIRE_DISTRICT, TOWNSHIP = :new.TOWNSHIP, GEOMETRY = :new.GEOMETRY
  WHERE GID = :old.GID;

  UPDATE TAXES SET
  AID = :new.GID, PARCEL_NUM = :new.PARCEL_NUM, TAX_DISTRICT = :new.TAX_DISTRICT
  WHERE AID = :old.GID;

END PARCEL_TAX_VIEW_UPD;
/



DROP TRIGGER PARCEL_TAX_VIEW_DEL;

CREATE OR REPLACE TRIGGER PARCEL_TAX_VIEW_DEL
   INSTEAD OF DELETE ON PARCEL_TAX_VIEW
BEGIN
  DELETE FROM PARCELS WHERE GID = :old.GID;
  DELETE FROM TAXES WHERE AID = :old.GID;
END PARCEL_TAX_VIEW_DEL;
/

At this point, the view can be registered as a spatial feature in the Geospatial Administrator.

Adding new parcels updates both the PARCELS and TAXES table. 

 For example, adding the following new parcel:

...inserts the fourth row into the PARCELS and TAXES tables. Notice that the TAX_VALUE property remains NULL since the Map user did not have access to that property.

Similarly, editing or deleting existing parcels will update the tables accordingly.

communities.bentley.com/.../Creating-Oracle-Spatial-multi_2D00_table-views.zip

The attached ZIP file contains:

A PDF of this article for printing.

The SQL script for PARCELS - TAXES

And a generic script for TABLE1 - TABLE2 that you can use as a starting point.

These scripts have been tested on Oracle 12c with Bentley Map V8i and the OpenCities Map CONNECT Editions.

These scripts are supplied as-is and do not come with support. Bentley Systems Inc., and the author of these scripts assume no liability for damages direct, indirect, or consequential, which may result from the use of these scripts. Use these scripts at your own risk.

As always, please ensure you're doing all experimenting in a test database.

Tags: OpenCities Map, View, Multi-table
Viewing all 1284 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>