关于ArcGIS地图服务空间参考的处理

关于ArcGIS地图服务空间参考的处理
ArcGIS示例Any projection中提到了ArcGIS目前对于空间参考的处理。
At version 3.3, the API supports using only vector layers in the map (no basemap required).
在3.3版本API提供了不适用底图加载矢量图层的方式。
This means that features from a feature service can be displayed in any projection.
这也就意味着要素服务中的要素可以用任何投影展示。
To use a projection other than a service's default, define the Map's spatial reference by specifying the extent constructor option.
通过使用extent对象构造地图的空间参考我们可以只考虑地图的投影而不考虑地图服务的投影。
The spatial reference of the extent will be used as the map's spatial reference.
extent对象定义的空间参考也就是整个地图的空间参考。
When requests are made for features from a service, the map's spatial reference will be included which tells the service to re-project features before sending them to the client.
当我们请求服务之后,地图空间参考将会被包含在请求之中告诉服务奖地图要素转换为客户端需要的。
Use this sample to explore various projections and to create extents for use in your own applications.
使用示例来找到适应于你的应用的投影和范围。
https://developers.arcgis.com/javascript/3/jssamples/fl_any_projection.html


以上内容翻译自URL

你可能感兴趣的:(杂记)