Select to view content in your preferred language

[B]get layer selection from webpage and pass to python (for export PDF)[/B]

745
2
05-13-2014 05:32 AM
CindyLu
Deactivated User
Hello,

I am trying to do a print PDF function on a web application using python. But I could not find how I can get the layer selection (or layer definition) from webpage and pass this parameter to python, then export to PDF (I am using a geoprocessing here). Could someone tell me how can I get layer selection from webpage and pass to python?

I highly appreciate your help!

Thanks,

Cindy
Tags (2)
0 Kudos
2 Replies
BradPosthumus
Frequent Contributor
We need a bit more information here:

  1. Does this web application use an ArcGIS API (e.g. for Flex, Javascript, etc.)?

  2. Does it use ArcGIS Server to serve the data?

  3. When you say 'using a geoprocessing', does that mean a geoprocessing service or a tool in desktop (or a stand-alone script)?

0 Kudos
CindyLu
Deactivated User
Does this web application use an ArcGIS API (e.g. for Flex, Javascript, etc.)? - Yes, ArcGIS Javascript API
Does it use ArcGIS Server to serve the data?  - Yes
When you say 'using a geoprocessing', does that mean a geoprocessing service or a tool in desktop (or a stand-alone script)?
- Geoprocessing service.

I am using ArcGIS 10.0. I know there is a Export Web Map in ArcGIS 10.1. But I could not use it right now.

A sample work flow could be: After user does a selection, the application will display the features that user selected on map. Then user can click 'Print' button to print the features and base map to a PDF file.

Thank you for any help.

Cindy
0 Kudos