Skip to main content
Tweeted twitter.com/StackGIS/status/1221493160133775362
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How to reproject Reprojecting base layers in OpenLayers?

spelling, removed intro and signoff
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

The issue is:

I have vector/topo/image tiled maps for some places in north americaNorth America which were published as ArcGIS Server REST service. These maps (A) are based in EPSG26912EPSG:26912 projection. Now I wannawant to use these as basemapbase map for my openlayerOpenLayers 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 EPSG900913EPSG:900913 which is sphericalMercatorspherical Mercator projection to my knowledge, if I just add these base map layers into openlayerOpenLayers map component, the group A and group B won't overlay correctly, which means they are displayed as seperateseparate maps. 

I know this is something related to projection, and might need some code with proj4js, however, as a newbie, I dontdon't really know howwhat to start with.

Basically, I want to put OSM/Google maps as the base map for the whole world in tier 1, then put EPSG26912EPSG:26912 base maps for some places in north americaNorth America in tier 2, and put other WMS or WFS in the top tier.

do I need to transform EPSG26912EPSG:26912 to EPSG900913EPSG:900913 or opposite? I guess I should use EPSG900913EPSG:900913 as the base projection.

Appreciate any replies!

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!

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 EPSG:26912 projection. Now I want to use these as base map for my OpenLayers 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 EPSG:900913 which is spherical Mercator projection to my knowledge, if I just add these base map layers into OpenLayers map component, the group A and group B won't overlay correctly, which means they are displayed as separate maps. 

I know this is something related to projection, and might need some code with proj4js, however, as a newbie, I don't really know what to start with.

Basically, I want to put OSM/Google maps as the base map for the whole world in tier 1, then put EPSG:26912 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 EPSG:26912 to EPSG:900913 or opposite? I guess I should use EPSG:900913 as the base projection.

Post Merged (destination) from gis.stackexchange.com/questions/24127/…
Title
Link
whuber
  • 70.2k
  • 16
  • 187
  • 282

Openlayers: baselayer overlay - projection How to reproject base layers in OpenLayers?

Source Link
Simon
  • 1.2k
  • 4
  • 17
  • 29
Loading