Sending polygon to gp service

Discussion created by dugtoni on Jan 15, 2013
Latest reply on Jan 15, 2013 by jay.gregory
Hey everyone,

I have a map service where someone can select a polygon and that selected polygon is sent to a gp service as a clipping extent.  The polygon where the user clicks is made into a graphic, and then that graphic is then sent to the gp service.  The problem is the gp service does not recognize this as a valid clipping extent and the tool fails because of that parameter.  I have tried converting this graphic from web mercator to geographic, and also have tried using the esri.geometry.Polygon(name of graphic) command to try and make it a valid polygon which the gp service can use but I can't seem to get it to work.  Please let me know if you have any idea how to solve this problem.  Thank you for your time!!