Zum Hauptinhalt gehen

Adding WMS

Kommentare

7 Kommentare

  • Permanently deleted user

    Hi Mark,

    Any luck with this?...I was looking at doing the same thing just yesterday but couldn't it figure out.

     

    0
  • Mark Norbury

    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.1

    I’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_NullReferenceException

    If anyone can help with the nullreferenceexception please let me know.

    Thanks

    Mark

    0
  • Jeff Siemens

    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
  • Mark Norbury

    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
  • Permanently deleted user

    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
  • Mark Norbury

    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
  • Mark Norbury

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.