How can I access the memory-based workspace via the SDK?

11-22-2019 04:09 PM
New Contributor

I've read the page on writing geoprocessing output to memory and saw an example on the SDK Github using the memory-based workspace, but all the examples either use Python or only show writes, not reads.

How can I access feature classes in memory using the SDK (currently using 2.4)? 

1 Reply
Occasional Contributor

Not sure if you found out how to access an in memory feature class, but it took me quite a while to figure it out.  And it was all because you need to call the build method of the schemabuilder object first.  I doesn't exist until you call Build.

Then it is as easy as  *** memGeoDatabase.OpenDataset(Of FeatureClass)("Deeds") *** memGeoDatabase here is just a GeoDatabase object that is my in memory geodatabase.

0 Kudos