shape = shape.substring(0, shape.length() - 4);
try {
URL shx = PropUtils.getResourceOrFileOrURL(shape + ".shx");
InputStream is = shx.openStream();
ShxInputStream pis = new ShxInputStream(is);
int[][] index = pis.getIndex();
is.close();
RandomAccessFile raf = new RandomAccessFile(shape + ".shp", "rw");
raf.seek(24);
int contentLength = raf.readInt();