如何使用c#或任何其他编程从excel文件中分类纬度和经度? [英] how to sort out latitude and longitude from an excel file using c# or any other programming?

查看:77
本文介绍了如何使用c#或任何其他编程从excel文件中分类纬度和经度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#或任何其他编程从excel文件中挑选纬度和经度???条件是这样的

如果纬度小于0度丢弃

如果纬度大于40度丢弃

如果经度小于60度丢弃

如果经度超过100度丢弃

how to sort out latitude and longitude from an excel file using c# or any other programming??? the condition is like this
if latitude is less than 0 degree discard
if latitude is more than 40 degrees discard
if longitude is less than 60 degrees discard
if longitude is more than 100 degrees discard

推荐答案

使用其中一个打开并读取Excel文件:

Excel Interop: http://csharp.net-informations.com/excel /csharp-excel-tutorial.htm [ ^ ]

NPOI [ ^ ]

EPPlus [ ^ ]



一旦你读完你的纬度和经度,你的条件on会在C#中显示如下:

Use one of these to open and read the Excel file:
Excel Interop: http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm[^]
NPOI[^]
EPPlus[^]

Once you've read your latitude and longitude, your condition would look like this in C#:
if (latitude >= 0 && latitude <= 40 && longitude >= 60 && longitude <= 100)
{
   // do something
}
// else don't


这篇关于如何使用c#或任何其他编程从excel文件中分类纬度和经度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆