@Test public void testGetEpsgFromPrj() { System.out.println("getEpsgFromPrj"); String result = null; try { result = ShapeFileEPSGHelper.getDeclaredEPSGFromPrj(this.prjFile); } catch (IOException ex) { Logger.getLogger(ShapeFileEPSGHelperTest.class.getName()).log(Level.SEVERE, null, ex); } catch (FactoryException ex) { Logger.getLogger(ShapeFileEPSGHelperTest.class.getName()).log(Level.SEVERE, null, ex); } String expResult = "EPSG:4269"; assertEquals(expResult, result); }
public static String getDeclaredEPSGFromPrj(final File prjFile) throws IOException, FactoryException { String result = null; if (prjFile == null || !prjFile.exists()) { return result; } log.debug(new StringBuilder("Attempting to get EPSG from file: ").append(prjFile.getPath()).toString()); byte[] wktByteArray = FileHelper.getByteArrayFromFile(prjFile); result = ShapeFileEPSGHelper.getDeclaredEPSGFromWKT(new String(wktByteArray)); return result; }
ShapeFileEPSGHelper { public static String getDeclaredEPSGFromPrj(final File prjFile) throws IOException, FactoryException { String result = null; if (prjFile == null || !prjFile.exists()) { return result; } log.debug(new StringBuilder("Attempting to get EPSG from file: ").append(prjFile.getPath()).toString()); byte[] wktByteArray = FileHelper.getByteArrayFromFile(prjFile); result = ShapeFileEPSGHelper.getDeclaredEPSGFromWKT(new String(wktByteArray)); return result; } }
ShapeFileEPSGHelper { public static String getDeclaredEPSGFromPrj(final File prjFile) throws IOException, FactoryException { String result = null; if (prjFile == null || !prjFile.exists()) { return result; } log.debug(new StringBuilder("Attempting to get EPSG from file: ").append(prjFile.getPath()).toString()); byte[] wktByteArray = FileHelper.getByteArrayFromFile(prjFile); result = ShapeFileEPSGHelper.getDeclaredEPSGFromWKT(new String(wktByteArray)); return result; }  }
ShapeFileEPSGHelper { public static String getDeclaredEPSGFromPrj(final File prjFile) throws IOException, FactoryException { String result = null; if (prjFile == null || !prjFile.exists()) { return result; } log.debug(new StringBuilder("Attempting to get EPSG from file: ").append(prjFile.getPath()).toString()); byte[] wktByteArray = FileHelper.getByteArrayFromFile(prjFile); result = ShapeFileEPSGHelper.getDeclaredEPSGFromWKT(new String(wktByteArray)); return result; }  static String getDeclaredEPSGFromPrj(final File prjFile); static String getDeclaredEPSGFromWKT(final String wkt); static String getDeclaredEPSGFromWKT(final String wkt, boolean useBaseCRSFailover); }
ShapeFileEPSGHelper { public static String getDeclaredEPSGFromPrj(final File prjFile) throws IOException, FactoryException { String result = null; if (prjFile == null || !prjFile.exists()) { return result; } log.debug(new StringBuilder("Attempting to get EPSG from file: ").append(prjFile.getPath()).toString()); byte[] wktByteArray = FileHelper.getByteArrayFromFile(prjFile); result = ShapeFileEPSGHelper.getDeclaredEPSGFromWKT(new String(wktByteArray)); return result; }  static String getDeclaredEPSGFromPrj(final File prjFile); static String getDeclaredEPSGFromWKT(final String wkt); static String getDeclaredEPSGFromWKT(final String wkt, boolean useBaseCRSFailover);  }