Re: [OpenMap Users] merging shape files

From: Don Dietrick <dietrick@bbn.com>
Date: Mon Mar 15 2004 - 19:31:06 EST

Hi Rachel,

You might want to look at the com.bbn.openmap.layer.ScaleFilterLayer,
which changes which layers are active based on scale.

You could also look at the com.bbn.openmap.layer.shape.MultiShapeLayer
to display more than one shape file at a time.

Lastly, you could use the components in the
com.bbn.openmap.dataAccess.shape package to read in each shape file,
get the OMGraphics for them, combine them, and then write them out into
a single file. You'd have to manage the dbf file contents in the same
way using the DbfTabelModel, taking care to make sure that the order of
the merged OMGraphics matched the order of the merged DbfTableModel
contents (as well as the data fields, which may not match).

Hope this helps,

Don

On Mar 15, 2004, at 12:06 PM, Rachel Lee Knickmeyer wrote:

> I have a set of shape files, world.shp usa.shp, and all the states. I
> want to merge them together so my map application can zoom into all the
> levels of detail. Any help would be appreciated.
>
> -Rachel
>
>
> --
> [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"]
>

--
[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 Mon Mar 15 19:31:29 2004

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