Looking through the areas using the GetNeighbors() function would probably
work.

 

Larry Manire

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Aniruddha Banerjee
Sent: Tuesday, August 12, 2008 8:19 PM
To: [email protected]
Subject: [Maptitude] polygon merging based on adjacency

 

polygon merging based on adjacency 

Hi,

I have ~9000 polygons (voronoi polygons based on road interections, 
so all are convex and nice looking). I am trying to reduce the # 
of polygons to ~half of 9000 or ~4500 by merging adjacent polygons. 
Using the 'merge geography function' in Maptitude allows only to 
merge by similar values but not by adjacency.

Is there any Maptitude function/GISDK code that does (pairwise) 
merging based on adjacency? Any GISDK code will be useful even if it 
only loops over each record and creates a new polygon based on some 
attribute based similarity... 

I've tried to do this (in a rather tedious way) by creating a nearest 
adjacency ID field (using Tools-->Geographic Analysis-->Adjacency...
(Adjaceny IDs and distances)). And then, exporting two fields: 
polygon ID, & nearest neighbor ID to excel and using excel lookup 
functions to flag neighbors that are adjacent to more than one 
polygon. Then bringing back the non-shared neigbors, replacing them 
with their corresponding polygon IDs and then merging using the merge 
geogrpahy function.

'There should be a better way I hope...

Thank you and regards,

Rudy. 



 

Reply via email to