How to build SharpMap in DebugDSProjection configuration.

Topics: SharpMap v0.9 / v1.x
May 22, 2012 at 9:00 PM
Edited May 22, 2012 at 9:04 PM

Trying to build latest sources, but getting errors when compiling GeometryTransformDotSpatial.cs

The type or namespace name 'Polygon' could not be found (are you missing a using directive or an assembly reference?)

Geometry types are missing. I tried to reference DotSpatial.Topology and then NetTopology suite, but geometries from these libraries doesn't seem to have constructors, properties and methods used in SharpMap code.

Any idea? Thanks.

UPDATE:

I am trying to build the code from trunk, SharpMap.VS2010.sln

Coordinator
May 29, 2012 at 3:17 PM

I fixed the version in trunk. Please give it a try.

Hth FObermaier

May 29, 2012 at 9:55 PM

Hi, 

After updating my working copy, I only needed to fix DotSpatial.Projections reference and then update the DotSpatial.Projections package from '1.0.2011.52' to '1.2' since the compiler could not find FromEsriString method on ProjectionInfo class (Shapefile.cs).

Is there a reason the SharpMap library is x86?

Thanks, Petr

Coordinator
May 30, 2012 at 6:17 AM

SharpMap and SharpMap.UI should be AnyCPU (maybe the DotSpatial Targets are wrong).

SharpMap.Extensions need to be x86 due to external dependencies

May 30, 2012 at 3:10 PM

OK, I changed it in my working copy. Thanks a lot!