WMS Support?

Nov 12, 2009 at 8:00 AM

Hi Guys,

We have a local hosted ArcGis Server for our mapping needs.

How would I load the maps from this service as a custom service in GMap?

Is it also possible to load the maps from a WMS service?

 

Cheers!

 

Coordinator
Nov 13, 2009 at 4:52 PM

all url are hardcoded, if you know them, your projection, map boundaries, you can try load them

Nov 25, 2009 at 11:08 AM

Hi,

Thanks for the reply.

Okay, so I opted to use the ArcGis REST Service instead. I changed the URL in GMaps.cs to point to my local hosted server. All our maps are in WGS84 so i figure projection might not be a problem as the component caters for that. I'm using the demo application to test the usage. The problem that I have is that the component does not connect to my ArcGis Server.  MY URL: http://192.168.0.123/ArcGIS/rest/services/MapDataService/MapServer/tile/{0}/{1}/{2}

I get the following error: OnEmptyTileError, Zoom: 12, {X=2366,Y=2348}

I have tested the REST service using the Java Script viewer on the server, so I know that the service works, it just does'nt want to load the data.

Am I missing any additional settings?

 

 

Cheers!

Coordinator
Nov 25, 2009 at 11:10 AM

are you adjusted tile size, and what projection do you use?

Nov 25, 2009 at 11:54 AM

The tile size is set to the default (512x512). The projection is Geographic WGS84.

Nov 25, 2009 at 12:12 PM

Where do I set the projection for the data source?

Coordinator
Nov 25, 2009 at 12:18 PM

GMap.NET.Internals.Core.MapType setter

Nov 25, 2009 at 12:41 PM
Edited Nov 27, 2009 at 5:16 AM

Great I found it.... Thx

I assume (from what I can see in the Projections)  that the Geographic WGS84 uses the same settings as LKS94Projection?

 

I added my service to the map type list and set the projection as below.... but now no map displays... (it shows the form but with nothing in the control).

 

 

                  case MapType.ArcGIS_MapsLT_Map_Hybrid:
                  case MapType.ArcGIS_MapsLT_Map_Labels:
                  case MapType.ArcGIS_MapsLT_Map:
                  case MapType.ArcGIS_MapsLT_OrtoFoto:
                   case MapType.MyService:
                  {
                     if(false == (Projection is LKS94Projection))
                     {
                        Projection = new LKS94Projection();
                     }
                  }
                  break;

Update - all the other services works fine... just my one that does not load any tiles.

 

 

Rest Service Info


Spatial Reference: 4326

Single Fused Map Cache: true

Tile Info: 

Height: 512
Width: 512
DPI: 96
Levels of Detail: (# Levels: 16)
Level ID: 0 [Start Tile, End Tile]
Resolution: 0.59486525145757
Scale: 250000000
Level ID: 1 [Start Tile, End Tile]
Resolution: 0.297432625728785
Scale: 125000000
Level ID: 2 [Start Tile, End Tile]
Resolution: 0.152285504373138
Scale: 64000000
Level ID: 3 [Start Tile, End Tile]
Resolution: 0.0761427521865689
Scale: 32000000
Level ID: 4 [Start Tile, End Tile]
Resolution: 0.0380713760932845
Scale: 16000000
Level ID: 5 [Start Tile, End Tile]
Resolution: 0.0190356880466422
Scale: 8000000
Level ID: 6 [Start Tile, End Tile]
Resolution: 0.00951784402332112
Scale: 4000000
Level ID: 7 [Start Tile, End Tile]
Resolution: 0.00475892201166056
Scale: 2000000
Level ID: 8 [Start Tile, End Tile]
Resolution: 0.00237946100583028
Scale: 1000000
Level ID: 9 [Start Tile, End Tile]
Resolution: 0.00118973050291514
Scale: 500000
Level ID: 10 [Start Tile, End Tile]
Resolution: 0.00059486525145757
Scale: 250000
Level ID: 11 [Start Tile, End Tile]
Resolution: 0.000297432625728785
Scale: 125000
Level ID: 12 [Start Tile, End Tile]
Resolution: 0.000152285504373138
Scale: 64000
Level ID: 13 [Start Tile, End Tile]
Resolution: 7.61427521865689E-05
Scale: 32000
Level ID: 14 [Start Tile, End Tile]
Resolution: 3.80713760932845E-05
Scale: 16000
Level ID: 15 [Start Tile, End Tile]
Resolution: 1.90356880466422E-05
Scale: 8000
Format: PNG8
Compression Quality: 0
Origin:
X: -400
Y: 400
Spatial Reference: 4326
Intial Extent: 
XMin: -198.000000000361
YMin: -99.0000000075598
XMax: 198.00000000756
YMax: 99.0000000003602
Spatial Reference: 4326
Full Extent: 
XMin: -198.000000000361
YMin: -99.0000000075598
XMax: 198.00000000756
YMax: 99.0000000003602
Spatial Reference: 4326
Units: esriDecimalDegrees

Supported Image Format Types: PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,AI

 

 

Nov 27, 2009 at 10:11 AM

Do you by any chance have the Projection settings for Geographic WGS84?

Coordinator
Nov 28, 2009 at 5:45 PM

if i can't test it, there is no chance ;}

Nov 30, 2009 at 5:08 AM
Edited Nov 30, 2009 at 6:12 AM

Sure.... 

I will send you the settings via Codeplex "Contact radioman" (check your profile inbox).

Thx for the help

Coordinator
May 4, 2010 at 6:53 PM

check http://greatmaps.codeplex.com/Thread/View.aspx?ThreadId=211166