Hi Chuck,
I see what the problem is - the layer is expecting that the
properties have a prefix to them:
On Jul 13, 2006, at 10:38 AM, Vincent, Chuck wrote:
>
>
> I have implemented a simple mapBean into my java app, and it can
> display shape layers without issue. I am now trying to add an e00
> layer and receive the following errors...
>
>
>
>
>
> <image001.jpg>
>
>
>
>
>
>
>
> This is the simple code adding the e00 later:
>
>
>
> E00Layer myE00Layer = new E00Layer();
>
> Properties layerProps = new Properties();
You don't need the 'class' property if you aren't using a property
file to configure the application.
> layerProps.put("class", "com.bbn.openmap.layer.e00.E00Layer");
Change this:
> layerProps.put("FileName", "C:/e/rdline.e00");
to:
layerProps.put("mye00.FileName", C:/e/rdline.e00");
and this:
> myE00Layer.setProperties(layerProps);
to:
myE00Layer.setProperties("mye00", layerProps);
> add(myE00Layer);
The layer will be updated for the next release so that 1) you can set
the file programmatically, and 2) you won't need a property prefix.
Regards,
Don
>
>
>
>
> And I have attached the data file, which was downloaded from Penn
> State.
>
>
>
> Any help would be great,
>
>
>
> Thanks,
>
> Chuck
>
>
>
> <image002.jpg>
>
>
>
> <image001.jpg>
> <image002.jpg>
> <rdline.e00>
--
[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 Thu Jul 13 2006 - 15:33:53 EDT