I don't see anything in the documentation that indicates you cannot send the results of a arcpy.Project_management operation to an in-memory feature class. Just specify your output as "in_memory\\reprojected" or something similar. When you're done with it, if you want to manually clear it out of memory, just use the arcpy.Delete_management tool, specifying it exactly as in the project tool.Of course, just because the documentation doesn't say anything about requiring a physical storage output doesn't mean it isn't true. You're just gonna have to try it!
My understanding is that you can use an in_memory feature layer as an input to a project tool, but not an output.
That was it! Many, many thanks Chris.I'm using cursors instead of the project tool in the hope it will be faster. Both methods seem very slow though.R
The spatial refernce object is the 3rd parameter in the update & search cursor statments (2nd parameer for the insercursor statment). So it would be:rows = arcpy.UpdateCursor(fc, "", inCRS) #instead of rows = arcpy.UpdateCursor(fc, inCRS)
rows = arcpy.UpdateCursor(fc, "", inCRS) #instead of rows = arcpy.UpdateCursor(fc, inCRS)
What is you initial coordinate system, and which coordinate system are you attempting to re-project to?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.