0

I have some sensitive data which I would prefer to only exist in memory that I wish to use in ArcGIS Pro. Loading the data into the "memory" workspace is no problem, and so is deleting it, but managing large numbers of layers in memory is problematic.

In ArcGIS Pro, is there any way to list the data available in the "memory" workspace?

Deleting the associated layers does not remove the data

2 Answers 2

2

This question was cross posted to List data in "memory" workspace -- Esri Community, and below is my reply over there.

Not all ArcPy functions that work with workspaces, e.g., ListFeatureClasses, work with the new "memory" workspace. ArcPy DA Walk usually does if you know the underlying name of the workspace and not its "memory" alias. Try:

next(arcpy.da.Walk("InMemoryDB\GPProMemoryWorkspace"))

0

This:

import arcpy,os
from arcpy import env
theWS='in_memory'
env.workspace = theWS
features = arcpy.ListFeatureClasses()
print features

works fine in ArcGIS 10.8:

enter image description here

1
  • this works for "in_memory" but not the newer "memory" workspace. from what I understand, the "in_memory" workspace actually writes some data to disk
    – Alex
    Commented Mar 9, 2022 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.