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

企业建设网站流程公司法人变更流程

企业建设网站流程,公司法人变更流程,犀牛云网站建设,网站多个用户怎样建设对于GIS开发者而言#xff0c;矢量数据是我们经常要用到的#xff0c;而shape数据是矢量数据中最常用的格式#xff0c;因此解析shape数据也是作为GIS软件开发人员必备的基础技能#xff0c;而GeoTools无疑是Java最好用来处理GIS数据的三方库#xff0c;下面例子是简单的g…对于GIS开发者而言矢量数据是我们经常要用到的而shape数据是矢量数据中最常用的格式因此解析shape数据也是作为GIS软件开发人员必备的基础技能而GeoTools无疑是Java最好用来处理GIS数据的三方库下面例子是简单的geotools读取shape的例子1、pom依赖包引入 dependenciesdependencygroupIdorg.geotools/groupIdartifactIdgt-shapefile/artifactIdversion25.2/version/dependency/dependencies2、解析函数 package com.gis;import java.io.File; import java.io.IOException; import java.util.List;import org.geotools.data.FeatureSource; import org.geotools.data.Query; import org.geotools.data.shapefile.ShapefileDataStore; import org.geotools.data.simple.SimpleFeatureCollection; import org.geotools.data.simple.SimpleFeatureIterator; import org.geotools.geometry.jts.ReferencedEnvelope; import org.opengis.feature.simple.SimpleFeature; import org.opengis.feature.type.AttributeDescriptor; import org.opengis.feature.type.GeometryType; import org.opengis.referencing.crs.CoordinateReferenceSystem;/*** shape文件读取* author ly**/ public class ShapeFileReaderTest {private static final String FILE_PATH E:\\data\\shape\\****.shp;public static void main(String[] args) {File file new File(FILE_PATH);readShapeFile(file);}/*** * param shpFile 传递的是shape文件中的.shp文件*/private static void readShapeFile(File shpFile) {/*** 直接使用shapefileDatastore,如果不知道也可以使用工厂模式(见下个方法)* 建议如果确定是shape文件就直使用shapefileDatastore*/try {ShapefileDataStore shapefileDataStore new ShapefileDataStore(shpFile.toURI().toURL());//这个typeNamae不传递默认是文件名称FeatureSource featuresource shapefileDataStore.getFeatureSource(shapefileDataStore.getTypeNames()[0]);//读取bboxReferencedEnvelope bbox featuresource.getBounds();//读取投影CoordinateReferenceSystem crs featuresource.getSchema().getCoordinateReferenceSystem();//特征总数int count featuresource.getCount(Query.ALL);//获取当前数据的geometry类型点、线、面GeometryType geometryType featuresource.getSchema().getGeometryDescriptor().getType();//读取要素SimpleFeatureCollection simpleFeatureCollection (SimpleFeatureCollection) featuresource.getFeatures();//获取当前矢量数据有哪些属性字段值ListAttributeDescriptor attributes simpleFeatureCollection.getSchema().getAttributeDescriptors();//SimpleFeatureIterator simpleFeatureIterator simpleFeatureCollection.features();//while(simpleFeatureIterator.hasNext()) {SimpleFeature simpleFeature simpleFeatureIterator.next();attributes.stream().forEach((a) - {//依次读取这个shape中每一个属性值当然这个属性值可以处理其它业务System.out.println(simpleFeature.getAttribute(a.getLocalName()));});}} catch (IOException e) {e.printStackTrace();}}} 希望对您有帮助发财的小手点点赞~
http://www.pierceye.com/news/496000/

相关文章:

  • 免费销售网站模板下载安装济南网站制作推广
  • 青岛专业网站制作设计vs2008网站开发
  • 电子商务网站功能介绍0基础做网站用什么语言
  • 企业展示网站建设wordpress 优酷免广告
  • 濮阳做网站引导企业做网站
  • 卧龙区网站建设找做牙工作上哪个网站
  • 做网站的会计分录广州公司注册需要什么条件
  • 小米4路由器可以做网站嘛服务类网站建设服务公司
  • 电子商务网站建设规划书实例注册微信公众平台
  • 网站设计课程总结线上营销方案
  • 谷城网站建设网站集群建设实施方案
  • 怎么做外贸生意谷歌seo服务
  • 做网站好还是做淘宝好市场调研模板
  • 网站做换肤做一个平台费用是多少
  • 省内注销二建 建设部网站更新慢网站建设合同书封皮
  • 天津城市建设网站营销型网站的好处
  • 网站建设维护文档好看的页面
  • 网站搜索优化官网网站建设在电子商务中的作用的看法
  • 网站推广费用价格html大屏展示模板
  • 编辑网站用什么软件网站开发人员职责
  • 网站搜索引擎提交wordpress发布站点
  • 阳春网站建设天水网站seo
  • 仙桃市建设局网站wordpress链接前面的图标
  • 温州市城乡建设建档案馆网站公司装修费用可以一次性入账吗
  • 房地产开发公司网站宠物网页设计模板
  • 网站备案信息可以改吗中国做二手房最大的网站
  • 设计 企业网站罗湖网站-建设深圳信科
  • 太原自助模板建站手机版电脑qq登录入口
  • 公司网站建设哪家比较好app 网站
  • 建设银行个人网站打不开个人主页模板下载