[OpenMap Users] Re: Polygon Center Finding

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Oct 23 2002 - 09:24:09 EDT

Hi Keith,

You might want to take a look at the
com.bbn.openmap.omGraphics.labeled.LabeledOMPoly class. It's not
snazzy about having the ability to center the label in the middle of
the poly, it just takes the average of all the points. Seems to work
OK.

- Don

On Friday, October 11, 2002, at 03:00 PM, Keith Baker wrote:

> Hi all!
> I'm working on getting text into my maps using the CSV handler.
> Things
> are working well. Its now a matter of creating good CSVs. Currently I
> am using some shapfiles that I have to suck data out of. My first try
> was to label the continents in my map. As these are polygons I had to
> figure out where I wanted the text to be located. Are there any snazzy
> algorithms anyone can suggest. Is it easy to modify the text so that
> its centered on the locaiton and not left justified to the location?
> Keith
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Oct 23 09:24:44 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT