AnsweredAssumed Answered

Create new GeoDatabase with ArcGIS Pro SDK

Question asked by jameskennedy2265 on Jul 25, 2019
Latest reply on Jul 26, 2019 by jameskennedy2265

Hello,

 

I have read https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase

It looks like there is not snippet to create a GeoDatabase unless it automatically does it if it doesn't exist.

 

My code is 

Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(dbPath)));

This is for opening an existing database, but if dbPath does not exist then how should I approach creating a brand new GeoDatabase?

I have the DirectoryName and the File Name of the geodatabase, so how do I create that?

 

Thank you!

Outcomes