Skip to content

Commit

Permalink
create the WmsTileSource base url from GetMap instead of from GetCapa…
Browse files Browse the repository at this point in the history
…bilities because GetMap returns the url that should b e used for getting map images while GetCapabilities returns the capabilities of the server

closes DotSpatial#1074
  • Loading branch information
jany-tenaj committed Oct 17, 2017
1 parent 500d40d commit ee72378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ Be aware that code written for 1.9 will not work out of the box because DotSpati
- In InRamImageData.Open don't draw the image unscaled because this can cause the image not to be drawn
- FeatureTypeFromGeometryType Method updated to work with GeometryCollection (#1044)
- The SpatiaLite plugin to be able to load SpatiaLite databases of version 4 and higher (#1061)
- WebMap-Plugin fails fetching tiles for specific WMS (#1074)
2 changes: 1 addition & 1 deletion Source/DotSpatial.Plugins.WebMap/WMS/WmsTileSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static WmsTileSource Create(WmsInfo info)
};

var request = new WmsRequest(
new Uri(info.WmsCapabilities.Capability.Request.GetCapabilities.DCPType[0].Http.Get.OnlineResource.Href),
new Uri(info.WmsCapabilities.Capability.Request.GetMap.DCPType[0].Http.Get.OnlineResource.Href),
schema,
new List<string> { info.Layer.Name },
info.Style == null ? null : new List<string> { info.Style },
Expand Down

0 comments on commit ee72378

Please sign in to comment.