use of com.vividsolutions.jts.io.ParseException in project ili2db by claeis.
the class PostgisColumnConverter method toIomSurface.
@Override
public IomObject toIomSurface(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
Wkb2iox conv = new Wkb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
}
}
use of com.vividsolutions.jts.io.ParseException in project ili2db by claeis.
the class FgdbColumnConverter method toIomMultiSurface.
@Override
public IomObject toIomMultiSurface(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
Fgdb2iox conv = new Fgdb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
} catch (IoxException e) {
throw new ConverterException(e);
}
}
use of com.vividsolutions.jts.io.ParseException in project ili2db by claeis.
the class FgdbColumnConverter method toIomCoord.
@Override
public IomObject toIomCoord(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
Fgdb2iox conv = new Fgdb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
} catch (IoxException e) {
throw new ConverterException(e);
}
}
use of com.vividsolutions.jts.io.ParseException in project ili2db by claeis.
the class FgdbColumnConverter method toIomMultiPolyline.
@Override
public IomObject toIomMultiPolyline(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
Fgdb2iox conv = new Fgdb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
} catch (IoxException e) {
throw new ConverterException(e);
}
}
use of com.vividsolutions.jts.io.ParseException in project alliance by codice.
the class NitfGmtiTransformer method transformAircraftLocation.
private void transformAircraftLocation(Metacard metacard) {
String aircraftLocation = formatAircraftLocation(metacard);
try {
LOGGER.debug("Formatted Aircraft Location = {}", aircraftLocation);
if (aircraftLocation != null) {
// validate the wkt
WKTReader wktReader = new WKTReader(geometryFactory);
wktReader.read(aircraftLocation);
MtirpbAttribute.AIRCRAFT_LOCATION_ATTRIBUTE.getAttributeDescriptors().forEach(descriptor -> setMetacardAttribute(metacard, descriptor.getName(), aircraftLocation));
}
} catch (ParseException e) {
LOGGER.debug(e.getMessage(), e);
}
}
Aggregations