@Test public void testOracleWKT() throws ParseException { final String wkt = "PROJCS[\"Datum 73 / Modified Portuguese Grid\"," + " GEOGCS [ \"Datum 73\"," + " DATUM[\"Datum 73 (EPSG ID 6274)\"," + " SPHEROID [\"International 1924 (EPSG ID 7022)\", 6378388, 297]," + " -231, 102.6, 29.8, .6149999999999993660366746131394108039579," + " -.1979999999999997958947342656936639661522," + " .8809999999999990918346509498793836069706, .99999821]," + " PRIMEM [ \"Greenwich\", 0.000000 ]," + " UNIT [\"Decimal Degree\", 0.01745329251994328]]," + " PROJECTION[\"Transverse_Mercator\"]," + " PARAMETER[\"Latitude_Of_Origin\", 39.66666666666666666666666666666666666667]," + " PARAMETER[\"Central_Meridian\", -8.13190611111111111111111111111111111111]," + " PARAMETER[\"Scale_Factor\", 1]," + " PARAMETER [\"False_Easting\", 180.598]," + " PARAMETER[\"False_Northing\", -86.99]," + " UNIT [\"Meter\", 1]]"; assertFalse(Symbols.DEFAULT.containsAxis(wkt)); final Parser parser = new Parser(); CoordinateReferenceSystem crs1 = parser.parseCoordinateReferenceSystem(wkt); final String check = parser.format(crs1); assertTrue(check.indexOf("TOWGS84[-231") >= 0); CoordinateReferenceSystem crs2 = parser.parseCoordinateReferenceSystem(check); assertEquals(crs1, crs2); assertFalse(check.contains("semi_major")); assertFalse(check.contains("semi_minor")); }
public CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text) throws ParseException { final Element element = getTree(text, new ParsePosition(0)); final CoordinateReferenceSystem crs = parseCoordinateReferenceSystem(element); element.close(); return crs; }
Parser extends MathTransformParser { public CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text) throws ParseException { final Element element = getTree(text, new ParsePosition(0)); final CoordinateReferenceSystem crs = parseCoordinateReferenceSystem(element); element.close(); return crs; } }
Parser extends MathTransformParser { public CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text) throws ParseException { final Element element = getTree(text, new ParsePosition(0)); final CoordinateReferenceSystem crs = parseCoordinateReferenceSystem(element); element.close(); return crs; } Parser();  Parser(final Symbols symbols);  Parser(final Symbols symbols, final ReferencingFactoryContainer factories);  Parser(final Symbols                symbols,
                  final DatumFactory      datumFactory,
                  final CSFactory            csFactory,
                  final CRSFactory          crsFactory,
                  final MathTransformFactory mtFactory); }
Parser extends MathTransformParser { public CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text) throws ParseException { final Element element = getTree(text, new ParsePosition(0)); final CoordinateReferenceSystem crs = parseCoordinateReferenceSystem(element); element.close(); return crs; } Parser();  Parser(final Symbols symbols);  Parser(final Symbols symbols, final ReferencingFactoryContainer factories);  Parser(final Symbols                symbols,
                  final DatumFactory      datumFactory,
                  final CSFactory            csFactory,
                  final CRSFactory          crsFactory,
                  final MathTransformFactory mtFactory); CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text); static Class<?> getClassOf(String element); static String getNameOf(final Class<?> type); static void main(String[] args); }
Parser extends MathTransformParser { public CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text) throws ParseException { final Element element = getTree(text, new ParsePosition(0)); final CoordinateReferenceSystem crs = parseCoordinateReferenceSystem(element); element.close(); return crs; } Parser();  Parser(final Symbols symbols);  Parser(final Symbols symbols, final ReferencingFactoryContainer factories);  Parser(final Symbols                symbols,
                  final DatumFactory      datumFactory,
                  final CSFactory            csFactory,
                  final CRSFactory          crsFactory,
                  final MathTransformFactory mtFactory); CoordinateReferenceSystem parseCoordinateReferenceSystem(final String text); static Class<?> getClassOf(String element); static String getNameOf(final Class<?> type); static void main(String[] args);  }