Select to view content in your preferred language

Intersect of two layers

1753
2
03-29-2012 05:36 AM
spencermartin
Emerging Contributor
Is it possible using rest services to perform a spatial query of an intersect between two layers?  I want the returned featureset to have columns returned from each layer.  I can do it in python already but I'm having trouble getting the script to run consistently on the fly from web page.
0 Kudos
2 Replies
nicogis
MVP Frequent Contributor
you can create a geoprocessing with intersect analysis (in option you can set what are fields in output : however default is ALL ) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Intersect%20(Analysis)
0 Kudos
DavidSpriggs
Deactivated User
Speno,
Can you describe the workflow and what you mean by intersection of two layers? Are they polygons? Is it the whole layer, just a few features, or just two features, or do you, etc. You should be able to use the intersect method of a geometry service. After which you can combine attributes.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#intersect
and
http://tasks.arcgisonline.com/ArcGIS/SDK/REST/index.html?intersect.html

Please post more detail on your workflow.
0 Kudos