Beispiel #1
0
        private void menuBuffer_Click(object sender, EventArgs e)
        {
            BufferForm bufferForm = new BufferForm(this.axMapControl1.Object);

            if (bufferForm.ShowDialog() == DialogResult.OK)
            {
                //获取输出文件路径
                string strBufferPath = bufferForm.strOutputPath;
                //缓冲区图层载入到mapcontrol中
                int index = strBufferPath.LastIndexOf("\\");
                this.axMapControl1.AddShapeFile(strBufferPath.Substring(0, index), strBufferPath.Substring(index));
            }
        }
Beispiel #2
0
 public IActionResult FindInBufferZone(BufferForm form)
 {
     try
     {
         var turns = turnLogic.ListByBufferZone(form.Longitude, form.Latitude, form.Radius);
         return(Ok(turns));
     }
     catch (Exception ex)
     {
         Logger.LogError(ex, "FindInBufferZone method");
         return(NotFound(new { Message = "Ocurrió un error." }));
     }
 }
Beispiel #3
0
 public IActionResult FindInBufferZone(BufferForm form)
 {
     try
     {
         var camps = campLogic.ListByBufferZone(form.Longitude, form.Latitude, form.Radius, spatialReference, imagesPath);
         return(Ok(camps));
     }
     catch (Exception ex)
     {
         Logger.LogError(ex, "FindInBufferZone method");
         return(NotFound(new { Message = "Ocurrió un error." }));
     }
 }