最后
2020年在匆匆忙忙慌慌乱乱中就这么度过了,我们迎来了新一年,互联网的发展如此之快,技术日新月异,更新迭代成为了这个时代的代名词,坚持下来的技术体系会越来越健壮,JVM作为如今是跳槽大厂必备的技能,如果你还没掌握,更别提之后更新的新技术了。
更多JVM面试整理:
大坑
,搞了半天沃日,去官网的指导文档下不下来,要换源
org.geotools
gt-shapefile
22-RC
重点
、重点
、重点
换成这个源
geotools
geotools
http://maven.icm.edu.pl/artifactory/repo/
true
Map<String, Object> map = new HashMap<String, Object>();
File file = new File(“C:\Users\86182\Desktop\ziyuan\zj-dj\zj-dj.shp”);
map.put(“url”, file.toURI().toURL());// 必须是URL类型
ArrayList
DataStore dataStore = DataStoreFinder.getDataStore(map);
//字符转码,防止中文乱码
((ShapefileDataStore) dataStore).setCharset(Charset.forName(“utf8”));
String typeName = dataStore.getTypeNames()[0];
FeatureSource<SimpleFeatureType, SimpleFeature> source = dataStore.getFeatureSource(typeName);
FeatureCollection<SimpleFeatureType, SimpleFeature> collection = source.getFeatures();
FeatureIterator features = collection.features();
while (features.hasNext()) {
// 迭代提取属性
SimpleFeature feature = features.next();
Iterator<? extends Property> iterator = feature.getValue().iterator();
String name = “”;
String type = “”;
String mapId = “”;
while (iterator.hasNext()) {
Property property = iterator.next();
// property 属性自己debug看下
// “the_geom” 点、线、面
if (property.getName().toString().equals(“type”)) {
type = property.getValue().toString();
}
if (property.getName().toString().equals(“name”)) {
name = property.getValue().toString();
}
if (property.getName().toString().equals(“id”)) {
最后
分布式技术专题+面试解析+相关的手写和学习的笔记pdf
还有更多Java笔记分享如下:
.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)收录**