Re: [OpenMap Users] creating layer using zcta data from us census

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Jul 30 2003 - 14:15:39 EDT

Hi Adam,

You have to use the contents of the dbf file to find the field your are
interested in, and then note the record number - that record number
corresponds to the index of the shape geometry from the shp file. You
can use the OMGraphicList and get that OMGraphic with that index (there
may be a off by one situation there).

The com.bbn.openmap.plugin.esri.EsriPlugIn does this with the
DbfTableModel and the OMGraphicList, using MouseEvents to select
records in the table GUI when something on the map is clicked. If you
click on a table entry the map graphic will highlight. That same
mechanism will work for you.

Hope this helps,

- Don

On Tuesday, July 29, 2003, at 02:48 PM, Adam Russell wrote:

> The requirements I have been given is to display a map of a state(or
> whole US for that matter) and "shade" the colors of certain region on
> the map as defined by 3 digit zcta as given in an ArcView Shapefile I
> have gotten from the US census. The display is via the web so I know
> to use the SimpleHttpServer class for that and I have already worked
> on some sample code to that end. My question at this point is how do I
> take the input of, say, the zipcode(s) given and then highlight the
> appropriate region(s) on the map? I guess this should be some sort of
> layer, is that right? Any other general advice would be appreciated
> before I start slogging through the code....... :)
> Best Regards,
> Adam
>
> --
> [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
10 Moulton Street, Cambridge, MA 02138
openmap@bbn.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Jul 30 14:16:15 2003

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