Minimum distance calculation between different shape file's polygons

Topics: Algorithms, Data Access, SharpMap v2.0
Oct 23, 2011 at 6:19 PM

Hello,

 

I am working on a Multi-criteria spatial decision making system. The system works as:

  • importing criterias.
  • loading shape files in order to number of criterias and type of criterias.
  • loading potential shapefile which has potential shapes.

After loading necessary files, application will make calculations between shape files in order to criterias and creates a new map which has amount of shapes in potential shape file.

Lets assume that we have one criteria (distance to residential), so, it means, we are going to load

  • one criteria shape file which consists of residential area polygon shapes.
  • load our potential shape file.

What do you suggest me to calculate distances between polygons of different shape files.

Oct 24, 2011 at 1:57 AM
Edited Oct 24, 2011 at 2:17 AM

I figured out how to get all the polygons in a shape file. However, it seems that Distance method for polygon geometry doesn't work. I have 3 options here:

  1. Importing a minumum distance algorithm for polygons
  2. Calculating the center coordinates of polygons and using Distance method.
  3. NTS?

 

Coordinator
Oct 24, 2011 at 6:57 AM

I would suggest you use NTS, you can quite easy convert from SharpMap geometries to NTS geometries and back.