srs= new SpatialReference(4326); //WGS84 map = new Map(); extent = new Extent(5.81429, 50.32778, 9.22005, 52.539, srs); map.extent = extent; var wmslayers:ArrayList = new ArrayList(); wmslayers.addItem("Naturraeumliche_Haupteinheiten"); wmsmap = new com.esri.ags.layers.WMSLayer("http://www.wms.nrw.de/umwelt/linfos"); wmsmap.initialExtent = extent; wmsmap.spatialReference = srs; wmsmap.visible = true; wmsmap.visibleLayers = wmslayers; map.addLayer(wmsmap); streetmap = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); streetmap.visible=true; map.addLayer(streetmap);
Hi - sorry for the delay, to answer your question, unfortunately...no you cannot use ArcGIS Server to reproject your existing WMS layer info to something else. There are methods in Server to allow reprojection of data but not for the scenario you are describing.
<esri:Map> <esri:extent> <esri:Extent xmin="5.8" ymin="50.3" xmax="9.2" ymax="52.5"> <esri:SpatialReference wkid="4326"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/> <esri:WMSLayer skipGetCapabilities="true" url="http://www.wms.nrw.de/umwelt/linfos" version="1.1.1"> <esri:visibleLayers> <s:ArrayList> <fx:String>Naturraeumliche_Haupteinheiten</fx:String> </s:ArrayList> </esri:visibleLayers> </esri:WMSLayer> </esri:Map>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.