Adding WMS
I would like to add some Provincial data from British Columbia to my Essentials website.
In Geocortex Essentials Manager these are the examples shown for adding WMS data.
"Enter the URL of the WMS map service. For example:
http://MyServer/arcgis/services/MyMapService/MapServer/WMSServer
http://MyServer/cgi-bin/mapserv?map=/MapFolder/example.map
http://MyServer/wmsconnector/com.esri.wms.Esrimap/MapName"
The data that I would like to add are in:
In http://openmaps.gov.bc.ca/imagex/ecw_wms.dll? and the particular layer I'd like to add is: BC_BC_BC_XC1M_BCALB_1995_2004
What do I enter for the URL in Essentials Manager?
Thanks
Mark
-
Hi Mark,
Any luck with this?...I was looking at doing the same thing just yesterday but couldn't it figure out.
0 -
Below is the URL to use, based on a response from the BC Government.
http://openmaps.gov.bc.ca/imagex/ecw_wms.dll?VERSION=1.1.1I’ve just tested it in Geocortex. It adds the map service to the Geocortex website OK, but returns a runtime error:
[Arg_NullReferenceException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.1.10329.0&File=mscorlib.dll&Key=Arg_NullReferenceExceptionIf anyone can help with the nullreferenceexception please let me know.
Thanks
Mark
0 -
Hi Mark,
Can you indicate what your steps were when you enter the WMS?
What you should be doing is (from REST Manager):
1) Go to the map page.
2) Click the "Add Map Service" button.
3) Choose OGC WMS as your map service type.
4) Enter the URL.
5). Click next.
6) Enter your URL.
7) Click next, finish.
Works fine for me.
0 -
Hi Jeff
The process I'm using to add the map service is exactly the same as yours and it also works for me.
After following the 7 steps that you describe, I then open the site in my Silverlight Viewer and that's when the runtime error occurs: Arg_NullReferenceException.
I am using Geocortex 3.9.0 with its Silverlight Viewer 1.6.
I've also tried creating a brand new site, adding this WMS map service, adding a Silverlight Viewer for it, then launching it. The same runtime error occurs.
Mark
0 -
I added this service to a 3.10 site and 1.6 Viewer and it works fine. Make sure that you do _not_ add 'VERSION=1.1.1' to the end of the connection string. Essentials will add the correct parameters itself, and adding them manually to the connection string will cause errors.
Generally there is no standard format for a WMS connection string, in the way that there is for an ArcGIS Server mapservice, so it does not necessarily have to look like the provided examples to work. The original string that you were given was the valid one.
0 -
Jonathan
Thanks for the response. If I don't use the 'version' parameter then I can still add the WMS map service, but I still get the same error when attempting to open the viewer at runtime.
Is Essentials 3.9 able to access this type of WMS endpoint, or do I need to upgrade to 3.10?
What do you suppose the Null Reference Exception is referring to? This error is not appearing in the logs so I've no other information to help me figure out what the problem is.
Mark
0 -
It looks like Geocortex Essentials 3.9 can't handle something in this WMS layer and this is what's causing the error when launching it in a Silverlight Viewer.
Latitude have made some improvements to WMS handling in Essentials 3.10.
I've tried loading the WMS layer in Essentials 3.10 and then running it in the Silverlight Viewer and it works fine. The runtime error about Arg_NullReferenceException no longer appears when I launch the viewer.
Mark
0
Please sign in to leave a comment.
Comments
7 comments