Re: [OpenMap Users] Display of Geotiff file on web browser

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Mon, 28 Jun 2010 10:38:54 -0400

Hi Subrat,

I guess the first place I would check is to see of the layer can create a URL for the file, in the loadImages method. It all depends on what the getResourceOrFileOrURL method is returning.

You can turn on debugging for that method by adding a -Ddebug.proputils to the java arguments for the applet. Debug.init() needs to be called sometime at the beginning of the application, but if you are extending OpenMap application classes that'll be done for you.

Since the file is getting loaded in the IDE, I would think the properties are OK and that OpenMap can handle displaying the image once it is found. You might want to change 'localhost' to 127.0.0.1, in case there is a bit of applet weirdness going on.

- Don

On Jun 28, 2010, at 6:14 AM, subratkrsethi_at_bel.co.in wrote:

> Hi,
> After setting following properties in openmap.properties file
>
> geotiff.class=com.bbn.openmap.layer.imageTile.ImageTileLayer
> geotiff.iamgeReaderLoaders=geotiff
> geotiff.geotiff=com.bbn.openmap.dataAccess.image.geotiff.GeoTIFFImageReader.Loader
> geotiff.prettyName=GeoTIFF
> geotiff.imageFilePath=http://localhost:8084/webtcs/test.tif
> geotiff.imageCacheSize=2000
>
> and running Applet through NETBEAN IDE the geotiff file gets loaded and displayed in the Applet viewer
>
> but when i try to run through webbrowser by giving
> <applet codebase="classes" code="WebTCSFile.class" width=350 height=200>
> </applet>
>
> the geotiff file doesnot get loaded.
>
> Any body can give some suggestion??
>
> Subrat
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain confidential or privileged
> information. If you are not the intended recipient, please notify
> the sender at Bharat Electronics or support_at_bel.co.in immediately
> and destroy all copies of this message and any attachments.
>
> --
> [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 Mon Jun 28 2010 - 10:39:22 EDT

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