[OpenMap Users] Load Shapefiles from a jarfile?

From: Gary Briggs <chunky_at_icculus.org>
Date: Sun, 1 Sep 2013 17:18:22 -0400

Is it possible to load shapefiles directly out of a jarfile?

I'm using a ShapeLayer, and setting the "shapeFile" property to the path.

I've tried a variety of combinations. For what it's worth, my data
are a shapefile for every zip code in the US, inside of a "Zips" directory.

// This is the one I'm currently using
String fileNamePrefix = "Zips/" + zip;

So then I just zipped it up, with the "Zips/" prefix inside the zipfile,
to "Zips.jar"

// Neither of these have worked:
String fileNamePrefix = "jar:file:Zips.jar!/Zips/" + zip;
String fileNamePrefix = "jar:Zips.jar!/Zips/" + zip;

Am I barking up the wrong tree?

Cheers,
Gary

--
[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 Sun Sep 01 2013 - 17:20:44 EDT

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