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.

I am trying to build a small application (silverlight based) that would allow creation of layer package based on an area of interest. I have identified a GP tool that does this. The tool is located in Data Management Tools > Package section. I have a model that allows user input as parameters. The issue that I am having is that it takes multiple layers as input and It doesn't allow me to set the datatype as Featureset. AFAIK, to be able to publish this as service, it needs to be feature set NOT feature layer.

I am looking for some input if someone had any suggestions on how to publish this as a GP service OR if there are any other options to do this. Being a system script, I don't have access to the script.

Thanks Jay

enter image description here

share|improve this question

3 Answers 3

Jay,

You pretty much have it - I'm not sure what you mean it has to be a feature set? It doesn't. The tool will take multiple feature layers as input. The Data Extraction tool works in a similar way.

Maybe you're missing the part where this needs to be a tool layer? With your model as is (it looks correct from the screen shot), drag it into your Table of Contents. Right-click and open it. Set some default values and click apply/close. (or run it if you want, just to be sure). Save the mxd, and publish the MXD. You'll get a map service and a GP Service.

Consume the service in ArcMap - it should give you what you want.

If this doesn't answer your question - can you explain in more detail why you need to use a feature set as input to the layers?

share|improve this answer
    
Thanks for the feedback. I have read somewhere that any Gp tool as part of a map/gp service can only accept feature set not feature layers. I get as an error when I analyze my mxd in Arcmap before publishing. The layer package tool accepts multiple layers and it doesnt give me an option for changing input to feture set. Thanks Jay –  jayGIS May 6 '11 at 14:47

I think I understand the problem now.

It looks like you are trying to combine the extract data task and the package layer tool.

I can't see a way to get the layer symbology for more than one layer by anything other than a layer package.

So maybe you want to create an lpk and extract it to a scratch workspace and then use the scratch lyr and data to clip the area of interest, and then recreate the lpk from the clipped scratch data.

share|improve this answer
    
Hi Brad, The objective is to let users run the GP tool from a mapping application and this will create an lpk output. Users will get this out from a link and then open it in ArcGIS Explorer. This is complete workflow that I am trying to accomplish. Thanks Jay –  jayGIS May 4 '11 at 20:04
    
This would fit for a task I need to accomplish. Can you share? –  Brad Nesom May 5 '11 at 5:20

I have a similar problem trying to get a result map service to work.

I am desperate and will be grateful if someone can explain.

ArcGIS Can't get ResultImageLayer

Thanks, Charles

share|improve this answer

Your Answer

 
discard

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.