Select to view content in your preferred language

Trying to pass user digitized feature set to python script and use as in_memory

3539
1
09-16-2014 02:51 PM
MichelleMestrovich1
Regular Contributor

I have a python toolbox script which has a featureset parameters which allows the user to digitize an area of the map.  My script then runs and I need to pass that featureset to MakeFeatureLayer as in_memory.  I can actually see the in_memory name (something like "in_memory\{871F29F4-CC9C-4613-8352-8C6072757729}) but when it gets to MakeFeatureLayer I gues an error that it does not exist.

 

I found the help for Error 0000732 35151 - 000732: Dataset does not exist or is not supported .  I'm good on everything in that post but still having issues. If I use a pre-created shapefile or file geodatabase layer which is on disk it works.

 

I really need the user to be able to define their area of interest so I need to pass the geometry from the screen and in_memory via a parameter seems the only way.

 

 

Any thoughts.

0 Kudos
1 Reply
FreddieGibson
Honored Contributor

Could you provide some of your logic so that I can why how you're passing the FeatureSet to the MakeFeatureLayer tool along with some logic that shows what you'd need to use this layer object for?

0 Kudos