Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created script in Python for ArcGIS that simplify Line, and make buffer from processed line.

input = "input.shp"
name = "bord"
buffer = "buffer.shp"

gp.SimplifyLine_management(name, input, "POINT_REMOVE", "2000 Meters", "FLAG_ERRORS", "NO_KEEP", "NO_CHECK")

gp.Buffer_analysis(input, buffer, "10 Meters", "FULL", "ROUND", "NONE", "")

but it this case, I have to create 2 shapefiles (one for intermediate results, and one for output). But is it possible to save for ex. intermediate results to variable, and then use it as parameter for buffer, and print out geometry of buffer(as array of vertexes) to the screen? I'm using ArcGIS 9.3

share|improve this question
up vote 3 down vote accepted

Perhaps this helps: You can write intermediate data to your computer's memory rather than to a shapefile on disk. Writing intermediate data to memory is extremely fast compared to writing to disk. Use the in_memory workspace:


In this question you find some hints for the syntax and usage for in_memory workspace.

share|improve this answer
love this answer!! that is what I was looking for! thanks mate, 3days of searching.... :) – Krystian Apr 8 '13 at 12:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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