RE: [OpenMap Users] Problem displaying a JPEG file in Openma p

From: Butler, Jason <Jason.Butler_at_dsto.defence.gov.au>
Date: Thu, 17 Mar 2005 16:04:47 +1030

Hi,

I suggest you have a look at the source for com.bbn.openmap.plugin.CSVTiledImagePlugin

In the version of openmap that I have here, the comments at the top of the source code outline the expected format for the cvs file, e.g.

 * This PlugIn uses a csv file to find out about the images that
 * should be loaded. The layer assumes that the csv file has these
 * fields, in this order: <pre>
 *
 * Upper Latitude, Western Longitude, Lower Latitude, Eastern Longitude, URL of image
 * 42,-73.5,40,-72,file:///data/images/test1.jpg
 * 40,-73.5,38,-72,file:///data/images/test2.jpg
 *
 * Make sure there are not spaces in the data portion of the file!

Also, note the last line of the comment. I notice there is a space in your property file between the comma, and the path to the file name. Remove the space and put a file:// in front of your files path.

I hope this helps,

Regards,

Jason.

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]On
Behalf Of Chan Kwang Mien
Sent: Thursday, March 17, 2005 3:09 PM
To: Don Dietrick
Cc: openmap-users_at_bbn.com
Subject: Re: [OpenMap Users] Problem displaying a JPEG file in Openmap


hi Don,

I am afraid the picture cannot still be displayed.
the picture.csv is put into the /openmap-4.6.1/bin directory. Is that the
correct directory where the csv
file should be in ?
do i need to configure anything in openmap-4.6.1 ? currently, the
background is blue.

Thank you.

regards,
Kwang Mien


>The file is OK, but then your fileHasHeader property should be false.
>
>- Don
>
>On Mar 16, 2005, at 9:11 PM, Chan Kwang Mien wrote:
>
>>hi Don,
>>
>>Thanks for your help.
>>The error message <LayerHandler: Skipped "My_Image" - unable to create>
>>does not appear anymore after
>>changing to capital I.
>>
>>However, the JPEG file is still not displayed.
>>
>>In the picture.csv, there is only one line which is
>>
>>42,-73,40,-72, /pict/picture.jpg
>>
>>Is this the correct way to create the csv file ?
>>
>>Thank you.
>>
>>regards,
>>Kwang Mien
>>
>>
>>
>>
>>>Hi Kwang,
>>>
>>>Does the picture.csv have a header line for the first line that should
>>>be ignored, or does it just contain the lat/lons and the picture path?
>>>
>>>Oh, wait, it's CSVTiledImagePlugIn, capital I in PlugIn.
>>>
>>>- Don
>>>
>>>On Mar 16, 2005, at 8:03 PM, Chan Kwang Mien wrote:
>>>
>>>>hi,
>>>>
>>>>I did the following to display a JPEG file in Openmap-4.6.1 in Linux.
>>>>
>>>>a) I created a picture.csv file. In the picture.csv file, I included
>>>>the line
>>>>42,-73,40,-72, /pict/picture.jpg. And I saved the picture.csv in
>>>>/openmap-4.6.1/bin/
>>>>
>>>>b) next, I modified the openmap.properties file :
>>>>
>>>> openmap.layers=My_IMAGE date dtlayer......
>>>>
>>>>c) Then I added the following properties to the My_IMAGE layer in
>>>>openmap.properties
>>>>
>>>>My_IMAGE.class=com.bbn.openmap.plugin.CSVTiledImagePlugin
>>>>My_IMAGE.prettyName=My Image Layer
>>>>My_IMAGE.tileFile=/openmap-4.6.1/bin/picture.csv
>>>>My_IMAGE.fileHasHeader=true
>>>>
>>>>However, when I ran Openmap, i got the following error :
>>>>
>>>>LayerHandler: Skipped "My_Image" - unable to create
>>>>
>>>>and the JPEG file wasn't displayed.
>>>>
>>>>Does anyone know what the problem is ?
>>>>
>>>>Thank you.
>>>>
>>>>regards,
>>>>Kwang Mien
>>>>
>>>>--
>>>>[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"]
>>>
>>>
>>>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>>Don Dietrick, dietrick_at_bbn.com
>>>BBN Technologies, Cambridge, MA
>>>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>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"]

--
[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"]
--
[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 Mar 17 2005 - 01:06:36 EST

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