Re: [OpenMap Users] Saving Map does not save all the properties

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Oct 16 2003 - 17:01:48 EDT

Hi Luke,

On Wednesday, October 15, 2003, at 04:47 PM, Catania, Luke A
ERDC-TEC-VA wrote:

> When saving the map to a new properties file, my map containing DTED
> and a
> AreaShapeLayer properties, no longer contains the DTED paths and all
> the
> area shape layer info in the file, so when I load up the new properties
> file, it does not load dted, dted coverage nor does it color my
> climate map
> using the area shape layer "areas" property.

The DTEDLayer and the AreaShapeLayer do not completely implement the
PropertyConsumer interface, namely the getProperties() method. There
are some layers in the package where implementing this method is still
on the to-do list, and unfortunately, those are two of them.

> Also, I added a layer to my map. My own that extends the
> DrawingToolLayer.
> I then drew to it using the drawing tool and saved the drawing as an
> ESRI
> shape file. It saved the shape file to my disk. When I saved the map
> to
> create a new properties file, it did not associate the shape file to
> this
> layer. How can I do this so the shape file automatically loads again?

Same thing as above, but you also have to add a property for the file
name to your layer, read in the setProperties method and saved out in
the getProperties method.

- Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Thu Oct 16 17:03:56 2003

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