use of ch.ehi.ili2db.converter.ConverterException in project ili2db by claeis.
the class PostgisColumnConverter method toIomMultiCoord.
@Override
public IomObject toIomMultiCoord(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 ch.ehi.ili2db.converter.ConverterException in project ili2db by claeis.
the class PostgisColumnConverter method toIomPolyline.
@Override
public IomObject toIomPolyline(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
// String v=((org.postgresql.util.PGobject)geomobj).getValue();
// byte bv[]=WKBReader.hexToBytes(v);
Wkb2iox conv = new Wkb2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
}
}
use of ch.ehi.ili2db.converter.ConverterException in project ili2db by claeis.
the class FgdbColumnConverter method toIomSurface.
@Override
public IomObject toIomSurface(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 ch.ehi.ili2db.converter.ConverterException in project ili2db by claeis.
the class FgdbColumnConverter method toIomPolyline.
@Override
public IomObject toIomPolyline(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 ch.ehi.ili2db.converter.ConverterException in project ili2db by claeis.
the class GpkgColumnConverter method toIomMultiPolyline.
@Override
public IomObject toIomMultiPolyline(Object geomobj, String sqlAttrName, boolean is3D) throws SQLException, ConverterException {
byte[] bv = (byte[]) geomobj;
Gpkg2iox conv = new Gpkg2iox();
try {
return conv.read(bv);
} catch (ParseException e) {
throw new ConverterException(e);
}
}
Aggregations