is there any possibility or not to plot
Sorry. IList<Graphic> graphics = new List<Graphic>();.......
but the IEnumerable does not contain .Add method...?What can we do then...?
The problem is that you execute your task in the loop --> multiple times : that's not supported.Instead, you should build your graphics list in the loop and execute the task once after the loop.Something like: IEnumerable<Graphic> graphics = new List<Graphic>(); while (i <= count) { double.TryParse(test[i, 0], out ax); double.TryParse(test[i, 1], out ay); graphics.Add(new MapPoint(ay, ax, new SpatialReference(4326)); i++; } geometryService.ProjectAsync(graphics, MyMap.SpatialReference, null);
IEnumerable<Graphic> graphics = new List<Graphic>(); while (i <= count) { double.TryParse(test[i, 0], out ax); double.TryParse(test[i, 1], out ay); graphics.Add(new MapPoint(ay, ax, new SpatialReference(4326)); i++; } geometryService.ProjectAsync(graphics, MyMap.SpatialReference, null);
its gives this error "Task does not support concurrent I/O operations. Cancel the pending request or wait for it to complete."
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.