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

Is there some way to create a layer file through web mapping application. If I expose data through a map service is there a way to create a .lyr file?

share|improve this question
I've never tried it but you could use the mapping application to allow the user to select what they want in the lyr file (data source, name, symbology, etc.), then use Python (specifically, SaveToLayerFile_management) to save the lyr file. – Michael Todd Jul 26 '11 at 22:16

I wrote a PrintSOE (ServerObjectExtention) which creates for each mapservice layer a lyr-file on mapservice startup. The purpose is to create large-format and high-quality printout's.

These lyr-files are accessible over the arcgisoutput-directory. It would be possible to access these lyr-files by a simple url.

You can find the project with full sources here:

share|improve this answer

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.