sharpmap as a wms server for openlayers

Topics: SharpMap v2.0
Apr 23, 2011 at 3:57 PM
Edited Apr 23, 2011 at 5:56 PM

I'm using sharpmap and openlayers web mapping. I wrote a map handler and use it a wms server for openlayers. But tile is always same. I can't get x y from openlayers and show tile. Please help me.

Developer
Apr 24, 2011 at 10:33 AM

try to start from wms.handler that you can find in demowebsite and add your functionalities on top of it.

then if you have some problems, ley us explain better what's happens

Apr 26, 2011 at 8:41 AM

I tried demowebsite and publish it this adress : http://demo.mebis.net/openlayers and source code is below.

I want to use own shp file and mapinfo file to use in sharpmap and openlayers. 

Developer
Apr 27, 2011 at 7:49 AM
mehmetsahin wrote:

I tried demowebsite and publish it this adress : http://demo.mebis.net/openlayers and source code is below.

I want to use own shp file and mapinfo file to use in sharpmap and openlayers. 

sample doesn't work.

BTW the steps are pretty easy:

1) server-side: configure sharpmap to show your data, i.e create the layers and add they to the map

2) 

server-side:  

use wms.ashx as a wms handler to expose your map

 

3) client-side: add one or more WmsLayers with the url of your wms.ashx handler

pretty easy, actually

Developer
Apr 27, 2011 at 7:51 AM
mehmetsahin wrote:

I tried demowebsite and publish it this adress : http://demo.mebis.net/openlayers and source code is below.

ok now the sample works, and looks that you have made all the steps I've written earlier, so I don't understand actually what is your problem, sorry

Apr 27, 2011 at 7:53 AM
Thank you for your interest. I solved the problem.

From: [email removed]
Sent: Wednesday, April 27, 2011 9:51 AM
Subject: Re: sharpmap as a wms server for openlayers [SharpMap:255041]

From: D_Guidi

mehmetsahin wrote:

I tried demowebsite and publish it this adress : http://demo.mebis.net/openlayers and source code is below.

ok now the sample works, and looks that you have made all the steps I've written earlier, so I don't understand actually what is your problem, sorry