I also have the Rectangle issue. But the polygon Area_Of_Interest works for me.
{"geometryType":"esriGeometryPolygon","spatialReference":{"wkid":54016},"features":[{"geometry":{"spatialReference":{"wkid":54016},"rings":[[[-9644076.38419297,5796738.17420953],[-9644076.38419297,7907391.71990488],[-5457946.85189718,7907391.71990488],[-5457946.85189718,5796738.17420953],[-9644076.38419297,5796738.17420953]],[[-9239534.45460135,5761560.6151146],[-9239534.45460135,7801859.04262011],[-7216824.80664331,7801859.04262011],[-7216824.80664331,5761560.6151146],[-9239534.45460135,5761560.6151146]]]},"attributes":{}}]}
Job Status: esriJobFailed Job Messages: esriJobMessageTypeInformative: Submitted. esriJobMessageTypeInformative: Executing... esriJobMessageTypeInformative: Executing (ExtractData): ExtractData "Feature Set" "File Geodatabase - GDB - .gdb" "File Geodatabase - GDB - .gdb" esriJobMessageTypeInformative: Start Time: Fri Nov 19 09:35:38 2010 esriJobMessageTypeInformative: Running script ExtractData... esriJobMessageTypeError: ERRORS: Traceback Info: File "\\S5-BSC-IMS2\MapDefinitions\BaseMapService\Scripts\ExtractData.py", line 330, in zipFolder = clipAndConvert(layers, areaOfInterest, featureFormat, rasterFormat, coordinateSystem) Error Info: : exceptions must be old-style classes or derived from BaseException, not str esriJobMessageTypeInformative: Completed script ExtractData... esriJobMessageTypeError: Failed to execute (ExtractData). esriJobMessageTypeInformative: Failed at Fri Nov 19 09:35:51 2010 (Elapsed Time: 13.00 seconds) esriJobMessageTypeError: Failed.
zipFolder = clipAndConvert(layers, areaOfInterest, featureFormat, rasterFormat, coordinateSystem)
parameters.Add(new GPString("Layers_to_Clip", _layerNames)); parameters.Add(new GPFeatureRecordSetLayer("Area_of_Interest", _clipRect)); parameters.Add(new GPString("Feature_Format", "File Geodatabase - GDB - .gdb")); parameters.Add(new GPString("Raster_Format", "File Geodatabase - GDB - .gdb")); parameters.Add(new GPString("Output_Zip_File", "output.zip")); geoprocessorTask.SubmitJobAsync(parameters);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.