[OpenMap Users] AreaShapeLayer question

From: Chris Hopkins <chopkins_at_cra.com>
Date: Tue, 23 Jan 2007 07:14:55 -0500

Hi all -
We are using an AreaShapeLayer to display provinces in Iraq. We generated a shapefile using ArcView and, using the generated .dbf file, we can get mouseover information about the name of the province, etc by setting up the appropriate properties to drive the AreaShapeLayer.
Now, we are trying to do some computation about those areas. Specifically, we want to be able to create a new region based on the aggregation of several provinces. Using the United States as an example, we'd like to be able to outline New England by combining the shapes of Maine, New Hampshire, Vermont, Massachusetts and Connecticut. Once we have a combined shape, we want to draw that as an outlined polygon.
We are trying to access the OMGeometryList objects that are part of the PoliticalArea objects but the lists are empty when we try to do that. Perhaps we are trying to access them too early in the pipeline? What we have tried to do is extend the AreaShapeLayer class and override something like paint() and access the PoliticalArea objects using findPoliticalArea of the AreaHandler class.
Is there an easier way to do this (or rather a way that works)? :)

[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jan 23 2007 - 07:22:24 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT