Phil,

spatialSQL (www.spatialprojects.com.au\spatialsql.htm) provides an interactive 
and program-called visual centroid function.

The help file documents the menu and button pad ids to achive this:

.....
Define spSQL_CREATE_VISCENTROID     3107      'Create region Visual Centroids 
for selected objects

...
select some regions
...
Run Menu Command Id  spSQL_CREATE_VISCENTROID
...

As this is one of the free functions, it does not require program registration.

Regards,
Phil Waight.

_______________________________________
SPATIAL PROJECTS
Email : [EMAIL PROTECTED]
Web: www.spatialprojects.com.au
  ----- Original Message ----- 
  From: Phil MacAuley 
  To: '[email protected]' 
  Sent: Tuesday, May 10, 2005 3:55 AM
  Subject: MI-L Visual Centroid


  Hello,
   
  I am attempting to incorporate a custom function into an existing MBX that,
  in addition to what the MBX already does, will allow me to determine the
  visual centroid on a polygon.  (That is, the centroid of the largest circle
  that fits within a polygon.)
   
  Can anyone help me with the logic to go about determining the visual
  centroid?  I have been playing with increasingly larger negative buffers,
  which return increasingly smaller regions, but I am having issues with
  setting the buffer size, particularity with irregularly shaped polygons.
   
  Any thoughts?
   
  Thanks in advance,
  Phil

Reply via email to