private oracle.sdoapi.geom.LineString convertLineString(LineString inLineString) throws oracle.sdoapi.geom.InvalidGeometryException {
double[] tempXs = inLineString.getXCoordinates();
double[] tempYs = inLineString.getYCoordinates();
CoordPoint[] tempPoints = new CoordPoint[tempXs.length];
for (int i=0; i<tempPoints.length; i++){
tempPoints[i] = new CoordPointImpl(tempXs[i], tempYs[i]);
}
return myGeometryFactory.createLineString(tempPoints);
}