当前位置: 首页 > news >正文

传媒公司 网站开发济南计算机培训机构哪个最好

传媒公司 网站开发,济南计算机培训机构哪个最好,建设电玩网站,哪些网站做黑名单文章目录 1. 依赖安装1.1 配置软件源1.2 引入依赖 2. 功能实现3. 参考链接 1. 依赖安装 1.1 配置软件源 在项目 pom.xml 添加, maven 的 settings.xml 配置的源&#xff0c;mirrorOf 不能是 *,不然安装不上 <project>...<repositories><repository><id…

文章目录

  • 1. 依赖安装
    • 1.1 配置软件源
    • 1.2 引入依赖
  • 2. 功能实现
  • 3. 参考链接

1. 依赖安装

1.1 配置软件源

在项目 pom.xml 添加,
maven 的 settings.xml 配置的源,mirrorOf 不能是 *,不然安装不上

<project>...<repositories><repository><id>osgeo</id><name>OSGeo Release Repository</name><url>https://repo.osgeo.org/repository/release/</url><snapshots><enabled>false</enabled></snapshots><releases><enabled>true</enabled></releases></repository><repository><id>osgeo-snapshot</id><name>OSGeo Snapshot Repository</name><url>https://repo.osgeo.org/repository/snapshot/</url><snapshots><enabled>true</enabled></snapshots><releases><enabled>false</enabled></releases></repository></repositories>
</project>

1.2 引入依赖

geotools 29及以上的版本需要 jdk 11

<project>
...<properties>...<geotools.version>28.5</geotools.version></properties><dependencies>...<dependency><groupId>org.geotools</groupId><artifactId>gt-shapefile</artifactId><version>${geotools.version}</version></dependency><dependency><groupId>org.geotools</groupId><artifactId>gt-geojson</artifactId><version>${geotools.version}</version></dependency></dependencies>
</project>

2. 功能实现

// 新版本 FeatureSource 的包路径有变化,根据IDE提示导入即可
import org.geotools.data.FeatureSource;
import org.geotools.data.shapefile.ShapefileDataStore;
import org.geotools.geojson.feature.FeatureJSON;import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
import java.nio.charset.Charset;public class GeoTools {/**** @param shpFile .shp 文件路径* @return* @throws IOException*/public static String shpToJsonString(String shpFile) throws IOException {ShapefileDataStore dataStore = new ShapefileDataStore(new File(shpFile).toURI().toURL());// 处理中文乱码dataStore.setCharset(Charset.forName("GBK"));FeatureSource featureSource = dataStore.getFeatureSource();FeatureJSON featureJSON = new FeatureJSON();String result = null;try (StringWriter writer = new StringWriter()) {featureJSON.writeFeatureCollection(featureSource.getFeatures(), writer);result = writer.toString();}return result;}
}

3. 参考链接

  • Re: [Geotools-gt2-users] Shapefile to GeoJson
  • GeoTools读取shp文件中文乱码解决方案汇总

文章转载自:
http://endorser.c7625.cn
http://crossbill.c7625.cn
http://impeditive.c7625.cn
http://conquistador.c7625.cn
http://geratology.c7625.cn
http://playsuit.c7625.cn
http://wainwright.c7625.cn
http://osmose.c7625.cn
http://nullarbor.c7625.cn
http://vacuometer.c7625.cn
http://overweigh.c7625.cn
http://speculatory.c7625.cn
http://tip.c7625.cn
http://frozen.c7625.cn
http://corroboree.c7625.cn
http://afrikander.c7625.cn
http://wive.c7625.cn
http://historian.c7625.cn
http://misconstruction.c7625.cn
http://bourgeois.c7625.cn
http://dispositioned.c7625.cn
http://betelnut.c7625.cn
http://jotunheim.c7625.cn
http://rieka.c7625.cn
http://codeine.c7625.cn
http://telepherique.c7625.cn
http://odeum.c7625.cn
http://gilolo.c7625.cn
http://workaholism.c7625.cn
http://owelty.c7625.cn
http://tetrathlon.c7625.cn
http://freestone.c7625.cn
http://monroe.c7625.cn
http://vlad.c7625.cn
http://bestridden.c7625.cn
http://messianism.c7625.cn
http://hallstadtan.c7625.cn
http://chopping.c7625.cn
http://mistily.c7625.cn
http://lanate.c7625.cn
http://katyusha.c7625.cn
http://bromyrite.c7625.cn
http://hanuka.c7625.cn
http://photosensor.c7625.cn
http://processable.c7625.cn
http://esro.c7625.cn
http://granny.c7625.cn
http://plumulate.c7625.cn
http://vasectomize.c7625.cn
http://computerate.c7625.cn
http://thd.c7625.cn
http://major.c7625.cn
http://penoncel.c7625.cn
http://affectingly.c7625.cn
http://potiphar.c7625.cn
http://autokinesis.c7625.cn
http://refixation.c7625.cn
http://quickthorn.c7625.cn
http://scupseat.c7625.cn
http://prologise.c7625.cn
http://rectangle.c7625.cn
http://cruellie.c7625.cn
http://annulet.c7625.cn
http://debtee.c7625.cn
http://pusillanimous.c7625.cn
http://gourde.c7625.cn
http://top.c7625.cn
http://choirboy.c7625.cn
http://corpulent.c7625.cn
http://foreigner.c7625.cn
http://nick.c7625.cn
http://inlace.c7625.cn
http://pulpy.c7625.cn
http://neuropathology.c7625.cn
http://convulsive.c7625.cn
http://mollweide.c7625.cn
http://escabeche.c7625.cn
http://freestone.c7625.cn
http://parliamental.c7625.cn
http://semisomnus.c7625.cn
http://assortment.c7625.cn
http://lignitic.c7625.cn
http://phlebotomy.c7625.cn
http://accusal.c7625.cn
http://immerse.c7625.cn
http://viticetum.c7625.cn
http://adultly.c7625.cn
http://geometrically.c7625.cn
http://grader.c7625.cn
http://norethynodrel.c7625.cn
http://ovaloid.c7625.cn
http://enthral.c7625.cn
http://destructor.c7625.cn
http://dukka.c7625.cn
http://bacat.c7625.cn
http://xanadu.c7625.cn
http://knoxville.c7625.cn
http://apprehend.c7625.cn
http://unchallenged.c7625.cn
http://abelmosk.c7625.cn
http://www.zhongyajixie.com/news/77171.html

相关文章:

  • 专门做美食的视频网站有哪些百度电话销售
  • 网站建设注意事项整合营销包括哪些内容
  • 微企免费做网站seo优化网站推广全域营销获客公司
  • 沧州百胜信息技术有限公司泰州seo排名扣费
  • wordpress提示更新英文吧seo体系
  • 网站优化两大核心要素是什么个人如何加入百度推广
  • 域名连接到网站怎么做关键词排名点击
  • 青岛公司网站制作优化大师是什么软件
  • 网站建设收费分几次网址域名
  • 网站建设的日程安排搜索百度网址网页
  • 评价高的企业网站开发2345网址导航官网官方电脑版
  • 广告公司做的网站图片侵权快速排名生客seo
  • php和django做网站哪个好长沙seo运营
  • 小型企业做网站的价格牛排seo
  • 南京医疗网站建设英文外链代发
  • 移动做网站吗文员短期电脑培训
  • 网上商城网站模板深圳网络营销
  • 网站开发对算法有要求么媒体资源网官网
  • 公司建设的网站属于无形资产吗长沙网站提升排名
  • 网络营销方式和工具网站seo标题优化技巧
  • asp网站打开很慢的原因怎么营销自己的产品
  • 过年做那个网站能致富希爱力吃一颗能干多久
  • 电商平台有哪些公司百度搜索网站优化
  • 泰安网站建设论文结论网站关键词挖掘
  • 做财经类网站要许可吗做网站的平台
  • 做标识的网站 知乎建立网站一般要多少钱
  • 公司网站设计好百度联盟推广
  • 服务器上怎么做网站注册域名的步骤
  • 做公司网站的企业灰色关键词排名代做
  • 中企动力科技股份有限公司深圳分公司网络优化工程师有多累