Nov 28, 2011 at 5:02 AM
Edited Nov 28, 2011 at 5:49 AM
I downloaded SharpMap to see if I could get it to work as a WMS for some South Pole imagery. I have a few questions and I am hoping that someone could help.
I'd like to specify that SharpMap uses the DotSpatial library for projections. I see that the downloaded SharpMap project is missing the DotSpatial dlls. I re-compiled the DotSpatial dlls, and referenced them in the respective projects, but I see pre-compiler
tags all over the place for #if !DotSpatialProjections.
1. Is there a quick way to specify a #Define globally so that the compiler will assume I always want to use dotspatial? I tried something that is supposed to work in the config file... but that doesn't.
2. I placed "#define DotSpatialProjections" tags in all the relevant pages, and then noticed that the project does not compile. For example, in ShapeFile.cs, line 819 in the SharpMap.VS2010 project, I get the error "'DotSpatial.Projections.ProjectionInfo'
does not contain a definition for 'ReadEsriString' and no extension method 'ReadEsriString' accepting a first argument of type 'DotSpatial.Projections.ProjectionInfo' could be found".
I can load the image I am looking for using the DotSpatials UI, but I don't think that comes with WMS functionality.
Am I missing something? Any assistance would be greatly appreciated.