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'm looking for a way to change the source of my layer file using python. Actually I want to do this because I need to re-use a XSL template which is defined under the tap HTML popup of the layer properties dialog. As I can't use the MakeFeatureLayer_management- command to create a layer file that contains the HTML popup information I'm aiming at letting the layer file point to a different data source every time my python code is being executed. I know it is a breeze using arcpy but I'm bound to use the gp-object. This there a workaround anyone knows of?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.