Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [in-memory]

for questions related to the access and use of temporary data that is stored in memory

0
votes
1answer
20 views

Getting PNG binary data from GDALDataset

I have an in memory GDALDataset of driver type PNG. How can I get the binary PNG data to send to a web client without first writing the GDALDataset PNG to disk and reading it back as a binary file?
0
votes
0answers
32 views

Performing raster analysis using Arcpy - in_memory does not preserve raster shape

I am creating a script tool using Arcpy and it transforms elevation data into a final clip polygon as part of a lengthy site selection tool. When I perform the raster analysis and save my intermediate ...
0
votes
0answers
28 views

export pymssql query to geodatabase table

I have thousands of databases in Microsoft SQL Server and I want the user to select the server and DB they want so I cannot use arcpy.ArcSDESQLExecute I am trying to use pymssql to connect to the ...
1
vote
1answer
39 views

Merging feature classes in memory gives ERROR 001156?

arcpy.AddField_management("in_memory/originalfc","ALPHABET","TEXT",1) arcpy.Select_analysis("in_memory/originalfc","in_memory/A","attr<=0") arcpy.CalculateField_management("in_memory/A","ALPHABET",'...
0
votes
1answer
39 views

arcpy doesn't save output from “Generate Points Along Lines” to “in_memory”

I'm trying to run the tool "Generate Points Along Lines" like this: arcpy.GeneratePointsAlongLines(inputFeature,r"in_memory\temp","DISTANCE","100 meters") when setting the output as "in_memory", an ...
1
vote
1answer
50 views

Unable to Process Line Feature Class in in_memory Workspace

I'm trying to run a script that will generate a contour map from a raster in a geodatabase, run Simplify Line on the contour map, and then run Smooth Line. At first I ran it in disk, and it worked (...
1
vote
0answers
36 views

Can in_memory act as a regular directory in the memory? [closed]

I am having trouble with raster clipping whenever the result is saved to a GDB, is there any other way to geoprocess in the memory and have the results behave as if saved to a normal directory?
1
vote
1answer
47 views

How to add GPInMemoryWorkspace to ArcCatalog?

I was trying to see if there was a way to visualize the data I am creating and placing in_memory and the help page mentions what the reference is named, but it doesn't at all instruct how to actually ...
1
vote
2answers
49 views

Using in_memory in Python deletes values in field - Arcgis 10.4.1

I have a problem in using the in_memory function in a Python-script. I have a shapefile test.shp with 3 fields (Alter, Geschlecht, Anzahl) and 2 rows of data. When I am using arcpy....
3
votes
1answer
92 views

Using tempfiles for intermediate dataset in ArcPy?

I want to create a simple python arcpy script for ArcGIS. Because in my script I have to many raster and shp where I need only to take final result I try to use tempfiles for this unusually datasets....
1
vote
1answer
197 views

Saving pyqgis QgsGeometryAnalyzer.dissolve output in memory?

How to save pyqgis QgsGeometryAnalyzer.dissolve output in memory (temporal layer)? Usage example: from qgis.analysis import * shp_path = "C:\shape_file.shp" QgsGeometryAnalyzer().dissolve(layer, ...
4
votes
1answer
380 views

Store bands in temporary file Rasterio

As I'm using multiple functions in one process, I would like to pass results of each function to the next one using an In-memory File. I'm using Rasterio and I saw that there is a way to create In-...
4
votes
2answers
343 views

Memory leak in ArcGIS Pro: in_memory workspace is not deleted

I have a python script for ArcGIS Pro 2.0.1 that executes the same code with the same data size in a loop. So intuitively the run times of the iterations of the loop shall be about the same. However, ...
1
vote
0answers
44 views

Saving focal statistics in memory using ArcPy?

I'm currently working on a project where I have written a script that is suppose to do several things. one of these is creating a "quick" focal statistics, from which I extract the values to some ...
0
votes
2answers
148 views

Opening feature class created in_memory using ArcObjects?

How do you open an IN_MEMORY featureclass? The code below is not working: IGPUtilities2 gpUtils = new GPUtilitiesClass(); IFeatureClass featureClass = gpUtils....
1
vote
0answers
234 views

Using “Merge” with in_memory workspace with Arcpy in ArcMap 10.4

I am attempting to merge three tables, all within the in_memory workspace. The merge appears to work fine, but when I try to call the merged table, it cannot be found. I have isolated the issues to ...
1
vote
0answers
46 views

Error 00358 when using arcpy.SelectLayerByAttributeManagement [duplicate]

All I'm trying to do is use SelectLayerByAttribute to select all lines less than 5.1 meters. However, no matter what query I try I keep getting "error 000358 invalid expression" when I run the script ...
0
votes
0answers
96 views

pgr_dijkstraCost() Many-to-Many exceeding RAM disponibility

I am working with PostGreSQL 9.6, pgRouting 2.4.1 and PostGis 2.3.1 on a Linux with 3Gb of RAM and 4Gb of SWAP. I am trying to launch the following query : SELECT start_vid as building, end_vid as ...
4
votes
1answer
2k views

Cannot delete in_memory workspace

I wanted to use in_memory workspace, however I can't clear it. No matter if I use in Python window, in ArcMap this: arcpy.Buffer_analysis("something", "in_memory/buffer", 399) arcpy.Delete_management(...
5
votes
1answer
261 views

pyQGIS: load an in-memory (MEM format) raster as layer

Say I have an in-memory raster (i.e. a raster made by the MEM gdal driver), how can I load this raster into a QGIS layer? QgsRasterLayer's constructor wants a path to the raster file, but the in-...
0
votes
1answer
86 views

Forcing table output by geoprocessing to be added to TOC?

In ArcMap I can set a Geoprocessing option to add geoprocessing output to my table of contents (Geoprocessing > Geoprocessing Options...) If this option is enabled my script output will be added to ...
3
votes
1answer
311 views

Performing in-memory difference operation between vector layers in PyQGIS

I've been working on a project using QGIS's Python API. I need to create an in-memory layer that is defined as the difference between two polygonal vector layers, but I'm having difficulty figuring ...
3
votes
1answer
245 views

Memory allocation error encountered when automating gridmetrics in R

I am trying to run Fusion's GridMetrics from R, I wrote this for one las file: #First set up directories to keep the raw data #separate from that produced by the analysis, Input (.las) and (.dtm), #...
1
vote
0answers
164 views

ArcObjects open an existing memory workspace [closed]

With .NET ArcObjects, I discovered that I could use an InMemoryWorkspaceFactory for my temporary feature classes. It is great, but I would like to know if there is a way to open an existing InMemory ...
3
votes
1answer
76 views

Turning on metadata geoprocessing history for feature class after export/copy from in_memory workspace?

I usually run a series of geoprocessing tools by using in_memory workspace before saving a clean version of my feature classes. Most of the time geoprocessing history related to this final copy has no ...
5
votes
2answers
289 views

Using CopyFeatures_management without copying source GDB domains to 'in_memory' workspace?

I know it's probably the opposite of what would generally be desirable, but I am trying to temporarily copy a Feature Class from a File GDB with Domains into a in_memory intermediate FC without ...
0
votes
2answers
329 views

Executing cost distance in memory

Trying to run cost distance tool in ArcMap, but I keep getting the following results: ERROR 999999: Error executing function. ("esriDataSourcesRaster.InMemoryRasterHelper") Failed because of out of ...
2
votes
1answer
275 views

Memory leak while using in_memory ArcGIS 10.1

I am running a Python script to make point feature layer from a series of netCDF files and then perform a spatial join with a number of polygons and save the results as a table. I am using arcpy....
1
vote
1answer
939 views

How to list features “in_memory”

I have a script that creates a number of features "in_memory." Once I have them in memory I need my script to create a list of everything "in_memory" - I'm not sure how to achieve this. Is anyone ...
1
vote
1answer
893 views

In_memory workspace in geoprocessing services

I have a arcpy python script that runs a process that I publish as a geoprocessing service on ArcGIS Server 10.3.1. The python script uses various input feature classes. These feature classes are ...
2
votes
2answers
1k views

Out of memory when running ModelBuilder?

I'm currently using ArcGIS 10.3.1 on a 64 bit windows 7 machine. When I run the following model, every iteration adds about 20 consistent megabytes into the ArcMap sessions memory until it eventually ...
2
votes
1answer
427 views

arcpy.AddIndex_management error for in_memory variable

I am trying to optimize a script that uses addJoin_management. To do this efficiently, I am attempting to add an attribute index on the join table. I am getting a generic error when i do this though. ...
1
vote
1answer
87 views

Selecting Minimum values from in_memory dataset!

I am trying to select the minimum value from a data set being stored in the in_memory workspace. This prevents me from using sub-queries. I'm hoping that someone has found a work around for this issue ...
11
votes
2answers
3k views

Setting in memory workspace in ArcPy?

Is it possible to set env.workspace = "in_memory" in ArcPy using both ArcGIS Pro and the ArcGIS 10.2.2 (or 10.3) architectures? What I am trying to do is get the output of a snap pour point operation ...
1
vote
2answers
609 views

Trying to copy features from an in_memory table to feature table

i just want to write the in_memory table to a table in a .gdb import arcpy from arcpy import env import os import sys scriptPath = sys.path[0] thisFolder = os.path.normpath(os.path.dirname(scriptPath)...
1
vote
1answer
406 views

Invalid expression error 000358 when using in_memory workspace? [duplicate]

Make Feature Layer with an SQL Selection Expression against a geometry property like length fails when the source feature class is in an in_memory workspace. An otherwise identical model works just ...
1
vote
1answer
118 views

Struggling with in_memory to erase faster

I want to delete all points inside a polygon layer: import arcpy import time arcpy.env.workspace = r"E:\DensityMaps\DensityMapsTest1.gdb" arcpy.env.overwriteOutput = True start_time = time.time() ...
2
votes
2answers
3k views

Copying features from 'in_memory' to 'in_memory' using ArcPy?

I came across this post and found out about Copy_management(). Is it possible to copy an in_memory feature to another in_memory feature? I tried to test it using the following code, which fails: ...
2
votes
1answer
179 views

Creating subfolders in ArcPy's 'in_memory'

Is there a way to create a subfolder in memory in ArcPy? For example, instead of temporarily saving a dataset under: r'in_memory/bufferOne' I would like to save it under: r'in_memory/buffers/...
0
votes
1answer
265 views

ArcMap 'in_memory' trouble?

Being new to ArcMap, and ArcPy I have a problem with a script including several geoprocessing functions. The number of functions inspired a search for a means to save outputs (subsequent inputs) to ...
2
votes
0answers
351 views

Multiprocessing and ArcGIS in_memory workspace? [closed]

I am trying a script that makes use of multiprocessing and a number of tools within arcpy. The script works only if I write all input, intermediate, and output from child multiprocessing executions to ...
0
votes
2answers
658 views

Optimizing script with in_memory selection

I had a problem solved here. I had 2 features: polygons and points, both containing similar attributes(example: street name, number). Each polygon must have equivalent point added(same street name, ...
5
votes
2answers
13k views

What causes ERROR 000210: Cannot create output in_memory\AND from ArcPy?

The ArcGIS for Desktop "ERROR 000210: Cannot create output" has been reported on this site a number of times but an in_memory workspace seems to have been implicated only once: ERROR 000210: Cannot ...
3
votes
0answers
195 views

Can a QGIS GeoJSON vector layer be held in-memory?

When I add a vector layer to QGIS using data in GeoJSON format, data from the server are being displayed. The problem is that every change of the map extent (pan, zoomIn, ZomOut) is causing a request ...
3
votes
1answer
689 views

Is the MakeFeatureLayer temporary location the same as “in_memory”? [duplicate]

From the ArcGIS Desktop Help: The layer that is created by the tool is temporary and will not persist after the session ends unless the layer is saved to disk or the map document is saved. ...
2
votes
1answer
336 views

ArcGIS 10.1 Aggregate Points cannot create output

I'm trying to use the tool Aggregate Points with output created using in_memory but the tool keeps failing with: "ERROR 000210 Cannot create output \Output_Tbl" The tool works fine if I use a GDB ...
1
vote
1answer
135 views

ArcPy in_memory\ vanishing from ToC

ArcGIS 10.1 - attempting to add a derived raster layer to the ToC. This works in 10.2. In 10.1 I get a screen flash and nothing added. rasterized = r'in_memory\rasterized' arcpy....
3
votes
1answer
825 views

Extracting zipped shapefile and check its shape type without writing on disk?

I have a zipped shapefile saved on my disk. I want to extract it in memory and check the shape type. I'm using arcpy module and want to stick to only default modules comes with python installation. I ...
2
votes
3answers
492 views

Create in memory polygon with RasterToPolygon

I need to create a number of polygons in a loop from a raster. Essentially, the loop will call a function a number of times which needs to convert it to a polygon: def myfunc(raster): #do some ...
4
votes
1answer
825 views

Getting 000210 Error trying to wirte output to in_memory workspace in ModelBuilder?

My model gives this error message when it tries to do the Clip function Here is the first half of the model showing the parameters used in the clip function I have successfully run this model when ...