Kaynağa Gözat

初始化

master
张泽亮 4 yıl önce
ebeveyn
işleme
abfe081ec1
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      src/main/java/com/appleyk/geotools/GeoUtils.java

+ 2
- 2
src/main/java/com/appleyk/geotools/GeoUtils.java Dosyayı Görüntüle

@@ -28,9 +28,9 @@ public class GeoUtils {
//测试代码
public static void main(String[] args) throws IOException {

JDBCDataStore connnection2mysql = GeoUtils.connnection2mysql("192.168.31.196", "nsgk_hc?serverTimezone=GMT%2B8", 3318, "gly", "glyadmin");
JDBCDataStore connnection2mysql = GeoUtils.connnection2mysql("116.255.135.38", "nsgk_hc?serverTimezone=GMT%2B8", 3318, "gly", "glyadmin");
// 会根据shp文件名称创建属性数据table
SimpleFeatureSource featureSource = readSHP("D:\\NsgkSoft\\files\\uploadPath\\gis\\t_geo_hc_house.shp");
SimpleFeatureSource featureSource = readSHP("D:\\NsgkSoft\\files\\uploadPath\\gis\\t_geo_hc_land.shp");
JDBCDataStore ds = createTable(connnection2mysql, featureSource);
writeShp2Mysql(ds, featureSource);



Yükleniyor…
İptal
Kaydet