Re: [OpenMap Users] displaying an tif image file

From: Qinyan Zhou <zhouqinyan527_at_yahoo.com>
Date: Fri, 25 Jun 2004 08:35:08 -0700 (PDT)

Dear all,

The properties file is as following:
imageLayer.class=com.bbn.openmap.plugin.CSVTiledImagePlugIn
imageLayer.prettyName=My Image Layer
imageLayer.tileFile=file:///image/csv/imageCSV.csv
imageLayer.fileHasHeader=true

For displaying a tif image, the csv file is like this:
Upper_Latitude,Western_Longitude,Lower_Latitude,Eastern_Longitude,URL_of_image
51.5287899452,-0.1136268584,51.5279991986,-0.0649550481,file:///C:/Perseus/bolles/image/geotiff/Stow.tif

The errors for display a tif image is as following:
CSVTIPI: file: data/imageCSV.csv
CSVTIPI: file has header: true
CSVTIPI: getRectangle
CSVFile.read: [Upper_Latitude, Western_Longitude,
Lower_Latitude, Eastern_Longitude, URL_of_image]
CSVFile.read: [51.5287899452, -0.1136268584,
51.5279991986, -0.0649550481,
file:///C:/Perseus/bolles/image/geotiff/Stow.tif]
CSVFile: read in 1 records
CSVTIPI: record: [51.5287899452, -0.1136268584,
51.5279991986, -0.0649550481,
file:///C:/Perseus/bolles/image/geotiff/Stow.tif]
INTERRUPTED while loading Image
CSVTIPI: getRectangle
***ERROR***
My Image
Layer|LayerWorker.construct():java.lang.IllegalArgumentException:
Width(-1) and height (-1) cannot be <=0
***********
......

However, I also tried to display a jpg image after I
convert a tif image to a jpg image. The properties
file remains same, but the cvs file is changed to the
following:
Upper_Latitude,Western_Longitude,Lower_Latitude,Eastern_Longitude,URL_of_image
51.5287899452,-0.1136268584,51.5279991986,-0.0649550481,file:///C:/Perseus/bolles/image/geotiff/Stow.jpg

The errors I got for display the jpg is as following:
***ERROR***
My Image
Layer|LayerWorker.construct():java.lang.OutOfMemoryError
***********

Both similar methods give me two totally different
error messages. Have I missed anything? Does anybody
have the similar experience?

Thanks a lot for your kind help.
Jessica

--- Don Dietrick <dietrick_at_bbn.com> wrote:
> The file doesn't have a header line, so your
> settings are causing the
> reader to skip your line.
>
> - Don
>
> On Jun 23, 2004, at 6:16 PM, Qinyan Zhou wrote:
>
> > Dear All,
> >
> > I started fooling around with displaying tifs. The
> tif
> > image files I have are not georeferenced, but with
> a
> > world file containing georeferencing infomation. I
> do
> > know the lat/lon of the upper left corner and the
> > lower right one of the image, and also change the
> > properties file(see csv file below).
> >
> > cvs file contains
> >
>
-0.1163994,51.5043442,-0.0667022,51.5284276,file:///image/Stow.tif
> >
> > the part added to properties
> >
>
imageLayer.class=com.bbn.openmap.plugin.CSVTiledImagePlugIn
> > imageLayer.prettyName=My Image Layer
> > imageLayer.tileFile=file:///image/csv/imageCSV.csv
> > imageLayer.fileHasHeader=true
> >
> > But nothing happens. Have I missed anything? Or
> any
> > suggestions?
> >
> > Thanks,
> > Jessica
> >
> >
> >
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - 100MB free storage!
> > http://promotions.yahoo.com/new_mail
> > --
> > [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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>



        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
--
[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 Fri Jun 25 2004 - 11:35:35 EDT

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