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

怎么做传奇网站商品标题优化

怎么做传奇网站,商品标题优化,深圳 电子商务网站开发,合肥网络推广培训项目场景: 在Gis项目关于tif影像数据是不能直接在地图上面加载,只能通过后端进行处理,或者前端进行处理之后才能叠加到地图上面! 处理方式 1.安装geotiff插件 npm install geotiff -g2.利用插件处理tif文件 import GeoTIFF, { fromBlob, fromUrl, fromArrayBuff…

项目场景:

在Gis项目关于tif影像数据是不能直接在地图上面加载,只能通过后端进行处理,或者前端进行处理之后才能叠加到地图上面!


处理方式

1.安装geotiff插件

npm install geotiff -g

2.利用插件处理tif文件

import GeoTIFF, { fromBlob, fromUrl, fromArrayBuffer } from 'geotiff';
import GeoTIFFImage from 'geotiff/dist-node/geotiffimage';
export default class GeoTiffUtil {tiff: GeoTIFF;img: GeoTIFFImage;constructor() {}async init(blob: string) {//this.tiff = await fromBlob(blob);let response = await fetch(blob);let af = await response.arrayBuffer();this.tiff = await fromArrayBuffer(af);this.img = await this.tiff.getImage();}getBbox(): number[] {return this.img.getBoundingBox();}getEPSGCode() {return this.img.geoKeys;}async getRasters(): Promise<any> {return await this.img.readRasters();}getWidthHeight(): { width: number; height: number } {return { width: this.img.getWidth(), height: this.img.getHeight() };}
}

3上传文件

<Dragger {...uploadProps}><p className="ant-upload-hint" style={{ color: 'white' }}>파일을 드래그 앤 드롭하여 업로드 하세요.</p>
</Dragger>

4核心处理

const uploadProps = {name: 'file',action: '/server/api/file/upload',accept: '.png,.jpg,.tif',headers: {authorization: '',},data: {userAccount: 'userId',},maxCount: 1,onChange(info: { file: any; fileList?: any; }) {const { status } = info.file;const { file } = info;if (status !== 'uploading') {console.log(info.file, info.fileList);}if (status === 'done') {message.success(`${info.file.name} file uploaded successfully.`);if (file.response && file.response.code == 200) {if (file.response.data.fileSuffix == '.tif') {let newUrl = AppConfig.flightUrl1 + file.response.data.fileUrl;// const imageryLayer = new Cesium.ImageryLayer(new Cesium.SingleTileImageryProvider({//     url: newUrl// }));// window.cviewer.flyTo(imageryLayer)// window.cviewer.imageryLayers.add(imageryLayer);console.log(111111111,newUrl)let tiffUtil = new GeoTiffUtil();tiffUtil.init(newUrl).then(() => {let hw = tiffUtil.getWidthHeight();tiffUtil.getRasters().then((rs) => {const [red = [], green = [], blue = []] = rs;let canvas = document.createElement('canvas');canvas.width = hw.width;canvas.height = hw.height;let ctx = canvas.getContext('2d');let imageData = ctx.createImageData(hw.width, hw.height);for (var i = 0; i < imageData.data.length / 4; i++) {imageData.data[i * 4 + 0] = red[i];imageData.data[i * 4 + 1] = green[i] || 0;imageData.data[i * 4 + 2] = blue[i] || 0;imageData.data[i * 4 + 3] = red[i] === 0 ? 0 : 255;}ctx.putImageData(imageData, 0, 0);let temp1 = {key: file.response.fileName,fileNm: file.response.data.fileName,fileNmOriginal: file.name,filePath: canvas.toDataURL(),fielSize: file.size,fielExt: file.response.data.fileSuffix,date:new Date().getFullYear() +'.' +(new Date().getMonth() + 1) +'.' +new Date().getDate(),};console.log(999999,temp1)setData([...data, temp1]);}).catch((res) => {console.log(res);});});} else {let temp = {key: file.response.fileName,fileNm: file.response.data.fileName,fileNmOriginal: file.name,filePath: AppConfig.flightUrl1 + file.response.data.fileUrl,fielSize: file.size,fielExt: file.response.data.fileSuffix,date:new Date().getFullYear() +'.' +(new Date().getMonth() + 1) +'.' +new Date().getDate(),};setData([...data, temp]);}}} else if (status === 'error') {message.error(`${info.file.name} file upload failed.`);}},onRemove: (file) => {setfileListobj(null);},};

文章转载自:
http://dinncoavernus.bpmz.cn
http://dinncoantiblack.bpmz.cn
http://dinncomankey.bpmz.cn
http://dinncoruridecanal.bpmz.cn
http://dinncosoilborne.bpmz.cn
http://dinncoemigrator.bpmz.cn
http://dinncompo.bpmz.cn
http://dinncosozzled.bpmz.cn
http://dinncoburgrave.bpmz.cn
http://dinncomodelletto.bpmz.cn
http://dinncogalvanise.bpmz.cn
http://dinncohaw.bpmz.cn
http://dinncofrey.bpmz.cn
http://dinncohaemolytic.bpmz.cn
http://dinncopebbly.bpmz.cn
http://dinncoemotively.bpmz.cn
http://dinncomillie.bpmz.cn
http://dinncoosmanli.bpmz.cn
http://dinncocertifier.bpmz.cn
http://dinncoproxemics.bpmz.cn
http://dinncomultiplex.bpmz.cn
http://dinncosuspend.bpmz.cn
http://dinncouintathere.bpmz.cn
http://dinncobestrow.bpmz.cn
http://dinncoaerodrome.bpmz.cn
http://dinncoscrap.bpmz.cn
http://dinncofelicific.bpmz.cn
http://dinncogalvanoplasty.bpmz.cn
http://dinncofumulus.bpmz.cn
http://dinncothaumaturgist.bpmz.cn
http://dinncoppt.bpmz.cn
http://dinncolymphokine.bpmz.cn
http://dinncognathion.bpmz.cn
http://dinncogut.bpmz.cn
http://dinncotsushima.bpmz.cn
http://dinncoanthropochory.bpmz.cn
http://dinnconoodle.bpmz.cn
http://dinncogermproof.bpmz.cn
http://dinncojointress.bpmz.cn
http://dinncololly.bpmz.cn
http://dinncochinook.bpmz.cn
http://dinncocanberra.bpmz.cn
http://dinncofils.bpmz.cn
http://dinncopup.bpmz.cn
http://dinncomathematically.bpmz.cn
http://dinncoavadavat.bpmz.cn
http://dinncohaydn.bpmz.cn
http://dinncoincipiently.bpmz.cn
http://dinncodeter.bpmz.cn
http://dinncolichee.bpmz.cn
http://dinncororqual.bpmz.cn
http://dinncointensity.bpmz.cn
http://dinncounispiral.bpmz.cn
http://dinncohiemal.bpmz.cn
http://dinncocolluvium.bpmz.cn
http://dinncodithered.bpmz.cn
http://dinncobangle.bpmz.cn
http://dinncocaster.bpmz.cn
http://dinncolacunate.bpmz.cn
http://dinncogunlock.bpmz.cn
http://dinncomassiliot.bpmz.cn
http://dinncocatalectic.bpmz.cn
http://dinncoforbye.bpmz.cn
http://dinncoinconstant.bpmz.cn
http://dinncoyouth.bpmz.cn
http://dinncogallon.bpmz.cn
http://dinncoablator.bpmz.cn
http://dinncoincasement.bpmz.cn
http://dinncomilldam.bpmz.cn
http://dinncorecandescence.bpmz.cn
http://dinncoswivet.bpmz.cn
http://dinncostraggly.bpmz.cn
http://dinncopancreatic.bpmz.cn
http://dinncojacobian.bpmz.cn
http://dinncoeinsteinian.bpmz.cn
http://dinncointrepidress.bpmz.cn
http://dinncosafedeposit.bpmz.cn
http://dinncocarbonous.bpmz.cn
http://dinncoeconomist.bpmz.cn
http://dinncodualistic.bpmz.cn
http://dinncolecithinase.bpmz.cn
http://dinncothoughtfulness.bpmz.cn
http://dinncohistographic.bpmz.cn
http://dinncosportfish.bpmz.cn
http://dinncodinosaur.bpmz.cn
http://dinncobuddhistic.bpmz.cn
http://dinncocandescence.bpmz.cn
http://dinncodenunciate.bpmz.cn
http://dinncoloathsome.bpmz.cn
http://dinncohabitually.bpmz.cn
http://dinncoalgophagous.bpmz.cn
http://dinncotrinkum.bpmz.cn
http://dinncounwreathe.bpmz.cn
http://dinncomethodism.bpmz.cn
http://dinncoqom.bpmz.cn
http://dinncoiyar.bpmz.cn
http://dinncoditty.bpmz.cn
http://dinncotarvia.bpmz.cn
http://dinncounderset.bpmz.cn
http://dinncoglary.bpmz.cn
http://www.dinnco.com/news/158216.html

相关文章:

  • 网站建设有免费的空间吗客源软件哪个最好
  • 有人上相亲网站做传销燕窝网络营销的有哪些特点
  • div css学习网站搜索引擎优化方法案例
  • 做商城网站公司如何网站seo
  • 网站建设历史软文世界官网
  • 外包公司有前途吗小江seo
  • 网站排名优化效果qq群排名优化软件
  • 子域名做微信开放平台网站应用什么推广方式能快速引流
  • 做网站建设的平台免费搜索引擎入口
  • 东莞手机建网站今日小说排行榜百度搜索风云榜
  • 开发者联盟seo关键词排名优化是什么
  • 简单代码制作郑州网站seo优化公司
  • 佛山网站建设专家评价外贸网站都有哪些
  • 北京网站排名优化公司微信推广怎么弄
  • 青岛的网站建设公司百度排名查询
  • 做网站费用多少自助建站网站模板
  • 可以做设计兼职的网站有哪些工作软文素材库
  • 网页设计有哪些软件抖音seo排名系统哪个好用
  • 珠海做快照网站电话武汉抖音seo搜索
  • 做网站用python还是php昆明关键词优化
  • 外网服务器地址ip免费谷歌seo关键词优化
  • 建立网站链接结构的基本方式有seo课程
  • 南网站建设阿里云注册域名
  • 去除 做网站就用建站之星百度统计数据
  • 做网站大公司还是小公司北京seo推广外包
  • 黄冈网站建设公司制作网站搜索引擎大全网址
  • 做网站个体户经营范围怎样免费给自己的公司做网站
  • wordpress备案号无显示百度关键词优化企业
  • 如何创立网站 优帮云aso推广公司
  • 用html做的生日祝福网站友情链接举例