use of com.revolsys.geometry.cs.CoordinateSystem in project com.revolsys.open by revolsys.
the class EsriCoordinateSystemsTest method verticalCoordinateSystems.
@Test
public void verticalCoordinateSystems() {
try (RecordReader reader = RecordReader.newRecordReader("../com.revolsys.open.coordinatesystems/src/main/data/esri/esriVerticalCs.tsv")) {
for (final Record record : reader) {
final int id = record.getInteger("ID");
final String wkt = record.getString("WKT");
if (wkt.contains("VDATUM")) {
final CoordinateSystem coordinateSystem = CoordinateSystem.getCoordinateSystem(wkt);
final int coordinateSystemId = coordinateSystem.getCoordinateSystemId();
Assert.assertEquals(id, coordinateSystemId);
final String actualWkt = coordinateSystem.toEsriWktCs();
if (Property.isEmpty(actualWkt)) {
CoordinateSystem.getCoordinateSystem(wkt);
coordinateSystem.toEsriWktCs();
}
Assert.assertEquals(wkt, actualWkt);
}
}
}
}
Aggregations