Re: reading map data from JAR file

From: Don Dietrick <dietrick@bbn.com>
Date: Fri May 17 2002 - 14:47:06 EDT

Hi Martijn,

It is possible, but if you want to do it with the 4.4.2 release, you
need to modify the com.bbn.openmap.io.BinaryFile object so that

        url = ClassLoader.getSystemResource(name);

is replaced with:

        url = Thread.currentThread().getContextClassLoader().getResource(name);

There are a couple places where you need to change it.

This is fixed in 4.5, which is *still* pending.

- Don

On Friday, May 17, 2002, at 02:18 AM, MARTIJN VAN DER PAUW wrote:

> Is it possible to read mapdata (shapefiles) from JAR files. Or
> should I always read input from files or dbases? I ask this because
> i want to build a program or applet that caches this data on the
> user local machine therefore minimizing data loading.
>
> martijn
>
>
> Martijn van der Pauw, internetontwikkelaar.
> Meteo Consult
> martijn@weer.nl
> tel: 0317 - 399800
> fax: 0317 - 423164
> http://www.weer.nl
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri May 17 14:47:18 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT