Re: [OpenMap Users] Load image problem

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 28 Dec 2006 17:25:04 -0500

Hi Erling,

The plugin expects that the kh.csv file will have a header line at
the top that shouldn't be read as data. You can call
csv.setFileHasHeader(false), and that should fix things.

- Don

On Dec 28, 2006, at 4:44 AM, Erling Andreas Fagerlie wrote:

> Hi all,
> I would like to place an image in the openmap bean, and I do like
> this;
>
> CSVTiledImagePlugIn csv = new CSVTiledImagePlugIn();
> csv.setFileHasHeader(true);
> URL url = getClass().getResource("kh.csv");
> CSVFile csv_file = new CSVFile(url);
> csv.setTilefile(csv_file);
> PlugInLayer pl = new PlugInLayer();
> pl.setPlugIn(csv);
> pl.setVisible(true);
> mapBean.add(pl);
>
> The content of kh.csv;
> 63.1221,7.7197,63.102,7.76319,http://www.mywebserver.com/kh.jpeg
>
> Can anyone please tell me what I'm doing wrong?
>
> Regards
>
> Erling
>
>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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 Dec 28 2006 - 17:25:58 EST

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