Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Could someone please help me by giving me an example on how to make/connect/Add ArcGIS Server connection via python/arcpy? Thank you in advance.

  • I'm using ArcMap 10.0
  • I desire to "Use GIS Services" not "Manage GIS Services"
  • My ArcGIS Server does not require Authentication

When I make this connection through the wizard(steps previously described) all I have to provide is the Server URL and then navigate to my Image Service of choice.

I've noticed there is a function in ArcMap 10.1 (CreateGISServerConnectionFile (arcpy.mapping)) which all allows me to make a Arc GIS server connection but not for ArcMap 10.

share|improve this question
    
Can you add more information about what you would like to do? You could just use the REST endpoints and use the built in http library to get the info. –  Jamie Mar 25 '13 at 18:55
    
@Jamie I was hoping to connect to a dataset (NED dataset) in the ArcGIS Server somewhat like I do now with a SDE connection. In other words I would simply like to connect to the layer of interest and use it similiar to how I connect to a SDE and use data layer within. I have the Server address and Service Name. –  lemuel Mar 25 '13 at 19:15
    
Thanks for that information, that should help get you an answer. –  Jamie Mar 25 '13 at 19:29
    
I've managed to make a connection to the Image Server using arcpy.MakeImageServerLayer_management but when I run my script it's now telling me that the Output raster exceeds the size limitation. Is there a way I can simply add the image service to my TOC similiar to how the Add ArcGIS Server wizard does it? –  lemuel Mar 25 '13 at 20:22
    
Is the Server 10.0 as well? –  Simon Mar 30 '13 at 6:58
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.