AnsweredAssumed Answered

Get IFeatureLayer and ITable from feature class stored in "in memory" workspace

Question asked by stanynek on Dec 22, 2012
Latest reply on Dec 27, 2012 by kenbuja

I use "InMemoryWorkspace" as output of geoprocessing tool. I'd like to get IFeatureLayer and ITable from that output. How can I get it?

My try: :)
        output = "in_memory/file"        Dim pWorkspaceFactory As IWorkspaceFactory = New ESRI.ArcGIS.DataSourcesGDB.InMemoryWorkspaceFactory Dim pFeatureWorkspace As IFeatureWorkspace = pWorkspaceFactory.OpenFromFile("in_memory", 0) Dim pFLayer As IFeatureLayer = New FeatureLayer pFLayer.FeatureClass = pFeatureWorkspace.OpenFeatureClass(System.IO.Path.GetFileName(output)) Dim pTable As ITable = pFeatureWorkspace.OpenTable(System.IO.Path.GetFileName(output))

Thanks for tips!