資源簡介
利用gis通過shp文件將經緯度解析為城市名(傳入參數為經緯度,返回城市名)
代碼片段和文件信息
import?java.io.File;
import?java.io.FileNotFoundException;
import?java.nio.charset.Charset;
import?java.util.ArrayList;
import?java.util.Collection;
import?java.util.Iterator;
import?org.geotools.data.FeatureSource;
import?org.geotools.data.shapefile.ShapefileDataStore;
import?org.geotools.feature.FeatureCollection;
import?org.geotools.feature.FeatureIterator;
import?org.geotools.geometry.jts.JTSFactoryFinder;
import?org.opengis.feature.Property;
import?org.opengis.feature.simple.SimpleFeature;
import?org.opengis.feature.simple.SimpleFeatureType;
import?com.vividsolutions.jts.geom.Geometry;
import?com.vividsolutions.jts.geom.GeometryFactory;
import?com.vividsolutions.jts.geom.MultiPolygon;
import?com.vividsolutions.jts.geom.Point;
import?com.vividsolutions.jts.io.WKTReade
- 上一篇:android圖片瀏覽器源碼
- 下一篇:zip4j1.3.3.jar
評論
共有 條評論