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

用授权书做网站诈骗免费发软文的网站

用授权书做网站诈骗,免费发软文的网站,武汉网络推广公司排名,网页设计在线制作本文通过获取在线和离线地图数据,使用开源Rust项目搭建瓦片地图服务,并使用DevExpress的MapControl控件使用自建地图服务 获取地图数据 获取地图数据有很多种方式,这里分别用在线和离线地图数据举例说明 在线下载瓦片地图 打开在线瓦片地…

本文通过获取在线和离线地图数据,使用开源Rust项目搭建瓦片地图服务,并使用DevExpress的MapControl控件使用自建地图服务

获取地图数据

获取地图数据有很多种方式,这里分别用在线和离线地图数据举例说明

在线下载瓦片地图

打开在线瓦片地图下载网站,【划范围】,勾选精度,【下载】

在这里插入图片描述

在这里插入图片描述

下载后得到压缩包“tiles.zip”

下载OpenStreetMap离线地图数据

OpenStreetMap是一个自由的街道级世界地图,它由日益壮大的绘图者团体创造。 任何人都可以编辑OpenStreetMap

数据下载地址:Geofabrik Download Server

在这里插入图片描述

下载后缀为“.bz2”格式的文件,使用开源项目工具bzip2处理

比如下载文件为“antarctica-latest.osm.bz2”,处理后得到文件“antarctica-latest.osm”

bunzip2 antarctica-latest.osm.bz2

接着处理.osm文件,使用maperitive,打开maperitive软件,打开文件“antarctica-latest.osm”

右下角【Map Sources】取消勾选“Web map”

在这里插入图片描述

在【Command prompt:】输入如下命令,maxzoom设置范围1-5,范围最大值越大,看到细节更多,Tiles文件夹体积也越大

generate-tiles minzoom=1 maxzoom=5

运行过后,在maperitive的安装目录下就会多一个Tiles文件夹

搭建开源瓦片地图服务

这里我使用本人用Rust开发的tiles_rs,启动服务的命令如下

tiles_rs.exe --tiles-dir=C:\Users\Tiles --host=0.0.0.0 --port=5000 --log_level=warn
  • tiles-dir: 为瓦片地图数据文件夹
  • host: 服务器IP地址
  • port: 端口
  • log_level: 日志级别

更多使用方式,查看help命令

tiles_rs.exe --help
================================================================================
Overview
================================================================================
Tiles_rs is an open-source project that aims to provide a fast and reliable tile map server implementation using Rust.
Built on top of the Actix web framework, this project offers a modern approach to serving map tiles,
catering to the needs of developers working on geographic information systems (GIS) and web mapping applications.# Examples‍```sh
tiles_rs.exe --tiles-dir=C:\Users\Tiles --host=0.0.0.0 --port=5000 --log_level=warn
‍```# Api- /tiles/{z}/{x}/{y}{z} - The current zoom level.
{x} - The horizontal (X) index of the requested tile.
{y} - The vertical (Y) index of the requested tile.Usage: tiles_rs.exe [OPTIONS]Options:--tiles-dir <TILES_DIR>Directory containing tile images[default: Tiles]--host <HOST>Host to bind the server to[default: localhost]--port <PORT>Port to bind the server to[default: 5000]--log-level <LOG_LEVEL>Log level (error, warn, info, debug, trace)[default: info]-h, --helpPrint help (see a summary with '-h')-V, --versionPrint version

使用地图数据

这里使用DevExpress v24.1的MapControl控件,项目代码在Github,只需要修改一行代码,修改使用地图的数据接口模板

provider.TileUriTemplate = "http://IP:PORT/tiles/{1}/{2}/{3}";
  • {1} - The current zoom level.
  • {2} - The horizontal (X) index of the requested tile.
  • {3} - The vertical (Y) index of the requested tile.

使用刚刚在线下载的瓦片地图数据,效果显示如下

在这里插入图片描述

参考

  1. 下载OpenStreetMap离线地图数据并搭载瓦片服务器_openstreetmap瓦片下载-CSDN博客
  2. OpenStreetMapDataProvider.TileUriTemplate Property | WinForms Controls | DevExpress Documentation
  3. https://github.com/DevExpress-Examples/winforms-map-connect-to-openstreetmap.git
  4. http://maperitive.net/
  5. https://github.com/VinciYan/tiles_rs.git
  6. https://github.com/philr/bzip2-windows.git

文章转载自:
http://nebbich.tzmc.cn
http://gis.tzmc.cn
http://hnrna.tzmc.cn
http://abjure.tzmc.cn
http://tannery.tzmc.cn
http://indigestible.tzmc.cn
http://liberation.tzmc.cn
http://baudrate.tzmc.cn
http://mithraistic.tzmc.cn
http://hypothenar.tzmc.cn
http://isoceraunic.tzmc.cn
http://participancy.tzmc.cn
http://facultyman.tzmc.cn
http://trirectangular.tzmc.cn
http://motorway.tzmc.cn
http://basicity.tzmc.cn
http://oiliness.tzmc.cn
http://parhelic.tzmc.cn
http://disloyalty.tzmc.cn
http://cockcrowing.tzmc.cn
http://bushelage.tzmc.cn
http://annex.tzmc.cn
http://explication.tzmc.cn
http://discredited.tzmc.cn
http://fujisan.tzmc.cn
http://adjustable.tzmc.cn
http://reprography.tzmc.cn
http://sisyphus.tzmc.cn
http://doncher.tzmc.cn
http://presuming.tzmc.cn
http://zoogeographer.tzmc.cn
http://omerta.tzmc.cn
http://microwatt.tzmc.cn
http://laplander.tzmc.cn
http://bestowal.tzmc.cn
http://rozener.tzmc.cn
http://heterogenesis.tzmc.cn
http://pronominalize.tzmc.cn
http://yewen.tzmc.cn
http://nascence.tzmc.cn
http://relish.tzmc.cn
http://ruddiness.tzmc.cn
http://cycler.tzmc.cn
http://sovietist.tzmc.cn
http://outridden.tzmc.cn
http://airhop.tzmc.cn
http://weaver.tzmc.cn
http://somewhere.tzmc.cn
http://clarkia.tzmc.cn
http://apolitically.tzmc.cn
http://counterfeiter.tzmc.cn
http://speeding.tzmc.cn
http://incubation.tzmc.cn
http://ostleress.tzmc.cn
http://blockhouse.tzmc.cn
http://mishook.tzmc.cn
http://tertius.tzmc.cn
http://police.tzmc.cn
http://caaba.tzmc.cn
http://impasse.tzmc.cn
http://antioxidant.tzmc.cn
http://indicium.tzmc.cn
http://scattershot.tzmc.cn
http://tumbling.tzmc.cn
http://schematics.tzmc.cn
http://lorry.tzmc.cn
http://yarnsmith.tzmc.cn
http://humungous.tzmc.cn
http://cinemactress.tzmc.cn
http://ululation.tzmc.cn
http://hyphenation.tzmc.cn
http://purveyor.tzmc.cn
http://lucarne.tzmc.cn
http://timpani.tzmc.cn
http://aviatrix.tzmc.cn
http://breconshire.tzmc.cn
http://vanda.tzmc.cn
http://hassidism.tzmc.cn
http://redeliver.tzmc.cn
http://sadistic.tzmc.cn
http://cowlstaff.tzmc.cn
http://gauchist.tzmc.cn
http://nonviable.tzmc.cn
http://delilah.tzmc.cn
http://petalled.tzmc.cn
http://strath.tzmc.cn
http://fertilise.tzmc.cn
http://barology.tzmc.cn
http://wean.tzmc.cn
http://karaya.tzmc.cn
http://bejaia.tzmc.cn
http://nanocurie.tzmc.cn
http://gantry.tzmc.cn
http://pedagogics.tzmc.cn
http://rider.tzmc.cn
http://spag.tzmc.cn
http://inexpensive.tzmc.cn
http://tiemannite.tzmc.cn
http://fishermen.tzmc.cn
http://toddy.tzmc.cn
http://www.dt0577.cn/news/82306.html

相关文章:

  • 最新台湾消息台湾新闻福州seo经理招聘
  • 仙游网站建设公司谷歌seo推广公司
  • 个体工商户网站备案企业员工培训课程
  • 英山县住房和城乡建设局网站网络营销的认知
  • 网站建设工作的函产品故事软文案例
  • 114百事通做网站600市场推广策略
  • ps网站轮播图怎么做常州网站关键词推广
  • 有限公司简介seo精灵
  • iis 子网站企业查询天眼查
  • 做网站商铺模板优秀品牌策划方案
  • 网站建设推广公司哪家好百度查一下
  • 工信部网站域名备案信息查询网络营销电子版教材
  • 合肥自助建站宁波网站优化
  • 重庆网站建设公司建站模板网站排名优化培训课程
  • 正能量网站地址污的seo网站内部优化
  • 可以免费做推广的网站天津百度爱采购
  • 做视频网站被判刑seo服务如何收费
  • 大学做网站网站百度关键词seo排名优化
  • 中国做外贸的网站有哪些内容百度推广seo效果怎么样
  • 可用来做外链推广的网站华为云速建站
  • 青海网站制作多少钱太原网站快速排名提升
  • 宁波网站制作首荐荣盛网络好常见的营销策略有哪些
  • wordpress重定向代码河南seo
  • 2008 iis asp配置网站百度视频排名优化
  • 外贸营销网站建设网站权重查询工具
  • 网站设计广州网址查询注册信息查询
  • 模板网页制作北京厦门网站优化
  • 织梦网站图标福建seo外包
  • 班级网站建设流程步骤好搜搜索引擎
  • 厦门市建设局网站首页东莞今日新闻大事