working with IWorkspaceFactory in ArcGIS Runtime SDK

3331
8
09-24-2015 12:30 PM
BehzadRouhieh1
New Contributor

What is the "ArcGIS Runtime SDK" name space to use in C# to access IWorkspaceFactory object model?

(Please note that I need the name space in "Esir.ArcGISRuntime" ant NOT "Esri.ArcGIS")

Message was edited by: Behzad Rouhieh

0 Kudos
8 Replies
FreddieGibson
Occasional Contributor III

IWorkspaceFactory belongs to the ArcObjects SDK (i.e. Esri.ArcGIS.Geodatabase.IWorkspaceFactory).

IWorkspaceFactory

http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002500000m9w000000

Are you wanting to use ArcObjects or the ArcGIS for Runtime SDK. The runtime SDK would not utilize this interface. What type of workspace are you needing to open? If you're using the Runtime SDK I'd assume you're referring to Esri.ArcGISRuntime.LocalServices.WorkspaceFactoryType enumeration.

WorkspaceFactoryType Enumeration

https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_Wor...

The above interface is what you'd use in runtime to specify the workspace type when creating a dynamic workspace.

0 Kudos
BehzadRouhieh
New Contributor

Thank you for the reply. I want to use "WorkspaceFactoryType" to connect to a personal geodatabase in .NET environment. I have "Esri.RcGISRuntime" SDK package installed. I could not find the namespace for WorkspaceFactoryType. I will try the one you suggested.

0 Kudos
FreddieGibson
Occasional Contributor III

WorkspaceFactoryType would not contain an enum for Personal Geodatabases. You'd need to convert your data to either a shapefile or a file/enterprise geodatabase.

0 Kudos
BehzadRouhieh
New Contributor

Thanks Freddie. Will I be able to read/edit features of an ".mdb" file created from the desktop Application using WorkspaceFactory?

0 Kudos
FreddieGibson
Occasional Contributor III

For personal geodatabases the answer would be no because the Runtime APIs do not support personal geodatabases. I've pointed to the documentation that states this below.

Although runtime won't allow you to edit personal geodatabases directly, I may be able to point you to another workflow that would allow you to adopt this API. Could you provide more information on the workflow you're needing to accomplish with the runtime sdk? Also, do you have access to ArcGIS Server?

Supported Geodatabase Formats

https://developers.arcgis.com/net/desktop/guide/supported-geodatabase-formats.htm

2015-09-25_0818.png

0 Kudos
BehzadRouhieh
New Contributor

Oh I did not know that. I do NOT have access to ArcGIS Server. I have a shape file (with data table attached) and I want to be able to open that in .NET, change the table fields, featuretable (Polyline color, width,etc.) ad display it in .NET as a layer on the map. Do you have any other suggestion that might work?

0 Kudos
FreddieGibson
Occasional Contributor III

Are you only needing to modify the data and display the data in runtime? If yes you could leverage a runtime geodatabase (i.e. the file that ends with the .geodatabase extension). If you wanted to use a shapefile you could load the data into runtime and manipulate it, but you would not be able to persist the data changes back to the source shapefile.

Creating ArcGIS Runtime Content

http://desktop.arcgis.com/en/desktop/latest/map/working-with-arcmap/creating-arcgis-runtime-content....

0 Kudos
BehzadRouhieh
New Contributor

I tried creating runtime content as .geodatabase extensdion. However, in .NET, with basic license, I can only read the data, not edit them. In order to edit the file, Standard license is required!

0 Kudos