Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

These days i am trying to develop web map using FOSS software.I hava WMS in geoserver.But it does not viewing in arcgis viewer for flex.Pls give me XML code for it?

This is my WMS.

http://localhost:8080/geoserver/sac/wms?service=WMS&version=1.1.0&request=GetMap&layers=sac:Luse&styles=&bbox=10.8,1.81,10.57,19.1443&width=512&height=443&srs=EPSG:5235&format=application/openlayers

And is it required crossdomain xml?If yes, how to do it?

Thanks for you

share|improve this question
add comment

2 Answers

Are the spatial references (aka wkid's) of the ESRI Flex Map and the WMS the same. If not, does the WMS support the spatial reference of the ESRI Flex Map?

I believe that the ESRI Flex Map inherits the spatial reference of the first layer added. And if your WMS does not support that spatial reference, the WMS layer will never work.

Have you tried using Firebug/Fiddler/or any other HTTP monitor to see what is getting sent to/from the Viewer. I believe errors in the WMS Layer class are swallowed silently (i.e. no message displayed to the user).

share|improve this answer
add comment

Here is an example of a WMS from my config file...

<layer label="NWS RADAR" type="wms" autorefresh="66" skipgetcapabilities="true" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0q.cgi" version="1.1.1" visible="false" visiblelayers="nexrad-n0q-900913" alpha=".5"/>

That is a RADAR layer I'm getting from the University of Iowa. Here is one of my own...

<layer label="COUNTY BOUNDARY" wkid="3857" type="wms" skipgetcapabilities="true" url="http://maps.ironcountywi.org:8888/cgi-bin/mapserv.exe?map=C:/Projects/county_webmerc.map" version="1.3.0" visible="true" visiblelayers="COUNTY"/>

My layer is in lat-lon, so I added the [wkid="3857"] entry to request the correct projection.

If you have the [skipgetcapabilities="true"] entry, then it doesn't need a cross-site script.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.