Openlayers:底层覆盖 - 投影
问题是:
我有北美某些地方的矢量/地形/图像平铺地图,这些地图已作为 ArcGIS Server REST 服务发布。这些地图 (A) 基于 EPSG26912 投影。现在我想使用这些作为我的 openlayer Web 应用程序的底图;此外,我还想使用其他底图源(B),例如OpenStreetmap、Google Maps、ESRI等。由于这些地图大部分都在EPSG900913中,据我所知,这是sphericalMercator投影,如果我只添加这些底图图层进入 openlayer 地图组件后,A 组和 B 组将无法正确叠加,这意味着它们显示为单独的地图。我知道这是与投影相关的东西,可能需要一些带有 proj4js 的代码,但是,作为一个新手,我真的不知道如何开始。
基本上,我想将 OSM/Google 地图作为全世界的底图放在第 1 层,然后将 EPSG26912 北美某些地方的底图放在第 2 层,并将其他 WMS 或 WFS 放在顶层。
我需要将 EPSG26912 转换为 EPSG900913 或相反?我想我应该使用 EPSG900913 作为基础投影。
感谢任何回复!
The issue is:
I have vector/topo/image tiled maps for some places in north america which were published as ArcGIS Server REST service. These maps (A) are based in EPSG26912 projection. Now I wanna use these as basemap for my openlayer web app; besides, I also want to consume other base map sources (B), e.g., OpenStreetmap, Google Maps, ESRI, etc. Since most of these maps are in EPSG900913 which is sphericalMercator projection to my knowledge, if I just add these base map layers into openlayer map component, the group A and group B won't overlay correctly, which means they are displayed as seperate maps. I know this is something related to projection, and might need some code with proj4js, however, as a newbie, I dont really know how to start with.
Basically, I want to put OSM/Google maps as the base map for the whole world in tier 1, then put EPSG26912 base maps for some places in north america in tier 2, and put other WMS or WFS in the top tier.
do I need to transform EPSG26912 to EPSG900913 or opposite? I guess I should use EPSG900913 as the base projection.
Appreciate any replies!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这里唯一的解决方案是将数据从一个投影重新投影到另一个投影。最合乎逻辑的当然是将 EPSG:26912 重新投影为 EPSG:900913。
Geoserver 可以帮助您解决这个问题,因为它可以重新投影 WMS 和 WFS
Unfortunately the only solution here is to reproject data from one projection to another. Most logical would be of course to reproject EPSG:26912 to EPSG:900913.
Geoserver can help you out with this as it can reproject both WMS and WFS