浏览器端如何查询显示本地的栅格文件

浏览器端查询出指定的栅格,然后把存储在本地的栅格文件,显示在浏览器上,如何实现?
已邀请:

gishome - GIS之家,我们的团队,具备丰富的webgis项目开发经验以及开源GIS项目经验(openlayer+geoserver、三维开源GIS cesium.js);GIS之家知乎专栏:https://zhuanlan.zhihu.com/gishome

赞同来自:

谢邀,假如是arcgis for js开发形式的话,你可以通过arcgisserver发布地图服务形式来调用,展示在地图上显示的,直接解析栅格文件这个我没弄过呢

binghuan123 - 80后

赞同来自:

目前支持把本地的jpg/png图片显示到地图上,当作一个图层,可以随地图放大缩小等,和一个图层是一样的。只要知道jpg的四角坐标就可以了。

朱政

赞同来自:

你这个功能听你描述来看可以用动态图层来实现。你先发布一个地图服务,然后可以根据你的查询结果更换地图服务中的栅格图层。下面这段是我从ArGIS server的帮助中摘出来的,请看看是否能满足的你的需求。
Dynamic layers

Dynamic layers allow clients to change layer appearance and behavior on the fly in a map service. Using dynamic layers, you can do the following:

Add new layers to the map from a dynamic workspace.
Define how the labels will draw for a layer.
Define layer symbology (simple, unique value, class breaks).
Define the position and order of layers in the map.
Modify joins to an existing layer/table.
Remove an existing layer from the map.
Add joins to an existing layer/table or add a layer/table that originates from a dynamic workspace.
Force the server to perform a dynamic draw even if a tile cache is available.

Dynamic layers are supported by REST, COM, and non-Esri SOAP clients. Data sources that you can register as a dynamic workspace include the following:

Database (query layers only)
File geodatabase (feature layers, raster layers, and tables only)
Folder containing file-based rasters
Folder containing shapefiles or .dbf files
Geodatabase (feature layers, raster layers, query layers, and tables only)

要回复问题请先登录注册