Getting ESRI to talk to my WMS

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Thu Apr 7 20:37:39 EDT 2005


i would also check your apache logs to see the full request sent by Arc.


jeff





Jason Grimes wrote:
> Thanks Jeff,
>
> I didn't specify the "wms_srs" for each layer, just in the map object.
> Maybe that is my problem, I will add it in to each layer.  Here is my
> test map file...
>
> MAP
>         NAME "GINA_WMS_TEST"
>                                                                                         EXTENT -120 38 -76 60
>
>         DEBUG on
>
>         IMAGETYPE JPG
>         IMAGECOLOR 255 255 255
>         STATUS ON
>         SIZE 600 400
>         SYMBOLSET
> "/usr/local/apache2/htdocs/landman/chameleon/etc/symbols.sym"
>
>         SHAPEPATH "/usr/local/apache2/htdocs/WMS"
>
>         PROJECTION
>                 "init=epsg:4326"
>         END
>
>         WEB
>                 METADATA
>                 "wms_title"             "GINA WMS Test"
>                 "wms_onlineresource"
> "https://phobos.gina.alaska.edu/cgi-bin/ginawms?"
>                 "wms_srs"               "EPSG:4326"
>                 "wms_abstract"          "GINA test WMS server"
>                 END
>         END
>
> #
> # Start of layers
> #
>
>         LAYER
>                 NAME "State_of_Alaska_LL"
>                 STATUS on
>                 DATA "alaska-latlon.shp"
>                 TYPE LINE
>                 TEMPLATE "ttt_query.html"
>                 MAXSCALE 28000000.0
>                 MINSCALE 10.0
>
>                 PROJECTION
>                         "init=epsg:4326"
>                 END
>
>                 METADATA
>                         "wms_title"     "State_of_Alaska_LL"
>                         "wms_abstract"  "Test Alaska state outline in
> Lat-Lon projection."
>                 END
>                 CLASS
>                         NAME "State_of_Alaska_LL"
>                         SYMBOL 0
>                         STYLE
>                                 COLOR 212 208 200
>                         END
>                 END
>         END
> END
>
> Jason
>
> On Thu, 2005-04-07 at 14:09, Jeff McKenna wrote:
>
>>Hi Jason,
>>
>>I just recently had to set up some data through WMS for some remote
>>ArcGIS users.  I did not have to include any special parameters/metadata
>>that i know of for the WMS server.  I did however add optional metadata
>>for each layer, such as "wms_srs".  I used mapserv version 4.4.1.  maybe
>>i got lucky :)
>>
>>maybe you could include a small test wms-server mapfile (that fails in
>>arc) for everyone on the list.
>>
>>
>>jeff
>>
>>
>>
>>
>>Jason Grimes wrote:
>>
>>>Hi,
>>>
>>>I have set up a WMS service on my local machine.  We would like to give
>>>ArcGIS users access to the layers but it will not talk to the WMS
>>>service.  I can get Jump to talk and of course MapServer/Chameleon also
>>>talks with the service and no problems.  Is there a specific way in
>>>which you have to set up the map file?  According to my research ArcGIS
>>>will not connect up to WMS servers that use any other projection except
>>>a Lat/Lon one. I re-projected some of our data using EPSG:4326 and setup
>>>a map file with only this projection and ArcGIS will still not talk.  It
>>>reads the capabilities just fine, but after that it will not contact the
>>>server again.  I have watched the Apache logs and I can see the
>>>capabilities request come through and then nothing.  I have also tried
>>>other services like the DM Solutions demo here:
>>>
>>>http://www2.dmsolutions.ca/cgi-bin/mswms_gmap
>>>
>>>And it works fine with ArcGIS.  Maybe one of the DM Solutions guys could
>>>point me in the right direction.  :)  Any help would be most appretiated
>>>and if there is a way of having the WMS also work with meter based
>>>projections (like Albers) at the same time would be great too.  Thanks,
>>>
>>>Jason
>>>
>>
>


--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the mapserver-users mailing list