VDS Technologies

 

How to use Geoserver WMS in ASPMap

5/25/2012 5:33:37 AM
Total Posts 3

How to use Geoserver WMS in ASPMap

Hi,

 

I would like to ask if its possible to use geoserver in ASPMap?

 

thanks,

 

Joefer

5/25/2012 8:15:36 AM
MVP
Total Posts 323

Re: How to use Geoserver WMS in ASPMap

To start, you have to know 4 parameters about a WMS:

- WMS url

- WMS boundary box as lat/long coordinates - AspMap.Rectangle (minLong, maxLat, maxLong, minLat)

- WMS coordinate system (an EPSG code)

- the name of at least one WMS layer

See the 'Using Online Mapping Services/Web Map Services' topic in the documentation and the WmsLayerApp in the standard samples.

1/21/2016 4:02:52 AM
Total Posts 1

Re: How to use Geoserver WMS in ASPMap

Is it possible to  use geoserver  wms layer in ASPMAP ,if its possible then how ,please help me out

1/21/2016 12:20:52 PM
MVP
Total Posts 323

Re: How to use Geoserver WMS in ASPMap

Geoserver WMS is supported, for example try the following code

protected void AddWmsLayer()

{

WmsLayer wms = new WmsLayer("http://giswebservices.massgis.state.ma.us/geoserver/wms",

                              new AspMap.Rectangle(-73.521, 42.888, -69.91, 41.232));

wms.AddLayer("massgis:GISDATA.TOWNS_POLYM");

wms.ImageFormat = ImageFormat.Png;

AspMap.Layer wmsLayer = map.AddLayer(wms);

map.CoordinateSystem = CoordSystem.WGS1984;

map.FullExtent = wmsLayer.Extent;

}